{"affected":[{"package":{"ecosystem":"Hex","name":"esaml","purl":"pkg:hex/esaml"},"ranges":[{"events":[{"introduced":"0.1.0"}],"type":"SEMVER"}],"versions":["3.0.1","3.1.0","3.2.0","3.3.0","3.4.0","3.5.0","3.6.0","3.6.1","3.7.0","4.0.0","4.1.0","4.2.0","4.3.0","4.4.0","4.5.0","4.6.0"]},{"ranges":[{"events":[{"introduced":"deeb84378d5c82153b470e99d24f77c38afca14a"}],"repo":"https://github.com/arekinath/esaml","type":"GIT"}]},{"ranges":[{"events":[{"introduced":"deeb84378d5c82153b470e99d24f77c38afca14a"}],"repo":"https://github.com/handnot2/esaml","type":"GIT"}]},{"ranges":[{"events":[{"introduced":"deeb84378d5c82153b470e99d24f77c38afca14a"}],"repo":"https://github.com/dropbox/esaml","type":"GIT"}]}],"aliases":["CVE-2026-105270"],"credits":[{"name":"Quinn Wilton","type":"FINDER"},{"name":"Quinn Wilton","type":"REPORTER"},{"name":"Jonatan Männchen / EEF","type":"COORDINATOR"}],"database_specific":{"capec_ids":["CAPEC-130"],"cpe_ids":["cpe:2.3:a:arekinath:esaml:*:*:*:*:*:*:*:*","cpe:2.3:a:handnot2:esaml:*:*:*:*:*:*:*:*","cpe:2.3:a:dropbox:esaml:*:*:*:*:*:*:*:*"],"cwe_ids":["CWE-770"]},"details":"## Summary\n\nAllocation of Resources Without Limits or Throttling vulnerability in `esaml_binding` in dropbox esaml allows an unauthenticated attacker to exhaust the Erlang VM atom table and crash the node via a crafted `SAMLResponse`.\n\n`esaml_binding:decode_response/2` parses the decoded `SAMLResponse` with `xmerl_scan:string/2`, which interns every element name, attribute name, and namespace prefix it reads as a permanent atom. The SAML consume (ACS) and single-logout endpoints call it on unauthenticated requests before any signature check, so one well-formed document with thousands of distinct names mints thousands of atoms while staying inside the 128 KB request body limit. Atoms are never reclaimed and the VM caps the atom table at about one million entries, so a few dozen requests abort the node.\n\nThis issue affects esaml: from 0.1.0 onward.\n\n## Details\n\n**1. Input.** The SAML consume (ACS) and single-logout endpoints in `esaml_cowboy` read the request body, capped at 128 KB, and pass the `SAMLResponse` form field to `esaml_binding:decode_response/2`. Both the DEFLATE clause and the default clause end in `xmerl_scan:string/2` with `namespace_conformant` set.\n\n**2. Interning.** `xmerl_scan` converts every element name, attribute name, and namespace prefix it tokenizes into an atom with `list_to_atom/1`, and the same happens for each namespace local name in `expanded_name/4`. A well-formed document with many distinct names therefore mints one permanent atom per name. Repetitive names deflate well, so a document with ten thousand distinct names fits in a few tens of kilobytes on the wire.\n\n**3. Exhaustion before any check.** Signature verification and assertion validation run on the parsed document afterward, so the atoms are minted whether or not the document is a valid or signed SAML message. Atoms are never garbage collected and the VM aborts when the atom table reaches its limit of about one million entries, so a few dozen requests take the node down.\n\n## Proof of concept\n\n1. Build a well-formed XML document whose root contains several thousand empty elements with distinct names, each carrying a distinctly named attribute, for example `<p0 a0=\"x\"/>` through `<p4999 a4999=\"x\"/>`.\n2. Deflate and base64-encode it, and post it to the service provider's SAML consume (ACS) or single-logout endpoint as the `SAMLResponse` form field with `SAMLEncoding` set to the DEFLATE URI. A document with 5,000 elements and 5,000 attributes encodes to about 33 KB.\n3. `esaml_binding:decode_response/2` parses it with `xmerl_scan:string/2` before any signature check, and the atom table grows by 10,000 entries that are never reclaimed. Repeat with fresh names until the VM aborts.\n\n## Impact\n\nAn unauthenticated attacker posts a small SAML document with thousands of distinct element and attribute names to a service provider's consume or single-logout endpoint. Each request permanently consumes thousands of atom table entries, and a few dozen requests abort the Erlang VM, denying service to every user of the service provider.","id":"EEF-CVE-2026-105270","modified":"2026-10-22T06:58:43.281829Z","published":"2026-10-22T06:58:43.034Z","references":[{"type":"WEB","url":"https://cna.erlef.org/cves/CVE-2026-105270.html"},{"type":"WEB","url":"https://github.com/arekinath/esaml/commit/deeb84378d5c82153b470e99d24f77c38afca14a"},{"type":"WEB","url":"https://github.com/handnot2/esaml/commit/deeb84378d5c82153b470e99d24f77c38afca14a"},{"type":"WEB","url":"https://github.com/dropbox/esaml/commit/deeb84378d5c82153b470e99d24f77c38afca14a"},{"type":"PACKAGE","url":"https://hex.pm/packages/esaml"}],"related":[],"schema_version":"1.7.3","severity":[{"score":"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","type":"CVSS_V4"}],"summary":"Unbounded atom creation while parsing SAML messages in esaml allows atom table exhaustion","upstream":[]}