{"id":"CVE-2026-39805","published":"2026-05-01T20:34:29Z","modified":"2026-11-20T04:24:27Z","title":"CL.CL HTTP request smuggling via duplicate Content-Length in bandit","vendor":"mtrudel","product":"bandit","tier":"tail","description":{"text":"Inconsistent Interpretation of HTTP Requests vulnerability in mtrudel bandit allows HTTP request smuggling via duplicate Content-Length headers.\n\nBandit.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.\n\nWhen 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.\n\nThis issue affects bandit: from 0.1.0 before 1.11.0.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.3,"severity":"MEDIUM","version":"4.0","vector":"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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00547,"percentile":0.39408,"provenance":"source"},"cwes":[{"id":"CWE-444","name":"Inconsistent Interpretation of HTTP Requests"}],"references":[{"url":"https://github.com/mtrudel/bandit/security/advisories/GHSA-c67r-gc9j-2qf7","tags":["vendor-advisory","related"]},{"url":"https://cna.erlef.org/cves/CVE-2026-39805.html","tags":["related"]},{"url":"https://osv.dev/vulnerability/EEF-CVE-2026-39805","tags":["related"]},{"url":"https://github.com/mtrudel/bandit/commit/7bc8d97cd22697c299baa8012b7f419a7606a80c","tags":["related"]},{"url":"https://github.com/mtrudel/bandit/commit/f2ca636eb6df385219957e8934e9fc6efa1630d1","tags":["patch"]}],"priority":{"score":12.3,"factors":[{"name":"EPSS percentile","points":7.88},{"name":"CVSS severity","points":4.41}]},"vendorSlug":"mtrudel","affectedVersions":[{"vendor":"mtrudel","product":"bandit","versions":[">= 0.1.0, < 1.11.0"]},{"vendor":"mtrudel","product":"bandit","versions":[">= 7bc8d97cd22697c299baa8012b7f419a7606a80c, < f2ca636eb6df385219957e8934e9fc6efa1630d1"]}],"capec":[{"id":"CAPEC-33","name":"HTTP Request Smuggling"}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"partial","timestamp":"2026-05-02T01:20:49.825555Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Hex","package":"bandit","vulnerableRanges":["<1.11.0"],"patched":["1.11.0"],"from":["GHSA-c67r-gc9j-2qf7"],"provenance":"source"}],"summary":{"text":"The Bandit HTTP server (mtrudel/bandit) mishandles requests containing duplicate Content-Length headers with differing values: its header lookup uses only the first value, so a request is parsed inconsistently with how an upstream proxy may read it. An unauthenticated remote attacker can exploit this when Bandit sits behind a proxy that uses the last Content-Length value and forwards the request unrejected, smuggling requests past edge controls such as WAF rules, path-based access controls, rate limiting, and audit logging.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:43:44Z"},"euvd":{"id":"EUVD-2026-26712","exploited":false,"provenance":"source"}}