Descrizione
Deserialization of Untrusted Data vulnerability in lasp-lang partisan allows an unauthenticated remote attacker to abort the Erlang VM of a node via Excessive Allocation. partisan_peer_service_server:handle_info/2 decodes every frame that arrives on the peer listener with binary_to_term/1, without the safe option, before handle_inbound/2 interprets the message and before any peer authentication takes place. TLS is off by default and the listener accepts connections from any host, so one frame that names more atoms than the atom table holds aborts the VM. partisan_peer_service_client:handle_info/2 decodes frames from the server side of a connection the same way. The decode also materializes funs, ports and references the frame encodes and inflates compressed terms. The demonstrated impact is denial of service. partisan does not invoke decoded funs, so code execution was not shown. This issue affects partisan: from 3.0.0 before 6.4.0.
Come correggere
Priorità: Media — correggere nel prossimo ciclo di patch. Motivazione: CVSS 8.7, EPSS 1.5% (percentile 75).
Versioni da aggiornare
- lasp-lang partisan: vulnerabili le versioni dalla
3.0.0precedenti alla6.4.0→ aggiornare alla6.4.0o successiva.
Indicazioni del vendor
Soluzione (testo originale del vendor):
The fixed release adds peer authentication and leaves it off by default (peer_auth_methods is []). A node stays exposed until the option is set. Set peer_auth_methods on every node to a list of cryptosign, gossip_keyring or hmac_secret without anonymous, with the trust material of each listed method (peer_auth_cryptosign, peer_auth_keyring, peer_auth_secret). The node then accepts only authentication frames of at most 4096 bytes from a peer that has not authenticated, and reads them without binary_to_term/1. A node on an earlier release cannot connect to a node that requires authentication. Set the option on all nodes with anonymous at the end of the list, then remove anonymous. Peer authentication does not encrypt or sign later traffic, so use it over TLS 1.3 on a network that is not trusted.
Workaround (testo originale del vendor):
Enable mutual TLS on the peer plane. Set tls to true and give tls_server_options a cluster CA in cacertfile together with {verify, verify_peer} and {fail_if_no_peer_cert, true}, and give tls_client_options the same CA with {verify, verify_peer}. The server then rejects a connection during the handshake unless the client presents a certificate the cluster CA issued, so the decode is only reachable by cluster members. Server-only TLS, or verify_none, does not help. Where TLS cannot be enabled, restrict the peer listener port to trusted hosts with a host firewall or a private network segment.
Mitigazioni temporanee
Da applicare solo se non è possibile aggiornare subito:
- Bloccare l'accesso esterno agli endpoint che ricevono oggetti serializzati e, se supportato, abilitare una allowlist delle classi deserializzabili.
Verifica
- Individuare tutti gli asset con il prodotto interessato (inventario, scanner di vulnerabilità, CMDB).
- Confrontare la versione installata con quelle indicate sopra.
- Applicare l'aggiornamento in un ambiente di test, poi in produzione; riavviare i servizi se richiesto.
- Ripetere la scansione per confermare la correzione.
Configurazioni interessate
| Vendor | Prodotto | Versioni vulnerabili | Corretta in |
|---|---|---|---|
| lasp-lang | partisan | ≥ 3.0.0 < 6.4.0 | 6.4.0 |
Riferimenti
- Riferimentohttps://cna.erlef.org/cves/CVE-2026-118898.html
- Riferimentohttps://github.com/lasp-lang/partisan/commit/04314463df1d3cb213c7a07beb60bf7af3389dfc
- Riferimentohttps://github.com/lasp-lang/partisan/commit/5c75b3368620ef9f7f07af5e7f70ade95030fe92
- Riferimentohttps://github.com/lasp-lang/partisan/security/advisories/GHSA-38p4-3gp9-mfx9
- Riferimentohttps://osv.dev/vulnerability/EEF-CVE-2026-118898