Banditに脆弱性、小さなHTTP/2リクエストでサーバーのメモリを使い果たされるおそれ
Summary
Elixir製のHTTPサーバーBanditのHTTP/2処理に脆弱性があり、認証なしの遠隔の攻撃者が小さなヘッダーを送るだけでサーバーのメモリを使い尽くせます。影響を受けるのはバージョン0.3.3から1.14.0より前のBanditで、1.14.0で修正されています。Banditを使っている場合は、1.14.0以降へ更新してください。
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.
Elixir製のHTTPサーバーBanditのHTTP/2処理に脆弱性があり、認証なしの遠隔の攻撃者が小さなヘッダーを送るだけでサーバーのメモリを使い尽くせます。影響を受けるのはバージョン0.3.3から1.14.0より前のBanditで、1.14.0で修正されています。Banditを使っている場合は、1.14.0以降へ更新してください。
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| mtrudelbandit |
≥ 44bf969cd59851622fb6ee4d16227fbc39a77fb4, < 220b9dfd27f9a21305be2afc75cbe585ddc24e7a→ 220b9dfd27f9a21305be2afc75cbe585ddc24e7a |
220b9dfd27f9a21305be2afc75cbe585ddc24e7a |
| Hexbandit |
≥ 0.3.3, < 1.14.0→ 1.14.0 |
1.14.0 |
Fix status by distribution
Records published by each distribution for this CVE. Fixed versions differ by release; check each link.
- Ubuntu UBUNTU-CVE-2026-109584 bandit No fixed version in this record
Original description The description as published by the source.
Summary
Improper Handling of Highly Compressed Data (Data Amplification) vulnerability in the HTTP/2 implementation of mtrudel bandit allows an unauthenticated remote attacker to exhaust server memory via a small HPACK-compressed HEADERS block. The block stores one large cookie value in the HPACK dynamic table and then references it tens of thousands of times with 1-byte indexed fields. In the reporter's run, a 49 KB block made a server with default settings allocate a 183 MB cookie binary before any application code ran, and every concurrent stream can repeat the cost.
Bandit.HTTP2.Connection caps only the compressed block (max_header_block_size), and its check of the decoded list against max_header_list_size never fires because that setting defaults to :infinity. combine_cookie_crumbs/1 in lib/bandit/http2/stream.ex then joins every crumb into one binary.
This issue affects bandit: from 0.3.3 before 1.14.0.
Details
1. Compression
The attacker's header block, split across HEADERS and CONTINUATION frames, stays under the 50,000-byte max_header_block_size. It inserts one 4,058-byte cookie into the 4,096-byte dynamic table, the largest value that fits, then references it about 45,000 times with 1-byte indexed representations. HPAX.decode returns a list whose entries all point at the same binary, so decoding itself stays cheap.
2. Missing decoded limit (lib/bandit/http2/connection.ex, lib/bandit/http2/settings.ex)
After decoding, the…
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