CVE-2026-56810

mint buffers an entire chunked response chunk in memory in Mint.HTTP1.decode_body/5

Published Jul 6, 2026 CVSS 4.0 · 8.7 High EPSS < 1% KEV · Not listed
Description
Allocation of Resources Without Limits or Throttling vulnerability in elixir-mint mint (Mint.HTTP1 module) allows a denial of service via an oversized chunked transfer-encoded response.

This vulnerability is associated with program files lib/mint/http1.ex and program routines Mint.HTTP1.decode_body/5, Mint.HTTP1.add_body_to_buffer/2.

When Mint decodes a chunked HTTP response body, it accumulates each partial fragment of the current chunk in the connection's data_buffer (an unbounded iolist) via add_body_to_buffer/2 and does not emit the data to the caller until the full declared chunk length has been received. The chunk size is taken directly from the server and parsed with no upper bound, so a malicious or compromised server can announce one enormous chunk (for example a size line of 7FFFFFFF, about 2 GiB) and then send the body bytes slowly without ever completing the chunk. The client buffers every received byte while it waits for a completion that never arrives, and because no data responses are produced until the chunk finishes, a caller that otherwise streams large content-length bodies safely gains no protection. An unauthenticated remote server (reachable whenever a client follows redirects, fetches user-supplied URLs, or processes webhooks) can drive the client's memory arbitrarily high and trigger an out-of-memory condition.

This issue affects mint: from 0.5.0 before 1.9.1.

Analysis

AI-generated

Technical impact

The updated description reiterates that Mint’s HTTP1 client decodes chunked responses by appending each incoming byte to an unbounded iolist until the declared chunk length is reached. It notes that the chunk size is taken directly from the server without an upper bound; an attacker could therefore supply an arbitrarily large size (e.g., 2 GiB) and then transmit the data slowly, never completing the chunk. During that period the client continues to accumulate the bytes, causing the process to consume an unbounded amount of memory and ultimately trigger an out‑of‑memory failure. This represents an unbounded resource allocation flaw (CWE‑770). The consequence is a denial‑of‑service that can affect any application that uses Mint for making HTTP requests, including when following redirects, downloading user‑supplied URLs, or handling webhooks.

Affected Systems

The affected product is the Elixir library Mint, versions from 0.5.0 up through 1.9.0. Applications that import Mint to perform HTTP/1.1 requests, such as web clients, services that consume external APIs, or any process that processes external URLs, are potentially impacted if they use an affected Mint version in their dependency tree.

Risk and Exploitability

The CVSS score of 8.7 indicates high severity, and the EPSS score of < 1 % shows a low but non‑zero likelihood of exploitation. An unauthenticated remote server can trigger the flaw by sending an oversized chunk size and streaming the data slowly. Because no special permissions are required and the client is widely used in Elixir applications, the attack could originate from any entity that can force the client to fetch a URL. The flaw is not listed in the CISA KEV catalog, but the combination of high impact and the potential to affect many public services warrants proactive monitoring for suspicious traffic or memory exhaustion events.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade the Mint dependency to 1.9.1 or newer, which enforces a hard limit on accepted chunk sizes.
  • If an upgrade is not immediately possible, patch the application to validate chunk sizes before passing them to Mint, rejecting or capping sizes that exceed a safe threshold, or switch to another HTTP client that enforces buffer limits.
  • Enable runtime memory usage monitoring on the application servers and configure alerts for sudden memory spikes that may indicate exploitation of this flaw.
  • For services that process external URLs or user input, add request validation layers that reject potentially malicious URLs or enforce rate limits to reduce the window for an attacker.

