{"containers":{"cna":{"affected":[{"collectionURL":"https://github.com","cpes":["cpe:2.3:a:handnot2:esaml:*:*:*:*:*:*:*:*"],"defaultStatus":"unaffected","modules":["esaml_binding","esaml_cowboy"],"packageName":"handnot2/esaml","packageURL":"pkg:github/handnot2/esaml","product":"esaml","programFiles":["src/esaml_binding.erl","src/esaml_cowboy.erl"],"programRoutines":[{"name":"esaml_binding:decode_response/2"},{"name":"esaml_cowboy:validate_assertion/2"},{"name":"esaml_cowboy:validate_logout/2"}],"repo":"https://github.com/handnot2/esaml","vendor":"handnot2","versions":[{"lessThan":"*","status":"affected","version":"deeb84378d5c82153b470e99d24f77c38afca14a","versionType":"git"}]},{"collectionURL":"https://github.com","cpes":["cpe:2.3:a:arekinath:esaml:*:*:*:*:*:*:*:*"],"defaultStatus":"unaffected","modules":["esaml_binding","esaml_cowboy"],"packageName":"arekinath/esaml","packageURL":"pkg:github/arekinath/esaml","product":"esaml","programFiles":["src/esaml_binding.erl","src/esaml_cowboy.erl"],"programRoutines":[{"name":"esaml_binding:decode_response/2"},{"name":"esaml_cowboy:validate_assertion/2"},{"name":"esaml_cowboy:validate_logout/2"}],"repo":"https://github.com/arekinath/esaml","vendor":"arekinath","versions":[{"lessThan":"*","status":"affected","version":"deeb84378d5c82153b470e99d24f77c38afca14a","versionType":"git"}]},{"collectionURL":"https://repo.hex.pm","cpes":["cpe:2.3:a:dropbox:esaml:*:*:*:*:*:*:*:*"],"defaultStatus":"unaffected","modules":["esaml_binding","esaml_cowboy"],"packageName":"esaml","packageURL":"pkg:hex/esaml","product":"esaml","programFiles":["src/esaml_binding.erl","src/esaml_cowboy.erl"],"programRoutines":[{"name":"esaml_binding:decode_response/2"},{"name":"esaml_cowboy:validate_assertion/2"},{"name":"esaml_cowboy:validate_logout/2"}],"repo":"https://github.com/dropbox/esaml","vendor":"dropbox","versions":[{"lessThan":"*","status":"affected","version":"0.1.0","versionType":"semver"}]},{"collectionURL":"https://github.com","cpes":["cpe:2.3:a:dropbox:esaml:*:*:*:*:*:*:*:*"],"defaultStatus":"unaffected","modules":["esaml_binding","esaml_cowboy"],"packageName":"dropbox/esaml","packageURL":"pkg:github/dropbox/esaml","product":"esaml","programFiles":["src/esaml_binding.erl","src/esaml_cowboy.erl"],"programRoutines":[{"name":"esaml_binding:decode_response/2"},{"name":"esaml_cowboy:validate_assertion/2"},{"name":"esaml_cowboy:validate_logout/2"}],"repo":"https://github.com/dropbox/esaml","vendor":"dropbox","versions":[{"lessThan":"*","status":"affected","version":"deeb84378d5c82153b470e99d24f77c38afca14a","versionType":"git"}]}],"cpeApplicability":[{"nodes":[{"cpeMatch":[{"criteria":"cpe:2.3:a:handnot2:esaml:*:*:*:*:*:*:*:*","versionStartIncluding":"2.0.0","vulnerable":true},{"criteria":"cpe:2.3:a:dropbox:esaml:*:*:*:*:*:*:*:*","versionStartIncluding":"0.1.0","vulnerable":true}],"negate":false,"operator":"OR"}],"operator":"AND"}],"credits":[{"lang":"en","type":"reporter","value":"Quinn Wilton"},{"lang":"en","type":"coordinator","value":"Jonatan Männchen / EEF"},{"lang":"en","type":"analyst","value":"Jonatan Männchen / EEF"}],"dateAssigned":"2026-10-06T10:25:40.000Z","descriptions":[{"lang":"en","supportingMedia":[{"base64":false,"type":"text/html","value":"<p>Improper Handling of Highly Compressed Data (Data Amplification) in <code>esaml_binding</code> in dropbox esaml allows an unauthenticated attacker to exhaust server memory and crash the Erlang VM via a crafted compressed <code>SAMLResponse</code>.</p>\n<p><code>esaml_binding:decode_response/2</code> base64-decodes the attacker-supplied <code>SAMLResponse</code>, inflates it with <code>zlib:unzip/1</code> with no bound on the output, then converts the result to a charlist with <code>binary_to_list/1</code> before parsing. This runs on the SAML consume (ACS) and single-logout endpoints, which accept unauthenticated requests by design, and it runs before any signature check. A small deflate stream reaches a compression ratio near 1000 to 1, so a request body of tens of kilobytes inflates to hundreds of megabytes and then to several gigabytes of list heap, so a few requests exhaust memory and take the node down.</p>\n<p>This issue affects esaml: from 0.1.0 onward.</p>"},{"base64":false,"type":"text/markdown","value":"Improper Handling of Highly Compressed Data (Data Amplification) in `esaml_binding` in dropbox esaml allows an unauthenticated attacker to exhaust server memory and crash the Erlang VM via a crafted compressed `SAMLResponse`.\n\n`esaml_binding:decode_response/2` base64-decodes the attacker-supplied `SAMLResponse`, inflates it with `zlib:unzip/1` with no bound on the output, then converts the result to a charlist with `binary_to_list/1` before parsing. This runs on the SAML consume (ACS) and single-logout endpoints, which accept unauthenticated requests by design, and it runs before any signature check. A small deflate stream reaches a compression ratio near 1000 to 1, so a request body of tens of kilobytes inflates to hundreds of megabytes and then to several gigabytes of list heap, so a few requests exhaust memory and take the node down.\n\nThis issue affects esaml: from 0.1.0 onward."}],"value":"Improper Handling of Highly Compressed Data (Data Amplification) in esaml_binding in dropbox esaml allows an unauthenticated attacker to exhaust server memory and crash the Erlang VM via a crafted compressed SAMLResponse.\n\nesaml_binding:decode_response/2 base64-decodes the attacker-supplied SAMLResponse, inflates it with zlib:unzip/1 with no bound on the output, then converts the result to a charlist with binary_to_list/1 before parsing. This runs on the SAML consume (ACS) and single-logout endpoints, which accept unauthenticated requests by design, and it runs before any signature check. A small deflate stream reaches a compression ratio near 1000 to 1, so a request body of tens of kilobytes inflates to hundreds of megabytes and then to several gigabytes of list heap, so a few requests exhaust memory and take the node down.\n\nThis issue affects esaml: from 0.1.0 onward."}],"impacts":[{"capecId":"CAPEC-231","descriptions":[{"lang":"en","supportingMedia":[{"base64":false,"type":"text/html","value":"<p>An unauthenticated attacker reaches a SAML consume or single-logout endpoint and posts a small compressed <code>SAMLResponse</code> that inflates to gigabytes, exhausting memory. A few requests crash the Erlang VM and deny service to every user of the service provider.</p>"},{"base64":false,"type":"text/markdown","value":"An unauthenticated attacker reaches a SAML consume or single-logout endpoint and posts a small compressed `SAMLResponse` that inflates to gigabytes, exhausting memory. A few requests crash the Erlang VM and deny service to every user of the service provider."}],"value":"An unauthenticated attacker reaches a SAML consume or single-logout endpoint and posts a small compressed SAMLResponse that inflates to gigabytes, exhausting memory. A few requests crash the Erlang VM and deny service to every user of the service provider."}]}],"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-409","description":"CWE-409 Improper Handling of Highly Compressed Data (Data Amplification)","lang":"en","type":"CWE"}]}],"providerMetadata":{"dateUpdated":"2026-10-22T06:59:24.029Z","orgId":"6b3ad84c-e1a6-4bf7-a703-f496b71e49db","shortName":"EEF"},"references":[{"name":"EEF CNA record for CVE-2026-93471","tags":["related","third-party-advisory"],"url":"https://cna.erlef.org/cves/CVE-2026-93471.html"},{"name":"OSV record EEF-CVE-2026-93471","tags":["related"],"url":"https://osv.dev/vulnerability/EEF-CVE-2026-93471"},{"name":"Introducing commit deeb843 in handnot2/esaml","tags":["related"],"url":"https://github.com/handnot2/esaml/commit/deeb84378d5c82153b470e99d24f77c38afca14a"},{"name":"Introducing commit deeb843 in arekinath/esaml","tags":["related"],"url":"https://github.com/arekinath/esaml/commit/deeb84378d5c82153b470e99d24f77c38afca14a"},{"name":"Introducing commit deeb843 in dropbox/esaml","tags":["related","broken-link"],"url":"https://github.com/dropbox/esaml/commit/deeb84378d5c82153b470e99d24f77c38afca14a"}],"source":{"discovery":"EXTERNAL"},"title":"Unbounded SAML message decompression in esaml allows memory exhaustion","x_proofOfConcept":[{"lang":"en","supportingMedia":[{"base64":false,"type":"text/html","value":"<ol>\n<li>Build a <code>SAMLResponse</code> as the base64 of a raw deflate stream of a long run of identical bytes (for example 60 MB of zero bytes), which encodes to roughly 79 KB on the wire.</li>\n<li>Post it to the service provider's SAML consume (ACS) endpoint as the <code>SAMLResponse</code> form field, with <code>SAMLEncoding</code> set to the DEFLATE URI, or omitted to take the default clause.</li>\n<li><code>esaml_binding:decode_response/2</code> inflates the stream and converts it to a charlist before any signature check. A single request spikes the Erlang VM by several gigabytes. Repeat to exhaust memory and crash the node.</li>\n</ol>"},{"base64":false,"type":"text/markdown","value":"1. Build a `SAMLResponse` as the base64 of a raw deflate stream of a long run of identical bytes (for example 60 MB of zero bytes), which encodes to roughly 79 KB on the wire.\n2. Post it to the service provider's SAML consume (ACS) endpoint as the `SAMLResponse` form field, with `SAMLEncoding` set to the DEFLATE URI, or omitted to take the default clause.\n3. `esaml_binding:decode_response/2` inflates the stream and converts it to a charlist before any signature check. A single request spikes the Erlang VM by several gigabytes. Repeat to exhaust memory and crash the node."}],"value":"* Build a SAMLResponse as the base64 of a raw deflate stream of a long run of identical bytes (for example 60 MB of zero bytes), which encodes to roughly 79 KB on the wire.\n* Post it to the service provider's SAML consume (ACS) endpoint as the SAMLResponse form field, with SAMLEncoding set to the DEFLATE URI, or omitted to take the default clause.\n* esaml_binding:decode_response/2 inflates the stream and converts it to a charlist before any signature check. A single request spikes the Erlang VM by several gigabytes. Repeat to exhaust memory and crash the node."}],"x_technicalAnalysis":[{"lang":"en","supportingMedia":[{"base64":false,"type":"text/html","value":"<p><strong>1. Input.</strong> The SAML consume (ACS) and single-logout endpoints read the request body and pass the <code>SAMLResponse</code> form field to <code>esaml_binding:decode_response/2</code>. The attacker's <code>SAMLEncoding</code> field selects the clause. Both clauses inflate: the explicit DEFLATE clause, and the default clause, which tries <code>zlib:unzip/1</code> inside a <code>catch</code> whenever the body is not plain XML.</p>\n<p><strong>2. Unbounded inflate.</strong> <code>decode_response/2</code> evaluates <code>binary_to_list(zlib:unzip(base64:decode(SAMLResponse)))</code>. <code>zlib:unzip/1</code> inflates the whole stream in one call with no cap on output size, and <code>binary_to_list/1</code> then expands the inflated binary to a charlist, which costs about 16 bytes of heap per byte on a 64-bit VM.</p>\n<p><strong>3. Exhaustion before any check.</strong> All of this happens before <code>xmerl_scan</code> parses the document and before <code>esaml_sp</code> verifies any signature. A deflate stream of a long run of identical bytes reaches a ratio near 1000 to 1, so a request body of tens of kilobytes produces hundreds of megabytes of binary and then several gigabytes of list heap. A few concurrent requests exhaust memory and crash the node.</p>"},{"base64":false,"type":"text/markdown","value":"**1. Input.** The SAML consume (ACS) and single-logout endpoints read the request body and pass the `SAMLResponse` form field to `esaml_binding:decode_response/2`. The attacker's `SAMLEncoding` field selects the clause. Both clauses inflate: the explicit DEFLATE clause, and the default clause, which tries `zlib:unzip/1` inside a `catch` whenever the body is not plain XML.\n\n**2. Unbounded inflate.** `decode_response/2` evaluates `binary_to_list(zlib:unzip(base64:decode(SAMLResponse)))`. `zlib:unzip/1` inflates the whole stream in one call with no cap on output size, and `binary_to_list/1` then expands the inflated binary to a charlist, which costs about 16 bytes of heap per byte on a 64-bit VM.\n\n**3. Exhaustion before any check.** All of this happens before `xmerl_scan` parses the document and before `esaml_sp` verifies any signature. A deflate stream of a long run of identical bytes reaches a ratio near 1000 to 1, so a request body of tens of kilobytes produces hundreds of megabytes of binary and then several gigabytes of list heap. A few concurrent requests exhaust memory and crash the node."}],"value":"1. Input. The SAML consume (ACS) and single-logout endpoints read the request body and pass the SAMLResponse form field to esaml_binding:decode_response/2. The attacker's SAMLEncoding field selects the clause. Both clauses inflate: the explicit DEFLATE clause, and the default clause, which tries zlib:unzip/1 inside a catch whenever the body is not plain XML.\n\n2. Unbounded inflate. decode_response/2 evaluates binary_to_list(zlib:unzip(base64:decode(SAMLResponse))). zlib:unzip/1 inflates the whole stream in one call with no cap on output size, and binary_to_list/1 then expands the inflated binary to a charlist, which costs about 16 bytes of heap per byte on a 64-bit VM.\n\n3. Exhaustion before any check. All of this happens before xmerl_scan parses the document and before esaml_sp verifies any signature. A deflate stream of a long run of identical bytes reaches a ratio near 1000 to 1, so a request body of tens of kilobytes produces hundreds of megabytes of binary and then several gigabytes of list heap. A few concurrent requests exhaust memory and crash the node."}]}},"cveMetadata":{"assignerOrgId":"6b3ad84c-e1a6-4bf7-a703-f496b71e49db","assignerShortName":"EEF","cveId":"CVE-2026-93471","datePublished":"2026-10-22T06:59:24.029Z","dateReserved":"2026-10-06T08:45:01.518Z","dateUpdated":"2026-10-22T06:59:24.029Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"}