{"id":"CVE-2026-39803","published":"2026-05-13T13:36:09Z","modified":"2026-11-20T05:16:52Z","title":"HTTP/1 chunked body reader ignores length cap in bandit","vendor":"mtrudel","product":"bandit","tier":"tail","description":{"text":"Allocation of Resources Without Limits or Throttling vulnerability in mtrudel bandit allows unauthenticated remote denial of service via memory exhaustion.\n\nThe chunked clause of Bandit.HTTP1.Socket.read_data/2 in lib/bandit/http1/socket.ex ignores the caller-supplied :length option when reading HTTP/1 chunked request bodies. Instead of capping the accumulated body at the configured limit (e.g. Plug.Parsers' default 8 MB), do_read_chunked_data!/5 buffers every received chunk into an iolist unconditionally and materializes the entire body as a single binary. The function always returns {:ok, body, ...}, so callers cannot interpose a 413 response.\n\nBecause Plug.Parsers runs before routing and authentication in the standard Phoenix endpoint, an unauthenticated attacker needs no valid route or credentials. Sending a single Transfer-Encoding: chunked POST request with an arbitrarily large body to any path causes the BEAM process to exhaust available memory and be terminated by the OS OOM killer.\n\nThe content-length path in the same function correctly enforces the limit and is not affected.\n\nThis issue affects bandit: from 1.4.0 before 1.11.1.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.7,"severity":"HIGH","version":"4.0","vector":"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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00642,"percentile":0.51723,"provenance":"source"},"cwes":[{"id":"CWE-770","name":"Allocation of Resources Without Limits or Throttling"}],"references":[{"url":"https://github.com/mtrudel/bandit/security/advisories/GHSA-9q9q-324x-93r2","tags":["vendor-advisory","related"]},{"url":"https://cna.erlef.org/cves/CVE-2026-39803.html","tags":["related"]},{"url":"https://osv.dev/vulnerability/EEF-CVE-2026-39803","tags":["related"]},{"url":"https://github.com/mtrudel/bandit/commit/903e209a521bc216b9f9065c01ae9a0cac2d5a10","tags":["related"]},{"url":"https://github.com/mtrudel/bandit/commit/ae3520dfdbfab115c638f8c7f6f6b805db34e1ab","tags":["patch"]}],"priority":{"score":16.4,"factors":[{"name":"EPSS percentile","points":10.34},{"name":"CVSS severity","points":6.09}]},"vendorSlug":"mtrudel","affectedVersions":[{"vendor":"mtrudel","product":"bandit","versions":[">= 1.4.0, < 1.11.1"]},{"vendor":"mtrudel","product":"bandit","versions":[">= 903e209a521bc216b9f9065c01ae9a0cac2d5a10, < ae3520dfdbfab115c638f8c7f6f6b805db34e1ab"]}],"capec":[{"id":"CAPEC-130","name":"Excessive Allocation"}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"partial","timestamp":"2026-05-13T14:41:58.440838Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Hex","package":"bandit","vulnerableRanges":[">=1.4.0, <1.11.1"],"patched":["1.11.1"],"from":["GHSA-9q9q-324x-93r2"],"provenance":"source"}],"summary":{"text":"A flaw in the chunked request body reader of the bandit HTTP server (for Elixir), specifically in the read_data/2 function of the HTTP/1 socket module, causes it to ignore the caller-supplied length cap when handling chunked bodies. An unauthenticated remote attacker needs only network access to send a single chunked POST request with an arbitrarily large body to any path, since body parsing occurs before routing and authentication, exhausting memory and crashing the process.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:00:25Z"},"euvd":{"id":"EUVD-2026-29950","exploited":false,"provenance":"source"}}