HTTP/2 inbound flow control is not enforced, letting a client queue unbounded DATA in stream processes in Bandit
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 1%. Fixed in 1.14.0 and 220b9dfd27f9a21305be2afc75cbe585ddc24e7a.
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.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| mtrudel | >=0.3.1 <1.14.0, >=c8dc1e97050cf359f61ed6cdd110f3cdaf1d6f5f <220b9dfd27f9a21305be2afc75cbe585ddc24e7a | 1.14.0, 220b9dfd27f9a21305be2afc75cbe585ddc24e7a |
Timeline
Every event on this vulnerability
Embed
A live severity badge for an advisory, README or ticket