Mint HTTP/2 Client Vulnerable to Unbounded CONTINUATION Frame Accumulation (CVE-2026-49754)
A malicious or compromised HTTP/2 server can exploit CVE-2026-49754 in the Elixir Mint HTTP/2 client by sending an endless chain of CONTINUATION frames without an END_HEADERS flag, leading to unbounded memory accumulation, process exhaustion, and remote unauthenticated denial-of-service.
The Elixir Mint HTTP/2 client is vulnerable to a denial-of-service attack (CVE-2026-49754) due to an unbounded accumulation of CONTINUATION header-block fragments. This vulnerability, disclosed by GHSA, allows a malicious or compromised HTTP/2 server to exhaust the client's memory. By streaming an endless sequence of CONTINUATION frames following an initial HEADERS frame that lacks the END_HEADERS flag, an attacker can drive the client's process memory to arbitrary size. This flaw affects Mint versions prior to 1.9.0 and requires no specific client-side configuration, making the default Mint client susceptible. A single connection to an attacker-controlled HTTP/2 endpoint is sufficient to trigger memory exhaustion and ultimately crash the BEAM process, resulting in a remote, unauthenticated denial-of-service.
Attack Chain
- A victim application using the Elixir Mint HTTP/2 client establishes an HTTP/2 connection to a server.
- The client sends an HTTP/2
HEADERSframe as part of a request to the server. - An attacker-controlled or compromised HTTP/2 server receives the client's request.
- The malicious server responds to the client's request by sending a
HEADERSframe on stream 1, deliberately settingflags = 0(omittingEND_HEADERSandEND_STREAM) and including an empty header-block fragment. - The malicious server then continuously streams
CONTINUATIONframes on stream 1, each withflags = 0and a payload up to the peer-advertisedSETTINGS_MAX_FRAME_SIZE, never settingEND_HEADERS. - The Mint client's HTTP/2 receive path, specifically the
'Elixir.Mint.HTTP2':handle_continuation/3function, continuously appends theseCONTINUATIONfragments to theconn.headers_being_processedbuffer. - Due to the absence of per-stream size caps or
CONTINUATIONframe-count caps, the client's process memory grows linearly and uncontrollably with the incoming flood ofCONTINUATIONframes. - The unbounded memory growth eventually leads to memory exhaustion and an Out-Of-Memory (OOM) error, causing the entire Elixir BEAM process running the Mint client to crash, resulting in a denial-of-service.
Impact
The successful exploitation of CVE-2026-49754 results in a remote, unauthenticated denial-of-service against any application utilizing the Elixir Mint HTTP/2 client to connect to an untrusted or attacker-influenced server. A single connection is sufficient for an attacker to drive the client's memory to an arbitrary size, leading to the crash of the underlying BEAM process. This can incapacitate critical services or applications relying on Mint for HTTP/2 communication, causing significant operational disruption and data unavailability. The default Mint configuration is vulnerable, requiring no specific client-side opt-in for exploitation. The vulnerability has been scored CVSS v4.0 8.2 (HIGH).
Recommendation
- Upgrade the Elixir Mint library to version 1.9.0 or later to patch CVE-2026-49754.
- If immediate patching is not possible, restrict Mint to HTTP/1 for connections to untrusted servers by passing
protocols: [:http1]to'Elixir.Mint.HTTP':connect/4to avoid the vulnerable HTTP/2 receive path, as outlined in the workarounds.