Banditに远隔からCPUを消費させられる脆弱性 HTTP/2の処理に影響
Summary
Bandit(HTTP/2実装)に、認証なしの遠隔攻撃者がサーバーのCPUを使い果たさせられる脆弱性が見つかっています。影響を受けるのはHexパッケージの0.3.4から1.14.0より前の版です。修正版の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.
Bandit(HTTP/2実装)に、認証なしの遠隔攻撃者がサーバーのCPUを使い果たさせられる脆弱性が見つかっています。影響を受けるのはHexパッケージの0.3.4から1.14.0より前の版です。修正版の1.14.0以降に更新してください。
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| mtrudelbandit |
≥ 6feadb31189d18b7dcda6c663112cd3bbaf63a46, < 220b9dfd27f9a21305be2afc75cbe585ddc24e7a→ 220b9dfd27f9a21305be2afc75cbe585ddc24e7a |
220b9dfd27f9a21305be2afc75cbe585ddc24e7a |
| Hexbandit |
≥ 0.3.4, < 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-108529 bandit No fixed version in this record
Original description The description as published by the source.
Summary
Inefficient Algorithmic Complexity vulnerability in the HTTP/2 implementation of mtrudel bandit allows an unauthenticated remote attacker to exhaust server CPU via small SETTINGS or connection-level WINDOW_UPDATE frames. The attacker opens thousands of streams whose responses block on the connection send window, then sends cheap frames that each make the server walk the whole queue of blocked sends. In the reporter's run, with 3,000 blocked streams a single 9-byte SETTINGS frame took 133 ms to process.
do_pending_sends/2 in lib/bandit/http2/connection.ex retries every queued send and, before each retry, removes that entry from the queue with List.delete/2, so one frame costs O(n²) list operations for n blocked streams. max_concurrent_streams defaults to :infinity, so the attacker chooses n.
This issue affects bandit: from 0.3.4 before 1.14.0.
Details
1. Blocked sends
A response that outruns the connection send window is queued in pending_sends. With max_concurrent_streams defaulting to :infinity and no connection-level WINDOW_UPDATE from the client, every one of n streams ends up queued.
2. Trigger (lib/bandit/http2/connection.ex)
Every non-ACK SETTINGS frame and every WINDOW_UPDATE on stream 0 calls do_pending_sends/2. SETTINGS handling also sends deliver_send_window_update to every stream even when the window delta is 0, so unread messages pile up in the mailboxes of blocked streams.
3. Quadratic drain
`do_pendin…
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