CVE-2026-58229: CWE-770 Allocation of Resources Without Limits or Throttling in elixir-mint mint
Allocation of resources without limits vulnerability in elixir-mint mint allows a remote HTTP server to exhaust memory on the client host and cause a denial of service. The Mint.HTTP1.decode_headers/5 and Mint.HTTP1.decode_trailer_headers/4 functions in lib/mint/http1.ex accumulate every parsed response header and chunked-trailer field into a per-request list that persists across incoming TCP segments as request.headers_buffer, and only clear it when the terminating blank line is received. The section has no cap on the number of headers or on total bytes, and the underlying :erlang.decode_packet(:httph_bin, binary, []) parser is invoked with an empty option list so its per-line and per-packet size limits also default to unlimited. A malicious HTTP server (reachable directly, via an attacker-controlled redirect, via SSRF, or via a man-in-the-middle) can stream complete header lines (or, after a chunked body, complete trailer lines) indefinitely without ever emitting the terminating blank line. The connection state grows without bound until the BEAM node is killed by the operating system's out-of-memory handler, taking down the entire application that uses Mint as an HTTP client. This issue affects mint: from 0.1.0 before 1.9.2.
AI Analysis
Technical Summary
The vulnerability in elixir-mint mint arises from the Mint.HTTP1.decode_headers/5 and Mint.HTTP1.decode_trailer_headers/4 functions, which accumulate parsed response headers and chunked-trailer fields into a per-request list (request.headers_buffer) that persists across TCP segments. There is no limit on the number or total size of these headers, and the underlying Erlang parser is invoked without size limits. Consequently, a malicious HTTP server can stream headers or trailers indefinitely without a terminating blank line, causing unbounded memory consumption on the client side. This can exhaust system memory and crash the BEAM node, causing denial of service to the application using Mint.
Potential Impact
A remote attacker controlling an HTTP server or able to intercept traffic can cause the Mint client to consume unlimited memory by streaming headers or trailers without termination. This leads to exhaustion of memory resources on the client host, crashing the BEAM node and causing denial of service to the entire application relying on Mint for HTTP communication.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, avoid using untrusted HTTP servers or intermediaries that could exploit this vulnerability. Monitor for updates from the elixir-mint project regarding patches or official fixes.
CVE-2026-58229: CWE-770 Allocation of Resources Without Limits or Throttling in elixir-mint mint
Description
Allocation of resources without limits vulnerability in elixir-mint mint allows a remote HTTP server to exhaust memory on the client host and cause a denial of service. The Mint.HTTP1.decode_headers/5 and Mint.HTTP1.decode_trailer_headers/4 functions in lib/mint/http1.ex accumulate every parsed response header and chunked-trailer field into a per-request list that persists across incoming TCP segments as request.headers_buffer, and only clear it when the terminating blank line is received. The section has no cap on the number of headers or on total bytes, and the underlying :erlang.decode_packet(:httph_bin, binary, []) parser is invoked with an empty option list so its per-line and per-packet size limits also default to unlimited. A malicious HTTP server (reachable directly, via an attacker-controlled redirect, via SSRF, or via a man-in-the-middle) can stream complete header lines (or, after a chunked body, complete trailer lines) indefinitely without ever emitting the terminating blank line. The connection state grows without bound until the BEAM node is killed by the operating system's out-of-memory handler, taking down the entire application that uses Mint as an HTTP client. This issue affects mint: from 0.1.0 before 1.9.2.
CVSS v4.0
Score 8.2high
Affected software
cpe:2.3:a:elixir-mint:mint:*:*:*:*:*:*:*:*Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability in elixir-mint mint arises from the Mint.HTTP1.decode_headers/5 and Mint.HTTP1.decode_trailer_headers/4 functions, which accumulate parsed response headers and chunked-trailer fields into a per-request list (request.headers_buffer) that persists across TCP segments. There is no limit on the number or total size of these headers, and the underlying Erlang parser is invoked without size limits. Consequently, a malicious HTTP server can stream headers or trailers indefinitely without a terminating blank line, causing unbounded memory consumption on the client side. This can exhaust system memory and crash the BEAM node, causing denial of service to the application using Mint.
Potential Impact
A remote attacker controlling an HTTP server or able to intercept traffic can cause the Mint client to consume unlimited memory by streaming headers or trailers without termination. This leads to exhaustion of memory resources on the client host, crashing the BEAM node and causing denial of service to the entire application relying on Mint for HTTP communication.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, avoid using untrusted HTTP servers or intermediaries that could exploit this vulnerability. Monitor for updates from the elixir-mint project regarding patches or official fixes.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- EEF
- Date Reserved
- 2026-06-29T18:54:08.633Z
- Cvss Version
- 4.0
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a55feea68715ace432dfb84
Added to database: 07/14/2026, 09:18:34 UTC
Last enriched: 07/14/2026, 10:02:28 UTC
Last updated: 07/14/2026, 19:47:34 UTC
Views: 9
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.