ZeroHour

CVE-2026-82728

large

Unbounded Buffer Growth DoS in Elixir Mint HTTP/1 Client

CVSS 4.0
8.2 high
EPSS
<1%p40
Published
()
Modified
AI analysis

Mint, the Elixir HTTP client library, contains an allocation-without-limits flaw in its HTTP/1 response parser that lets a remote HTTP server exhaust memory on the client host and cause a denial of service. When the parser is holding an incomplete status line (decode_status_line/4) or an unterminated chunk-extension line (decode_body/5), it accumulates all unconsumed server data in conn.buffer with no size cap — the :max_header_list_size budget is wired only into header and trailer parsing — and that buffer is re-prepended to every subsequent socket message while the parser waits for a CRLF the server never has to send. Any malicious server, or an ordinary server reached via an attacker-controlled redirect or a fetched URL, can therefore stream bytes indefinitely until the operating system's OOM handler kills the BEAM node; the chunk-extension path is reached only after a valid status line and a complete, valid header section, so intermediaries inspecting only headers see an ordinary 200 response. Any application using mint 0.1.0 through any version before 1.10.0 to issue outbound HTTP/1 requests — especially those fetching user-supplied URLs or following redirects — is affected. No public proof-of-concept, in-the-wild exploitation, or CISA KEV listing is currently known; EPSS estimates a 0.5% chance of exploitation within 30 days.

What to do: Upgrade mint to 1.10.0 or later. Until patched, restrict mint-based outbound HTTP/1 requests to trusted servers, limit or validate redirects to untrusted hosts, and consider BEAM-level memory limits or aggressive connection timeouts to blunt memory-exhaustion attacks. Audit code paths that fetch user-supplied URLs, since those are the easiest trigger for an attacker.

Affected
elixir-mint mint>= 0.1.0, < 1.10.0 (fixed in 1.10.0)
Estimated exposure
large≈ tens of thousands of application deployments (10k–100k systems) — Mint is a foundational low-level HTTP client in the Elixir ecosystem on which higher-level clients (e.g., Finch) are built, so a large share of production Elixir services making outbound HTTP requests are exposed; given the comparatively…

Order-of-magnitude estimate by the model from install counts, market share and public scan data it knows; verify before quoting.

Description

Allocation of Resources Without Limits or Throttling vulnerability in elixir-mint mint allows a remote HTTP server to exhaust memory on the client host and cause a denial of service. Two HTTP/1 response-parser states accumulate server data without any cap. In lib/mint/http1.ex, decode_status_line/4 stores the unconsumed data in conn.buffer when the status line is incomplete, and decode_body/5 does the same for an unterminated chunk-extension line. Both wait for a CRLF the server never has to send, and conn.buffer is prepended to every subsequent socket message. The :max_header_list_size budget is wired only into decode_headers/5 and decode_trailer_headers/4, so neither of these states is covered by it. A malicious server, or one reached through an attacker-controlled redirect or a fetched URL, streams bytes indefinitely until the BEAM node is killed by the operating system out-of-memory handler. The chunk-extension variant is reached after a valid status line and a complete, valid header section, so an intermediary inspecting only headers sees an ordinary 200 response. This issue affects mint: from 0.1.0 before 1.10.0.

Weakness
CWE-770
Vector
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X

In the news

No ingested article mentions this CVE yet.