Bandit
HTTP/2 request bodies made of 1-byte DATA frames amplify memory use in Bandit
Allocation of Resources Without Limits or Throttling vulnerability in the HTTP/2 request body reader of mtrudel bandit allows an unauthenticated remote attacker to exhaust server memory via a request body sent as many 1-byte DATA frames. do_read_data/5 in lib/bandit/http2/stream.ex keeps every DATA frame payload as its own list element until the read returns. The :length option of read_body/2 counts body bytes, not frames, so a body of 1-byte frames costs a list cell and a binary term per byte. Interleaving the frames across up to 500 concurrent streams per connection keeps each stream consuming its frames as they arrive; in the reporter's test, 100 streams held 25 to 40 MiB of stream process memory for 5 MB sent. Only routes whose Plug reads the request body are affected, which includes any route behind Plug.Parsers. This issue affects bandit: from 0.3.1 before 1.14.1.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 0.3.1, < 1.14.1
Fixed in 1.14.1
- >= c8dc1e97050cf359f61ed6cdd110f3cdaf1d6f5f, < 327bb02ff84171237e1aeff787930debd16155ee
Fixed in 327bb02ff84171237e1aeff787930debd16155ee
Mitigation
Upgrade bandit to 1.14.1 or later.
Upgrade bandit to 327bb02ff84171237e1aeff787930debd16155ee or later.
Workaround
From 0.7.0, disable HTTP/2 with http_2_options: [enabled: false], so that the vulnerable body reader never runs.
References
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.1 informational
Informational 1
| Repository | Created | Found by us | Stars | Assessment |
|---|---|---|---|---|
| DarynOngera/jubilant-octo-potato | 4 Nov 2026 +6.9 d | 14 Nov 2026 | 0 | Informational · list |
Only PoCs count toward the first-PoC date and the characteristics below. Do not run PoC code from unknown sources.