Skip to main content
Vulnerability Database/CVE-2026-93471

CVE-2026-93471: Dropbox esaml DOS Vulnerability

CVE-2026-93471 is a denial of service vulnerability in Dropbox esaml that allows attackers to exhaust server memory through compressed SAML data. This article covers the technical details, affected versions, and mitigation steps.

Published:

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-93471 Overview

CVE-2026-93471 is a data amplification vulnerability in the esaml_binding module of the dropbox esaml library for Erlang. The flaw allows an unauthenticated attacker to exhaust server memory and crash the Erlang VM by sending a crafted compressed SAMLResponse. The library inflates attacker-controlled zlib data with no output size limit before any signature verification runs. A compression ratio approaching 1000:1 means tens of kilobytes of request body can inflate to several gigabytes of list heap. The vulnerability affects esaml versions from 0.1.0 onward and is classified under CWE-409.

Critical Impact

A handful of unauthenticated HTTP requests to the SAML Assertion Consumer Service (ACS) or Single Logout endpoints can exhaust memory and take the Erlang node offline.

Affected Products

  • dropbox esaml (all versions from 0.1.0 onward)
  • arekinath esaml fork
  • handnot2 esaml fork

Discovery Timeline

  • 2026-10-22 - CVE CVE-2026-93471 published to NVD
  • 2026-10-22 - Last updated in NVD database

Technical Details for CVE-2026-93471

Vulnerability Analysis

The esaml library implements the SAML 2.0 HTTP-Redirect and HTTP-POST bindings used by Erlang web applications for single sign-on. The function esaml_binding:decode_response/2 processes incoming SAMLResponse parameters on both the ACS endpoint and the Single Logout Service endpoint. Both endpoints accept unauthenticated requests by protocol design, which makes the parsing path reachable by any remote client.

The decoding pipeline performs three operations in sequence: base64 decode, zlib inflate, and conversion to an Erlang charlist via binary_to_list/1. The inflate step uses zlib:unzip/1 without specifying a maximum output size. The charlist conversion then multiplies memory usage, because each byte becomes a list cell occupying 16 bytes on a 64-bit Erlang VM.

Root Cause

The root cause is improper handling of highly compressed data [CWE-409]. The zlib:unzip/1 call does not bound the decompressed output, and no size check is applied before or during inflation. Signature validation on the enclosing SAML assertion only runs after parsing, so untrusted data drives memory allocation first.

Attack Vector

An unauthenticated remote attacker crafts a small deflate stream that expands at a ratio near 1000:1. The attacker base64-encodes the stream and submits it as the SAMLResponse parameter to the ACS or SLO endpoint. A request body of tens of kilobytes produces hundreds of megabytes of binary output, which binary_to_list/1 then expands to several gigabytes of list heap. Repeated requests exhaust system memory and crash the Erlang VM, denying service to all tenants on the node.

// Vulnerable logic flow in esaml_binding:decode_response/2
// 1. Base64 decode SAMLResponse parameter (attacker-controlled)
// 2. zlib:unzip/1 inflates without output bound -> ~1000x amplification
// 3. binary_to_list/1 expands bytes to list cells (~16x on 64-bit VM)
// 4. XML parsing and signature check run only after allocation

Source: CNA advisory for CVE-2026-93471

Detection Methods for CVE-2026-93471

Indicators of Compromise

  • Erlang VM crashes with system_limit or out-of-memory errors on nodes exposing SAML ACS or SLO endpoints.
  • Spikes in resident memory on the Erlang application process correlated with POST requests to /saml/consume or SLO URLs.
  • HTTP POST or GET requests to SAML endpoints containing SAMLResponse parameters with high entropy and small size.
  • Repeated unauthenticated requests to SAML endpoints from a single source IP within a short time window.

Detection Strategies

  • Inspect inbound SAML traffic for SAMLResponse payloads whose base64-decoded length is small but whose decompressed length exceeds a sane threshold such as 1 MB.
  • Alert on Erlang beam.smp processes exceeding configured memory limits or triggering OOM-killer events on hosts running SAML service providers.
  • Correlate web server access logs for bursts of requests to ACS and SLO URLs with HTTP 5xx responses or dropped connections.

Monitoring Recommendations

  • Instrument the Erlang VM with erlang:memory/0 sampling and alert on sudden binary or processes heap growth tied to SAML request handlers.
  • Enable WAF or reverse proxy rules that measure request body size, decompression ratio, and request rate per source for SAML endpoints.
  • Track CVE references for esaml across OSV and the EEF CNA feed to catch downstream fork advisories.

How to Mitigate CVE-2026-93471

Immediate Actions Required

  • Upgrade esaml to a patched release incorporating commit deeb84378d5c82153b470e99d24f77c38afca14a from the maintained fork.
  • Place a reverse proxy or WAF in front of SAML endpoints that enforces a maximum request body size on SAMLResponse parameters.
  • Apply per-source rate limiting on the ACS and SLO URLs to blunt amplification attempts.
  • Audit all Erlang services that depend on esaml, including transitive dependencies pulled through rebar3 or mix.

Patch Information

The fix is tracked in commit deeb84378d5c82153b470e99d24f77c38afca14a across the arekinath/esaml, dropbox/esaml, and handnot2/esaml repositories. The dropbox repository is unmaintained, so operators should migrate to an actively maintained fork. See the OSV record EEF-CVE-2026-93471 for ecosystem coordinates.

Workarounds

  • Terminate TLS at a proxy and reject SAMLResponse bodies above a conservative size such as 64 KB before they reach the Erlang node.
  • Add a pre-inflate check that computes the base64-decoded length and refuses requests exceeding the limit.
  • Replace zlib:unzip/1 with a streaming zlib:inflate/2 loop that aborts once the output exceeds a bounded buffer.
  • Avoid binary_to_list/1 on untrusted inflated data and keep the payload as a binary through XML parsing.
bash
# Example nginx guardrail for a SAML ACS endpoint
location /saml/consume {
    client_max_body_size 64k;
    limit_req zone=saml burst=5 nodelay;
    proxy_pass http://erlang_app;
}

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

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.