Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2026-86696 Overview
CVE-2026-86696 is a resource exhaustion vulnerability in the esaml library, a Security Assertion Markup Language (SAML) Service Provider implementation for Erlang maintained by Dropbox and forks. The flaw lets an unauthenticated attacker crash an Erlang node by posting unsigned SAML LogoutResponse messages to the single-logout (SLO) endpoint. Each distinct status URN mints a permanent atom in the Erlang Virtual Machine (VM) atom table, which is capped at approximately one million entries. The vulnerability affects esaml from version 0.1.0 onward and is classified under [CWE-770: Allocation of Resources Without Limits or Throttling].
Critical Impact
An unauthenticated remote attacker can exhaust the Erlang VM atom table and abort the node, producing a denial-of-service condition against any application exposing an esaml SLO endpoint.
Affected Products
- dropbox/esaml from 0.1.0 onward
- arekinath/esaml (fork) prior to commit be692b5
- handnot2/esaml (fork) prior to commit be692b5
Discovery Timeline
- 2026-10-22 - CVE CVE-2026-86696 published to NVD
- 2026-10-22 - Last updated in NVD database
Technical Details for CVE-2026-86696
Vulnerability Analysis
The vulnerability resides in esaml:status_code_map/1 within src/esaml.erl. The function maps any unrecognized SAML StatusCode value to an Erlang atom using list_to_atom/1 on the final colon-separated segment of the URN. Erlang atoms are never garbage-collected, and the VM enforces a hard upper bound of roughly one million entries in the atom table.
The second defect sits in esaml_sp:validate_logout_response/2, which only verifies the XML Signature when the inbound message carries one. An unsigned LogoutResponse therefore bypasses cryptographic validation entirely and reaches esaml:decode_logout_response/1, where the attacker-controlled status URN is converted to a permanent atom.
Root Cause
Two weaknesses combine to produce the condition. First, list_to_atom/1 is invoked on untrusted input without an allowlist or bounded cache. Second, the SLO handler accepts unsigned responses, so there is no authentication gate preventing arbitrary status values from being processed.
Attack Vector
An unauthenticated attacker posts a stream of unsigned LogoutResponse messages to the SLO endpoint. Each message carries a unique StatusCode URN such as urn:attacker:status:<N>. The server converts each unique final segment into a permanent atom. After roughly one million distinct values, the VM atom limit is reached and the node aborts.
// Vendor patch excerpt from src/esaml.erl adding a dedicated
// logout-response status mapper rather than funneling untrusted
// URNs into list_to_atom/1 via the generic response path.
response_map_status_code(R = #esaml_response{status = Code}) ->
R#esaml_response{status = status_code_map(Code)}.
+logoutresp_map_status_code(R = #esaml_logoutresp{status = Code}) ->
+ R#esaml_logoutresp{status = status_code_map(Code)}.
logoutreq_map_reason(R = #esaml_logoutreq{reason = undefined}) ->
R;
logoutreq_map_reason(R = #esaml_logoutreq{reason = Urn}) ->
Source: GitHub commit be692b5 (arekinath/esaml)
Detection Methods for CVE-2026-86696
Indicators of Compromise
- High volume of HTTP POST requests to the SAML SLO endpoint from a single source or small cluster of sources.
- Inbound LogoutResponse messages carrying unusual or randomized StatusCode URN values that do not match SAML 2.0 standard status codes.
- Erlang crash dump files (erl_crash.dump) referencing system_limit on atom creation or no_more_atoms.
- Rapid growth in the VM atom table reported by erlang:system_info(atom_count).
Detection Strategies
- Instrument the esaml SLO handler to log received StatusCode values and alert on cardinality anomalies.
- Monitor the Erlang VM atom table size and alert when atom_count approaches 70% of atom_limit.
- Deploy web application firewall (WAF) rules that inspect SAML POST bodies for non-standard status URNs.
Monitoring Recommendations
- Collect application and Erlang VM telemetry into a centralized logging platform for anomaly analysis.
- Baseline the normal request rate to /saml/slo endpoints and alert on sustained deviations.
- Correlate SLO POST volume with the absence of a prior authenticated session to flag unsigned, unsolicited responses.
How to Mitigate CVE-2026-86696
Immediate Actions Required
- Upgrade esaml to a build that includes commit be692b5 from the maintained fork in use.
- Enforce signature validation on all inbound LogoutResponse messages, rejecting any unsigned responses.
- Rate-limit the SLO endpoint at the reverse proxy or ingress tier to constrain atom creation velocity.
Patch Information
The fix is distributed as commit be692b56245071899757afa7ef47e43593d3de96 across the active esaml forks. See the CNA advisory for CVE-2026-86696, the arekinath/esaml commit, the dropbox/esaml commit, the handnot2/esaml commit, and the OSV record EEF-CVE-2026-86696.
Workarounds
- Require signed LogoutResponse messages at the Identity Provider (IdP) metadata configuration and reject unsigned traffic at the SP.
- Front the SLO endpoint with a WAF rule that denies POST bodies containing StatusCode URNs outside the SAML 2.0 standard set.
- Raise the Erlang atom table ceiling with +t as a short-term shock absorber while planning the upgrade, understanding this only delays exhaustion.
# Short-term mitigations until the patched esaml build is deployed
# 1. Rate-limit the SLO endpoint at nginx (example)
limit_req_zone $binary_remote_addr zone=saml_slo:10m rate=5r/s;
location /saml/slo {
limit_req zone=saml_slo burst=10 nodelay;
proxy_pass http://esaml_backend;
}
# 2. Raise the Erlang atom table size at VM start (temporary)
erl +t 2097152 -s myapp
# 3. Monitor atom table growth from the Erlang shell
% erlang:system_info(atom_count).
% erlang:system_info(atom_limit).
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

