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.
Published: 2026-07-14
Score: 8.2 High
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The vulnerability is an unbounded accumulation of HTTP/1 response headers and chunked trailer fields in the library’s header parsing logic. Each parsed header is stored in a list that persists across TCP segments until a terminating blank line is received, with no cap on number of headers or total size. This satisfies the definition of a resource exhaustion weakness (CWE-770) and can lead to the client process being killed by the operating system’s out‑of‑memory handler, thereby taking down the entire application that uses the library as an HTTP client. No other confidentiality or integrity compromise exists beyond service interruption.

Affected Systems

The issue affects the Elixir Mint HTTP client library (mint) for all releases from the initial public version 0.1.0 up to, but not including, 1.9.2. Hence any application built with or dependent on an unsupported Mint version is susceptible.

Risk and Exploitability

The CVSS score of 8.2 marks this as a high‑severity vulnerability. The EPSS score of less than 1% indicates that the probability of exploitation in the wild is low but not zero. Because the exploit requires only the ability to influence an HTTP request sent by the vulnerable client, an attacker can reach the client directly, via an attacker‑controlled redirect, through Server‑Side Request Forgery (SSRF), or by a man‑in‑the‑middle attack. The lack of a header cap means that the memory consumption grows without bound, eventually exhausting system RAM and causing a denial of service for the application. The vulnerability is not listed in CISA’s KEV catalog, but the high severity and available exploit path recommend immediate remediation.

Generated by OpenCVE AI on July 31, 2026 at 10:39 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Update the Elixir Mint dependency to version 1.9.2 or later by changing the mix.exs entry (e.g., `{:mint, ">= 1.9.2"}`) and running `mix deps.get` to fetch the fix.
  • Recompile the application with `mix compile` so the new library version is incorporated into the BEAM image.
  • Restart the application or BEAM node so the updated library code takes effect and the resource exhaustion bug is removed.

Generated by OpenCVE AI on July 31, 2026 at 10:39 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Tue, 14 Jul 2026 13:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Tue, 14 Jul 2026 09:15:00 +0000

Type Values Removed Values Added
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.
Title Unbounded HTTP/1 response-header and chunked-trailer accumulation in Mint causes memory-exhaustion DoS
First Time appeared Elixir-mint
Elixir-mint mint
Weaknesses CWE-770
CPEs cpe:2.3:a:elixir-mint:mint:*:*:*:*:*:*:*:*
Vendors & Products Elixir-mint
Elixir-mint mint
References
Metrics cvssV4_0

{'score': 8.2, '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'}


Subscriptions

Elixir-mint Mint
cve-icon MITRE

Status: PUBLISHED

Assigner: EEF

Published:

Updated: 2026-07-14T15:07:57.359Z

Reserved: 2026-06-29T18:54:08.633Z

Link: CVE-2026-58229

cve-icon Vulnrichment

Updated: 2026-07-14T12:26:30.228Z

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-07-31T10:45:04Z

Weaknesses
  • CWE-770

    Allocation of Resources Without Limits or Throttling