Bandit に認証なしで サーバーのメモリを枯渇させられる脆弱性
Summary
Bandit の HTTP/2 実装に、認証なしの遠隔からサーバーのメモリを使い尽くされる脆弱性があります。影響を受けるのは Hex 版の 0.3.1 から 1.14.0 未満で、修正版は 1.14.0 です。Elixir で 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.
Bandit の HTTP/2 実装に、認証なしの遠隔からサーバーのメモリを使い尽くされる脆弱性があります。影響を受けるのは Hex 版の 0.3.1 から 1.14.0 未満で、修正版は 1.14.0 です。Elixir で Bandit を使っている場合は、1.14.0 以降に更新してください。
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| Hexbandit |
≥ 0.3.1, < 1.14.0→ 1.14.0 |
1.14.0 |
| mtrudelbandit |
≥ c8dc1e97050cf359f61ed6cdd110f3cdaf1d6f5f, < 220b9dfd27f9a21305be2afc75cbe585ddc24e7a→ 220b9dfd27f9a21305be2afc75cbe585ddc24e7a |
220b9dfd27f9a21305be2afc75cbe585ddc24e7a |
Fix status by distribution
Records published by each distribution for this CVE. Fixed versions differ by release; check each link.
- Ubuntu UBUNTU-CVE-2026-108525 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 implementation of mtrudel bandit allows an unauthenticated remote attacker to exhaust server memory via DATA frames sent past the advertised receive window. The attacker requests a response larger than the 65,535-byte initial window and withholds WINDOW_UPDATE, so the stream process blocks while sending and stops reading, then floods small DATA frames on that stream. Every frame is queued in the stream's mailbox until the BEAM node runs out of memory.
Bandit.HTTP2.Connection.handle_frame/3 in lib/bandit/http2/connection.ex forwards each DATA frame to the stream process without consulting the receive window, and Bandit.HTTP2.FlowControl.compute_recv_window/2 replenishes the window as data arrives rather than as it is consumed, and never answers a violation with FLOW_CONTROL_ERROR.
This issue affects bandit: from 0.3.1 before 1.14.0.
Details
1. Connection-level window (lib/bandit/http2/connection.ex, lib/bandit/http2/flow_control.ex)
The handle_frame/3 clause for DATA frames sends the payload to the stream process before any window is checked. It then calls compute_recv_window/2, which subtracts the frame size and, once the window drops below 2^30, advertises a WINDOW_UPDATE back up to 2^31-1. A negative window is accepted, so a peer that overruns the window is never refused, and the window refills when data arrives rather than when it is consumed.
**2.…
Source: OSV.dev (Open Source Vulnerabilities) NVD GitHub Advisory OSV
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 github.com
- web osv.dev
- web github.com
- web repo.hex.pm