CVE-2026-39806
HIGH 8.7CVSS 4.0HTTP/1 chunked decoder infinite loop on requests with trailer fields in bandit
Loop with Unreachable Exit Condition ('Infinite Loop') vulnerability in mtrudel bandit allows unauthenticated remote denial of service via worker process exhaustion.
Bandit.HTTP1.Socket.do_read_chunked_data!/5 in lib/bandit/http1/socket.ex terminates only when the last-chunk line 0\r\n is followed immediately by the empty trailer line \r\n. RFC 9112 §7.1.2 permits zero or more trailer fields between them. When trailers are present, none of the match clauses fit: the catch-all arm computes a negative to_read, calls read_available!/2, receives <<>> on timeout, and tail-recurses with unchanged state. The worker process is pinned for the lifetime of the TCP connection.
A handful of concurrent connections sending RFC-conformant chunked requests with trailer fields is sufficient to exhaust the Bandit worker pool and render the server unresponsive to all further traffic. No authentication, special headers, or large payload is required. Proxies such as NGINX and HAProxy legitimately forward trailer-bearing requests, so servers behind such proxies may be affected without any malicious client involvement.
This issue affects bandit: from 1.6.1 before 1.11.1.
- Published
- 13 May 2026
- Last modified
- 25 Nov 2026
- Assigned by
- 6b3ad84c-e1a6-4bf7-a703-f496b71e49db
- NVD status
- Modified
- Weakness
- CWE-835
- Also known as
- EEF-CVE-2026-39806GHSA-rf5q-vwxw-gmrf
- Sources
- NVDJSONCVE ListJSONOSV EEF-CVE-2026-39806JSONOSV GHSA-rf5q-vwxw-gmrfJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | 6b3ad84c-e1a6-4bf7-a703-f496b71e49db (Secondary) | CVSS 4.0 | HIGH 8.7 | 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X |
| CVE List | EEF | CVSS 4.0 | HIGH 8.7 | 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 |
| OSV | GitHub | 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 | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| OSV | GitHub | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| CVE List | CISA-ADP | SSVC | Exploitation: poc; Automatable: yes; Technical Impact: partial |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | mtrudel | banditcpe:2.3:a:mtrudel:bandit:*:*:*:*:*:*:*:* |
>= 1.6.1, < 1.11.1 | 1.11.1 |
| CVE List | https://repo.hex.pm | banditcpe:2.3:a:mtrudel:bandit:*:*:*:*:*:*:*:* |
>= 1.6.1, < 1.11.1 | 1.11.1 |
| CVE List | https://github.com | mtrudel/banditcpe:2.3:a:mtrudel:bandit:*:*:*:*:*:*:*:* |
>= e73e379ab59840e8561b5730878f16e29ab06217, < ae3520dfdbfab115c638f8c7f6f6b805db34e1ab | ae3520dfdbfab115c638f8c7f6f6b805db34e1ab |
| OSV | Hex | bandit | >= 1.6.1, < 1.11.1 | 1.11.1 |
| OSV | Hex | bandit | >= 1.6.0, < 1.11.1 | 1.11.1 |
References
- https://cna.erlef.org/cves/CVE-2026-39806.html · Third Party Advisory, related, WEB
- https://github.com/mtrudel/bandit/commit/ae3520dfdbfab115c638f8c7f6f6b805db34e1ab · Patch, FIX, WEB
- https://github.com/mtrudel/bandit/commit/e73e379ab59840e8561b5730878f16e29ab06217 · related, WEB
- https://github.com/mtrudel/bandit/security/advisories/GHSA-rf5q-vwxw-gmrf · Exploit, Vendor Advisory, vendor-advisory, related, ADVISORY, WEB
- https://osv.dev/vulnerability/EEF-CVE-2026-39806 · Third Party Advisory, related, WEB
- https://hex.pm/packages/bandit · PACKAGE
- https://nvd.nist.gov/vuln/detail/CVE-2026-39806 · ADVISORY
- https://github.com/mtrudel/bandit · PACKAGE
History
- 25 Nov 2026 20:32 UTC · CVE List: first stored (published 13 May 2026)
- 25 Nov 2026 20:15 UTC · OSV: first stored (published 13 May 2026)
- 25 Nov 2026 20:15 UTC · OSV: first stored (published 19 May 2026)
- 25 Nov 2026 20:10 UTC · NVD: first stored (published 13 May 2026)