CVE-2026-59246: Zero-length HTTP/2 CONTINUATION frames bypass Mint's header-block byte-size cap and exhaust client memory
Allocation of resources without limits vulnerability in elixir-mint mint allows a remote HTTP/2 server to exhaust memory on the client host and cause a denial of service.
The Mint.HTTP2.handlecontinuation/3 function in lib/mint/http2.ex accumulates the header-block fragment carried by each HTTP/2 CONTINUATION frame into a growing conn.headersbeingprocessed nesting, one level deeper per frame, and only releases it when a frame with the ENDHEADERS flag arrives. The only guard on this accumulator is Mint.HTTP2.assertheaderblockwithinmaxsize/2, which sums the byte size of the fragments received so far. Because a CONTINUATION frame is permitted by the protocol to carry a zero-length payload, an unbounded chain of zero-length CONTINUATION frames adds no bytes to the running total, never trips the size cap, and never emits ENDHEADERS, yet each frame still nests the accumulator one level deeper.
A malicious HTTP/2 server (reachable directly, via an attacker-controlled redirect, via SSRF, or via a man-in-the-middle) can open a stream by sending a HEADERS frame without ENDHEADERS and then stream zero-length CONTINUATION frames indefinitely. Client memory grows one cons cell per frame received; sustained bandwidth from the peer drives the BEAM node running the Mint client to memory exhaustion and eventual out-of-memory termination.
This issue affects mint: from 0.1.0 before 1.9.2.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
elixir-mint mintto a version that resolves this vulnerability.Fixed in 1.9.2 - Operational
After upgrading mint (affected range: 0.1.0 before 1.9.2), monitor the BEAM node hosting the Mint client for memory exhaustion/out-of-memory restarts and remediate any incidents that occurred before the patch was applied.
Event History
Frequently Asked Questions
What is the severity of CVE-2026-59246?
CVE-2026-59246 has a medium severity rating of 6.3.
What is the impact of CVE-2026-59246?
CVE-2026-59246 allows a remote HTTP/2 server to exhaust memory on the client host, leading to a denial of service.
How do I fix CVE-2026-59246?
To fix CVE-2026-59246, update the elixir-mint library to the latest version that mitigates this vulnerability.
Who is affected by CVE-2026-59246?
Users of the elixir-mint library for HTTP/2 communications are affected by CVE-2026-59246.
What type of vulnerability is CVE-2026-59246?
CVE-2026-59246 is classified as an allocation of resources without limits vulnerability.