# CVE-2026-39805: CL.CL HTTP request smuggling via duplicate Content-Length in bandit

- Severity: Medium 6.3 (CVSS:4.0, scored by EEF) `CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:L/VA:N/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.60%, higher than 49% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-05-01T20:34:29.400Z
- Modified: 2026-11-25T17:23:06.575Z
- Also known as: GHSA-c67r-gc9j-2qf7, EEF-CVE-2026-39805
- Weaknesses: CWE-444
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: EEF

## Description

Inconsistent Interpretation of HTTP Requests vulnerability in mtrudel bandit allows HTTP request smuggling via duplicate Content-Length headers.

Bandit.Headers.get_content_length/1 in lib/bandit/headers.ex uses List.keyfind/3, which returns only the first matching header. When a request contains two Content-Length headers with different values, Bandit silently accepts it, uses the first value to read the body, and dispatches the remaining bytes as a second pipelined request on the same keep-alive connection. RFC 9112 §6.3 requires recipients to treat this as an unrecoverable framing error.

When Bandit sits behind a proxy that picks the last Content-Length value and forwards the request rather than rejecting it, an unauthenticated attacker can smuggle requests past edge WAF rules, path-based ACLs, rate limiting, and audit logging.

This issue affects bandit: from 0.1.0 before 1.11.0.

(As written by CVE List.)

## Affected

- bandit: from 0.1.0 before 1.11.0
- mtrudel/bandit: from 7bc8d97cd22697c299baa8012b7f419a7606a80c before f2ca636eb6df385219957e8934e9fc6efa1630d1
- bandit (Hex): before 1.11.0; from 0.1.0 before 1.11.0
- https://github.com/mtrudel/bandit: from 7bc8d97cd22697c299baa8012b7f419a7606a80c before f2ca636eb6df385219957e8934e9fc6efa1630d1

## Every score

- EEF: CVSS:4.0 6.3 Medium `CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N`
- GitHub: CVSS:4.0 Medium `CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N`
- Erlang Ecosystem Foundation: CVSS:4.0 `CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N`

## References

- <https://github.com/mtrudel/bandit/security/advisories/GHSA-c67r-gc9j-2qf7> (exploit, advisory, related, vendor-advisory, web)
- <https://cna.erlef.org/cves/CVE-2026-39805.html> (related, web)
- <https://osv.dev/vulnerability/EEF-CVE-2026-39805> (related, web)
- <https://github.com/mtrudel/bandit/commit/7bc8d97cd22697c299baa8012b7f419a7606a80c> (related, web)
- <https://github.com/mtrudel/bandit/commit/f2ca636eb6df385219957e8934e9fc6efa1630d1> (fix, patch, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-39805> (advisory)
- <https://github.com/mtrudel/bandit> (package)
- <https://hex.pm/packages/bandit> (package)

## Sources

- CVE List: [CVE-2026-39805](https://www.cve.org/CVERecord?id=CVE-2026-39805), CVE Terms of Use, modified 2026-11-20
- GitHub Advisory Database: [GHSA-c67r-gc9j-2qf7](https://github.com/advisories/GHSA-c67r-gc9j-2qf7), CC-BY-4.0, modified 2026-05-07
- Erlang Ecosystem Foundation: [EEF-CVE-2026-39805](https://osv.dev/vulnerability/EEF-CVE-2026-39805), CC-BY-4.0, modified 2026-11-25
- NVD: [CVE-2026-39805](https://nvd.nist.gov/vuln/detail/CVE-2026-39805), Public domain, modified 2026-11-20

---

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