Bandit にHTTP/2の大量の小さなデータフレームで메モリを枯渇させられる脆弱性
Summary
認証なしの遠隔の攻撃者が、1バイトのDATAフレームを大量に送るリクエストでサーバーのメモリを使い尽くせる脆弱性です。影響を受けるのはHex版Banditの0.3.1以上1.14.1未満で、修正版の1.14.1で解消されます。リクエストボディを読む経路が影響を受けるため、早めに修正版へ更新することをおすすめします。
AI summary
Produced by SecPulse using an external AI model; it may contain mistakes. Check the original description and references below before acting on it.
認証なしの遠隔の攻撃者が、1バイトのDATAフレームを大量に送るリクエストでサーバーのメモリを使い尽くせる脆弱性です。影響を受けるのはHex版Banditの0.3.1以上1.14.1未満で、修正版の1.14.1で解消されます。リクエストボディを読む経路が影響を受けるため、早めに修正版へ更新することをおすすめします。
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| mtrudelbandit |
≥ c8dc1e97050cf359f61ed6cdd110f3cdaf1d6f5f, < 327bb02ff84171237e1aeff787930debd16155ee→ 327bb02ff84171237e1aeff787930debd16155ee |
327bb02ff84171237e1aeff787930debd16155ee |
| Hexbandit |
≥ 0.3.1, < 1.14.1→ 1.14.1 |
1.14.1 |
Fix status by distribution
Records published by each distribution for this CVE. Fixed versions differ by release; check each link.
- Ubuntu UBUNTU-CVE-2026-116078 bandit No fixed version in this record
Original description The description as published by the source.
Summary
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.
Details
1. Per-frame accumulation. Bandit.HTTP2.Stream.read_data/2 calls do_read_data/5 in lib/bandit/http2/stream.ex, which prepends each {:data, data, stream} payload to a list ([data | acc]) and reverses it when the read returns. Each 1-byte payload arrives as a separate message from the connection process, so the stream heap holds a cons cell and a heap binary per frame.
2. Byte-only limit. :length (default 8,000,000) is decremented by byte_size(data) and bounds body bytes, not the number of frames. A read ends at :length or at its read_timeout deadli…
Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
References
- advisory github.com
- advisory github.com
- advisory nvd.nist.gov
- package hex.pm
- package github.com
- patch github.com
- web cna.erlef.org
- web osv.dev
- web github.com
- web github.com
- web repo.hex.pm