{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-118898","assignerOrgId":"6b3ad84c-e1a6-4bf7-a703-f496b71e49db","state":"PUBLISHED","assignerShortName":"EEF","dateReserved":"2026-11-09T23:11:55.649Z","datePublished":"2026-11-25T04:42:17.564Z","dateUpdated":"2026-11-25T04:42:17.564Z"},"containers":{"cna":{"affected":[{"collectionURL":"https://repo.hex.pm","cpes":["cpe:2.3:a:lasp-lang:partisan:*:*:*:*:*:*:*:*"],"defaultStatus":"unaffected","modules":["partisan_peer_service_server","partisan_peer_service_client"],"packageName":"partisan","packageURL":"pkg:hex/partisan","product":"partisan","programFiles":["src/partisan_peer_service_server.erl","src/partisan_peer_service_client.erl"],"programRoutines":[{"name":"partisan_peer_service_server:handle_info/2"},{"name":"partisan_peer_service_client:handle_info/2"}],"repo":"https://github.com/lasp-lang/partisan","vendor":"lasp-lang","versions":[{"lessThan":"6.4.0","status":"affected","version":"3.0.0","versionType":"semver"}]},{"collectionURL":"https://github.com","cpes":["cpe:2.3:a:lasp-lang:partisan:*:*:*:*:*:*:*:*"],"defaultStatus":"unaffected","modules":["partisan_peer_service_server","partisan_peer_service_client"],"packageName":"lasp-lang/partisan","packageURL":"pkg:github/lasp-lang/partisan","product":"partisan","programFiles":["src/partisan_peer_service_server.erl","src/partisan_peer_service_client.erl"],"programRoutines":[{"name":"partisan_peer_service_server:handle_info/2"},{"name":"partisan_peer_service_client:handle_info/2"}],"repo":"https://github.com/lasp-lang/partisan","vendor":"lasp-lang","versions":[{"lessThan":"5c75b3368620ef9f7f07af5e7f70ade95030fe92","status":"affected","version":"04314463df1d3cb213c7a07beb60bf7af3389dfc","versionType":"git"}]}],"cpeApplicability":[{"nodes":[{"cpeMatch":[{"criteria":"cpe:2.3:a:lasp-lang:partisan:*:*:*:*:*:*:*:*","versionEndExcluding":"6.4.0","versionStartIncluding":"3.0.0","vulnerable":true}],"negate":false,"operator":"OR"}],"operator":"AND"}],"credits":[{"lang":"en","type":"finder","value":"Quinn Wilton"},{"lang":"en","type":"reporter","value":"Quinn Wilton"},{"lang":"en","type":"coordinator","value":"Jonatan Männchen / EEF"},{"lang":"en","type":"remediation developer","value":"Alejandro M. Ramallo / Leapsight"}],"dateAssigned":"2026-11-10T11:01:31.000Z","datePublic":"2026-11-24T18:07:15.000Z","descriptions":[{"lang":"en","supportingMedia":[{"base64":false,"type":"text/html","value":"<p>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. <code>partisan_peer_service_server:handle_info/2</code> decodes every frame that arrives on the peer listener with <code>binary_to_term/1</code>, without the <code>safe</code> option, before <code>handle_inbound/2</code> 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. <code>partisan_peer_service_client:handle_info/2</code> decodes frames from the server side of a connection the same way.</p>\n<p>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.</p>\n<p>This issue affects partisan: from 3.0.0 before 6.4.0.</p>"},{"base64":false,"type":"text/markdown","value":"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.\n\nThe 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.\n\nThis issue affects partisan: from 3.0.0 before 6.4.0."}],"value":"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.\n\nThe 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.\n\nThis issue affects partisan: from 3.0.0 before 6.4.0."}],"impacts":[{"capecId":"CAPEC-130","descriptions":[{"lang":"en","supportingMedia":[{"base64":false,"type":"text/html","value":"<p>Any host that can open a TCP connection to the peer port stops the node with one frame, with no credentials and no cluster membership. The abort happens at VM level, so supervision trees cannot recover it, and every application running in that node goes down with partisan.</p>"},{"base64":false,"type":"text/markdown","value":"Any host that can open a TCP connection to the peer port stops the node with one frame, with no credentials and no cluster membership. The abort happens at VM level, so supervision trees cannot recover it, and every application running in that node goes down with partisan."}],"value":"Any host that can open a TCP connection to the peer port stops the node with one frame, with no credentials and no cluster membership. The abort happens at VM level, so supervision trees cannot recover it, and every application running in that node goes down with partisan."}]}],"metrics":[{"cvssV4_0":{"Automatable":"NOT_DEFINED","Recovery":"NOT_DEFINED","Safety":"NOT_DEFINED","attackComplexity":"LOW","attackRequirements":"NONE","attackVector":"NETWORK","baseScore":8.7,"baseSeverity":"HIGH","privilegesRequired":"NONE","providerUrgency":"NOT_DEFINED","subAvailabilityImpact":"NONE","subConfidentialityImpact":"NONE","subIntegrityImpact":"NONE","userInteraction":"NONE","valueDensity":"NOT_DEFINED","vectorString":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N","version":"4.0","vulnAvailabilityImpact":"HIGH","vulnConfidentialityImpact":"NONE","vulnIntegrityImpact":"NONE","vulnerabilityResponseEffort":"NOT_DEFINED"},"format":"CVSS","scenarios":[{"lang":"en","value":"GENERAL"}]}],"problemTypes":[{"descriptions":[{"cweId":"CWE-502","description":"CWE-502 Deserialization of Untrusted Data","lang":"en","type":"CWE"}]}],"providerMetadata":{"orgId":"6b3ad84c-e1a6-4bf7-a703-f496b71e49db","shortName":"EEF","dateUpdated":"2026-11-25T04:42:17.564Z"},"references":[{"name":"partisan decodes peer-plane frames with binary_to_term before authentication, allowing a remote VM abort","tags":["vendor-advisory","related"],"url":"https://github.com/lasp-lang/partisan/security/advisories/GHSA-38p4-3gp9-mfx9"},{"name":"EEF CNA record for CVE-2026-118898","tags":["related"],"url":"https://cna.erlef.org/cves/CVE-2026-118898.html"},{"name":"OSV record EEF-CVE-2026-118898","tags":["related"],"url":"https://osv.dev/vulnerability/EEF-CVE-2026-118898"},{"name":"Introducing commit 0431446 in lasp-lang/partisan","tags":["related"],"url":"https://github.com/lasp-lang/partisan/commit/04314463df1d3cb213c7a07beb60bf7af3389dfc"},{"name":"Fix commit 5c75b33 in lasp-lang/partisan","tags":["patch"],"url":"https://github.com/lasp-lang/partisan/commit/5c75b3368620ef9f7f07af5e7f70ade95030fe92"}],"solutions":[{"lang":"en","supportingMedia":[{"base64":false,"type":"text/html","value":"<p>The fixed release adds peer authentication and leaves it off by default (<code>peer_auth_methods</code> is <code>[]</code>). A node stays exposed until the option is set.</p>\n<p>Set <code>peer_auth_methods</code> on every node to a list of <code>cryptosign</code>, <code>gossip_keyring</code> or <code>hmac_secret</code> without <code>anonymous</code>, with the trust material of each listed method (<code>peer_auth_cryptosign</code>, <code>peer_auth_keyring</code>, <code>peer_auth_secret</code>). The node then accepts only authentication frames of at most 4096 bytes from a peer that has not authenticated, and reads them without <code>binary_to_term/1</code>.</p>\n<p>A node on an earlier release cannot connect to a node that requires authentication. Set the option on all nodes with <code>anonymous</code> at the end of the list, then remove <code>anonymous</code>. Peer authentication does not encrypt or sign later traffic, so use it over TLS 1.3 on a network that is not trusted.</p>"},{"base64":false,"type":"text/markdown","value":"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.\n\nSet `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`.\n\nA 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."}],"value":"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.\n\nSet 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.\n\nA 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."}],"source":{"discovery":"EXTERNAL"},"title":"partisan decodes peer-plane frames with binary_to_term before authentication, allowing a remote VM abort","workarounds":[{"lang":"en","supportingMedia":[{"base64":false,"type":"text/html","value":"<p>Enable mutual TLS on the peer plane. Set <code>tls</code> to <code>true</code> and give <code>tls_server_options</code> a cluster CA in <code>cacertfile</code> together with <code>{verify, verify_peer}</code> and <code>{fail_if_no_peer_cert, true}</code>, and give <code>tls_client_options</code> the same CA with <code>{verify, verify_peer}</code>. 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 <code>verify_none</code>, does not help.</p>\n<p>Where TLS cannot be enabled, restrict the peer listener port to trusted hosts with a host firewall or a private network segment.</p>"},{"base64":false,"type":"text/markdown","value":"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.\n\nWhere TLS cannot be enabled, restrict the peer listener port to trusted hosts with a host firewall or a private network segment."}],"value":"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.\n\nWhere TLS cannot be enabled, restrict the peer listener port to trusted hosts with a host firewall or a private network segment."}],"x_proofOfConcept":[{"lang":"en","supportingMedia":[{"base64":false,"type":"text/html","value":"<ol>\n<li>Start partisan with its default configuration, so <code>tls</code> is <code>false</code>, and let the peer listener bind to <code>127.0.0.1:12345</code>.</li>\n<li>From a plain TCP socket opened with <code>{packet, 4}</code>, send one frame holding the External Term Format of a list of 100,000 atoms the node has never seen (tag 131, <code>LIST_EXT</code>, 100,000 <code>SMALL_ATOM_UTF8_EXT</code> elements, <code>NIL_EXT</code>).</li>\n<li>Read <code>erlang:system_info(atom_count)</code> before and after. The count rises by 100,001 and the sample atoms resolve with <code>binary_to_term(_, [safe])</code>, so the server interned them before any message interpretation or authentication. A frame naming more than 1,048,576 atoms, within the 64 MB default frame cap, aborts the VM.</li>\n</ol>"},{"base64":false,"type":"text/markdown","value":"1. Start partisan with its default configuration, so `tls` is `false`, and let the peer listener bind to `127.0.0.1:12345`.\n2. From a plain TCP socket opened with `{packet, 4}`, send one frame holding the External Term Format of a list of 100,000 atoms the node has never seen (tag 131, `LIST_EXT`, 100,000 `SMALL_ATOM_UTF8_EXT` elements, `NIL_EXT`).\n3. Read `erlang:system_info(atom_count)` before and after. The count rises by 100,001 and the sample atoms resolve with `binary_to_term(_, [safe])`, so the server interned them before any message interpretation or authentication. A frame naming more than 1,048,576 atoms, within the 64 MB default frame cap, aborts the VM."}],"value":"* Start partisan with its default configuration, so tls is false, and let the peer listener bind to 127.0.0.1:12345.\n* From a plain TCP socket opened with {packet, 4}, send one frame holding the External Term Format of a list of 100,000 atoms the node has never seen (tag 131, LIST_EXT, 100,000 SMALL_ATOM_UTF8_EXT elements, NIL_EXT).\n* Read erlang:system_info(atom_count) before and after. The count rises by 100,001 and the sample atoms resolve with binary_to_term(_, [safe]), so the server interned them before any message interpretation or authentication. A frame naming more than 1,048,576 atoms, within the 64 MB default frame cap, aborts the VM."}],"x_technicalAnalysis":[{"lang":"en","supportingMedia":[{"base64":false,"type":"text/html","value":"<p><strong>1. Listener.</strong> <code>partisan_acceptor_socket</code> opens the peer port with <code>{packet, 4}</code> framing and a <code>packet_size</code> of <code>max_message_size</code> (64 MB by default). The cap bounds bytes per frame, not the term a frame decodes to. With <code>tls</code> unset the socket is plain TCP, and the listener binds to the node's host address unless <code>listen_addrs</code> says otherwise.</p>\n<p><strong>2. Greeting.</strong> <code>partisan_peer_service_server:acceptor_continue/3</code> accepts the socket, sends <code>{hello, Node}</code> unprompted and enters a <code>gen_server</code> loop. No cookie, shared secret or certificate check happens here.</p>\n<p><strong>3. Unsafe decode.</strong> The first frame reaches <code>partisan_peer_service_server:handle_info/2</code>, which calls <code>binary_to_term(Data)</code> with no <code>safe</code> option. The BIF interns every atom in the frame, builds every fun, port and reference, and inflates a compressed term, all before <code>handle_inbound/2</code> sees the result. A frame that names more atoms than the atom table holds aborts the VM at this step.</p>\n<p><strong>4. Client side.</strong> <code>partisan_peer_service_client:handle_info/2</code> decodes frames from the server end of a connection with the same call, so a node that connects to a hostile peer is exposed the same way.</p>\n<p><strong>5. TLS.</strong> Enabling <code>tls</code> wraps the socket but does not authenticate the peer unless both sides set <code>{verify, verify_peer}</code> with a cluster CA. Server-only TLS still lets any client that completes the handshake reach the decode.</p>"},{"base64":false,"type":"text/markdown","value":"**1. Listener.** `partisan_acceptor_socket` opens the peer port with `{packet, 4}` framing and a `packet_size` of `max_message_size` (64 MB by default). The cap bounds bytes per frame, not the term a frame decodes to. With `tls` unset the socket is plain TCP, and the listener binds to the node's host address unless `listen_addrs` says otherwise.\n\n**2. Greeting.** `partisan_peer_service_server:acceptor_continue/3` accepts the socket, sends `{hello, Node}` unprompted and enters a `gen_server` loop. No cookie, shared secret or certificate check happens here.\n\n**3. Unsafe decode.** The first frame reaches `partisan_peer_service_server:handle_info/2`, which calls `binary_to_term(Data)` with no `safe` option. The BIF interns every atom in the frame, builds every fun, port and reference, and inflates a compressed term, all before `handle_inbound/2` sees the result. A frame that names more atoms than the atom table holds aborts the VM at this step.\n\n**4. Client side.** `partisan_peer_service_client:handle_info/2` decodes frames from the server end of a connection with the same call, so a node that connects to a hostile peer is exposed the same way.\n\n**5. TLS.** Enabling `tls` wraps the socket but does not authenticate the peer unless both sides set `{verify, verify_peer}` with a cluster CA. Server-only TLS still lets any client that completes the handshake reach the decode."}],"value":"1. Listener. partisan_acceptor_socket opens the peer port with {packet, 4} framing and a packet_size of max_message_size (64 MB by default). The cap bounds bytes per frame, not the term a frame decodes to. With tls unset the socket is plain TCP, and the listener binds to the node's host address unless listen_addrs says otherwise.\n\n2. Greeting. partisan_peer_service_server:acceptor_continue/3 accepts the socket, sends {hello, Node} unprompted and enters a gen_server loop. No cookie, shared secret or certificate check happens here.\n\n3. Unsafe decode. The first frame reaches partisan_peer_service_server:handle_info/2, which calls binary_to_term(Data) with no safe option. The BIF interns every atom in the frame, builds every fun, port and reference, and inflates a compressed term, all before handle_inbound/2 sees the result. A frame that names more atoms than the atom table holds aborts the VM at this step.\n\n4. Client side. partisan_peer_service_client:handle_info/2 decodes frames from the server end of a connection with the same call, so a node that connects to a hostile peer is exposed the same way.\n\n5. TLS. Enabling tls wraps the socket but does not authenticate the peer unless both sides set {verify, verify_peer} with a cluster CA. Server-only TLS still lets any client that completes the handshake reach the decode."}]}}}