# CVE-2026-39803: HTTP/1 chunked body reader ignores length cap in bandit

- Severity: High 8.7 (CVSS:4.0, scored by EEF) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.77%, higher than 56% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-05-13T13:36:09.648Z
- Modified: 2026-11-25T17:23:05.724Z
- Also known as: GHSA-9q9q-324x-93r2, EEF-CVE-2026-39803
- Weaknesses: CWE-770
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: EEF

## Description

Allocation of Resources Without Limits or Throttling vulnerability in mtrudel bandit allows unauthenticated remote denial of service via memory exhaustion.

The 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.

Because 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.

The content-length path in the same function correctly enforces the limit and is not affected.

This issue affects bandit: from 1.4.0 before 1.11.1.

(As written by CVE List.)

## Affected

- bandit: from 1.4.0 before 1.11.1
- mtrudel/bandit: from 903e209a521bc216b9f9065c01ae9a0cac2d5a10 before ae3520dfdbfab115c638f8c7f6f6b805db34e1ab
- bandit (Hex): from 1.4.0 before 1.11.1
- https://github.com/mtrudel/bandit: from 903e209a521bc216b9f9065c01ae9a0cac2d5a10 before ae3520dfdbfab115c638f8c7f6f6b805db34e1ab
- mtrudel bandit: from 1.4.0 before 1.11.1

## Every score

- EEF: CVSS:4.0 8.7 High `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`
- GitHub: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- GitHub: CVSS:4.0 High `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`
- Erlang Ecosystem Foundation: CVSS:4.0 `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`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://github.com/mtrudel/bandit/security/advisories/GHSA-9q9q-324x-93r2> (exploit, advisory, related, vendor-advisory, web)
- <https://cna.erlef.org/cves/CVE-2026-39803.html> (related, third-party-advisory, web)
- <https://osv.dev/vulnerability/EEF-CVE-2026-39803> (related, third-party-advisory, web)
- <https://github.com/mtrudel/bandit/commit/903e209a521bc216b9f9065c01ae9a0cac2d5a10> (related, web)
- <https://github.com/mtrudel/bandit/commit/ae3520dfdbfab115c638f8c7f6f6b805db34e1ab> (fix, patch, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-39803> (advisory)
- <https://github.com/mtrudel/bandit> (package)
- <https://hex.pm/packages/bandit> (package)

## Sources

- CVE List: [CVE-2026-39803](https://www.cve.org/CVERecord?id=CVE-2026-39803), CVE Terms of Use, modified 2026-11-20
- GitHub Advisory Database: [GHSA-9q9q-324x-93r2](https://github.com/advisories/GHSA-9q9q-324x-93r2), CC-BY-4.0, modified 2026-06-08
- Erlang Ecosystem Foundation: [EEF-CVE-2026-39803](https://osv.dev/vulnerability/EEF-CVE-2026-39803), CC-BY-4.0, modified 2026-11-25
- NVD: [CVE-2026-39803](https://nvd.nist.gov/vuln/detail/CVE-2026-39803), Public domain, modified 2026-11-20

---

Page: https://cve.day/CVE-2026-39803 · Whole record: https://cve.day/CVE-2026-39803.json · Rebuilt by cve.day 2026-11-25T22:59:21.543Z