Generated by OpenCVE AI on November 24, 2026 at 06:23 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Description Allocation of Resources Without Limits or Throttling vulnerability in elixir-mint mint (Mint.HTTP1 module) allows a denial of service via an oversized chunked transfer-encoded response. This vulnerability is associated with program files lib/mint/http1.ex and program routines 'Elixir.Mint.HTTP1':decode_body/5, 'Elixir.Mint.HTTP1':add_body_to_buffer/2. When Mint decodes a chunked HTTP response body, it accumulates each partial fragment of the current chunk in the connection's data_buffer (an unbounded iolist) via add_body_to_buffer/2 and does not emit the data to the caller until the full declared chunk length has been received. The chunk size is taken directly from the server and parsed with no upper bound, so a malicious or compromised server can announce one enormous chunk (for example a size line of 7FFFFFFF, about 2 GiB) and then send the body bytes slowly without ever completing the chunk. The client buffers every received byte while it waits for a completion that never arrives, and because no data responses are produced until the chunk finishes, a caller that otherwise streams large content-length bodies safely gains no protection. An unauthenticated remote server (reachable whenever a client follows redirects, fetches user-supplied URLs, or processes webhooks) can drive the client's memory arbitrarily high and trigger an out-of-memory condition. This issue affects mint: from 0.5.0 before 1.9.1. Allocation of Resources Without Limits or Throttling vulnerability in elixir-mint mint (Mint.HTTP1 module) allows a denial of service via an oversized chunked transfer-encoded response. This vulnerability is associated with program files lib/mint/http1.ex and program routines Mint.HTTP1.decode_body/5, Mint.HTTP1.add_body_to_buffer/2. When Mint decodes a chunked HTTP response body, it accumulates each partial fragment of the current chunk in the connection's data_buffer (an unbounded iolist) via add_body_to_buffer/2 and does not emit the data to the caller until the full declared chunk length has been received. The chunk size is taken directly from the server and parsed with no upper bound, so a malicious or compromised server can announce one enormous chunk (for example a size line of 7FFFFFFF, about 2 GiB) and then send the body bytes slowly without ever completing the chunk. The client buffers every received byte while it waits for a completion that never arrives, and because no data responses are produced until the chunk finishes, a caller that otherwise streams large content-length bodies safely gains no protection. An unauthenticated remote server (reachable whenever a client follows redirects, fetches user-supplied URLs, or processes webhooks) can drive the client's memory arbitrarily high and trigger an out-of-memory condition. This issue affects mint: from 0.5.0 before 1.9.1.
References
Type Values Removed Values Added
Metrics ssvc

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

Type Values Removed Values Added
Description Allocation of Resources Without Limits or Throttling vulnerability in elixir-mint mint (Mint.HTTP1 module) allows a denial of service via an oversized chunked transfer-encoded response. This vulnerability is associated with program files lib/mint/http1.ex and program routines 'Elixir.Mint.HTTP1':decode_body/5, 'Elixir.Mint.HTTP1':add_body_to_buffer/2. When Mint decodes a chunked HTTP response body, it accumulates each partial fragment of the current chunk in the connection's data_buffer (an unbounded iolist) via add_body_to_buffer/2 and does not emit the data to the caller until the full declared chunk length has been received. The chunk size is taken directly from the server and parsed with no upper bound, so a malicious or compromised server can announce one enormous chunk (for example a size line of 7FFFFFFF, about 2 GiB) and then send the body bytes slowly without ever completing the chunk. The client buffers every received byte while it waits for a completion that never arrives, and because no data responses are produced until the chunk finishes, a caller that otherwise streams large content-length bodies safely gains no protection. An unauthenticated remote server (reachable whenever a client follows redirects, fetches user-supplied URLs, or processes webhooks) can drive the client's memory arbitrarily high and trigger an out-of-memory condition. This issue affects mint: from 0.5.0 before 1.9.1.
Title mint buffers an entire chunked response chunk in memory in Mint.HTTP1.decode_body/5
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.7, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N'}

Weaknesses
  • CWE-770

    Allocation of Resources Without Limits or Throttling

Sources

Status
PUBLISHED
Assigner
EEF
Published
Updated
Nov 24, 2026, 4:55 AM
Reserved
Jun 23, 2026, 12:29 PM
Status
Deferred
Published
Jul 6, 2026, 11:16 AM
Modified
Nov 24, 2026, 5:18 AM