Banditの HTTP/2 処理に脆弱性 接続の制限を回避されるおそれ
Summary
Bandit の HTTP/2 処理で、1回のTCP書き込みに複数のフレームを含めた場合に接続ごとの同時ストリーム数などの上限が回避されるおそれがある脆弱性です。影響を受けるのは Hex 版で 1.9.0 以上 1.14.0 未満のBanditで、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 処理で、1回のTCP書き込みに複数のフレームを含めた場合に接続ごとの同時ストリーム数などの上限が回避されるおそれがある脆弱性です。影響を受けるのは Hex 版で 1.9.0 以上 1.14.0 未満のBanditで、1.14.0 で修正されています。1.14.0 以上へ更新してください。
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| mtrudelbandit |
≥ 3ad49c80c268891e7cc412e69649115456638e59, < 220b9dfd27f9a21305be2afc75cbe585ddc24e7a→ 220b9dfd27f9a21305be2afc75cbe585ddc24e7a |
220b9dfd27f9a21305be2afc75cbe585ddc24e7a |
| Hexbandit |
≥ 1.9.0, < 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-111103 bandit No fixed version in this record
Original description The description as published by the source.
Summary
Improper Cleanup on Thrown Exception vulnerability in the HTTP/2 handler of mtrudel bandit allows an unauthenticated remote attacker to bypass per-connection resource limits via a single TCP write that carries several frames, one of which raises a stream error.
When a frame raises StreamError partway through a chunk, Bandit.HTTP2.Handler.handle_data/3 sends RST_STREAM and continues with the connection state from before the chunk, dropping the rest of it. Streams opened by earlier frames in the chunk keep running their Plug calls, but the stream counts, last_stream_id, the rapid-reset timestamps, the HPACK decoder state and the buffer roll back, so max_concurrent_streams, max_requests and the rapid-reset limiter never see those streams. A client that sends one HEADERS frame more than max_concurrent_streams in each write has the extra refused and the others forgotten: with a limit of 10, five such writes run 50 Plug calls at once.
This issue affects bandit: from 1.9.0 before 1.14.0.
Details
1. Function-level rescue. Bandit.HTTP2.Handler.handle_data/3 in lib/bandit/http2/handler.ex deserializes every frame in a TCP chunk inside an Enum.reduce_while/3 and wraps the whole function in a rescue. Inside that rescue, state is the original function argument, not the reduce_while accumulator.
2. Rollback on StreamError. When Bandit.HTTP2.Connection.handle_frame/3 raises StreamError partway through the chunk, `rescue_stream_error/…
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