CVE-2026-47077

Unbounded body accumulation in HTTP/3 response loop in hackney

Published May 25, 2026 CVSS 4.0 · 8.2 High EPSS < 1% KEV · Not listed
Description
Allocation of Resources Without Limits or Throttling vulnerability in benoitc hackney allows Flooding.

hackney_h3:await_response_loop/6 accumulates the HTTP/3 response body in memory without any size cap. The after Timeout clause is a per-message inactivity timer that resets on every received chunk, housekeeping message, or settings frame — it is not a wall-clock deadline. A malicious HTTP/3 server that emits one small chunk every Timeout - 1 ms with Fin = false and never sends a final frame keeps the loop alive indefinitely while the accumulation buffer grows linearly without bound, eventually exhausting the BEAM process heap and causing an out-of-memory condition.

This issue affects hackney: from 2.0.0-beta.1 before 4.0.1.

Analysis

AI-generated

Technical impact

The flaw originates in hackney's HTTP/3 response handling, where the awaited response loop accumulates the body in memory without any size cap. The loop implements a per‑message inactivity timer that resets on each received chunk, housekeeping message, or settings frame, rather than a wall‑clock deadline. A malicious HTTP/3 server can emit a tiny chunk every timeout‑1 ms with Fin = false, never sending a final frame, keeping the loop alive indefinitely while the accumulation buffer grows linearly without bound. Eventually the BEAM process heap is exhausted, causing an out‑of‑memory crash, terminating the client process and disrupting service availability.

Affected Systems

The issue is present in the hackney Erlang client library for HTTP/3, affecting all releases from 2.0.0-beta.1 before 4.0.1. Any application that imports hackney 2.0.0 through 4.0.0 is susceptible.

Risk and Exploitability

With a CVSS score of 8.2 the severity is high. The attack vector is remote; an attacker simply needs to host a malicious HTTP/3 server that sends a rapid stream of small chunks, keeping the client cycle alive. Because the loop depends on per‑message activity, the server can maintain control for as long as it wishes, eventually exhausting memory. An EPSS score of 0.00703 (0.703 %) indicates a very low but non‑zero exploitation probability, and the vulnerability is not listed in CISA's KEV catalog, indicating it has not been widely exploited yet, but the potential impact remains significant.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade hackney to version 4.0.1 or later to obtain the built‑in body‑size limit.
  • Ensure that all dependent modules and applications reference the updated library and restart services to load the patch.
  • In the interim, add application‑level checks that enforce a maximum response body size or monitor for unusually large memory consumption during HTTP/3 sessions to detect malicious activity.

Generated by OpenCVE AI on November 22, 2026 at 23:57 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-76v6-f83q-pxvh Hackney has an Allocation of Resources Without Limits or Throttling vulnerabilit
Github GHSA Github GHSA GHSA-jq4m-q6p2-8gwc Hackney: Per-chunk timeout with unbounded body accumulation enables slow-drip OOM
History
Type Values Removed Values Added
Description Allocation of Resources Without Limits or Throttling vulnerability in benoitc hackney allows Flooding. hackney_h3:await_response_loop/6 accumulates the HTTP/3 response body in memory without any size cap. The after Timeout clause is a per-message inactivity timer that resets on every received chunk, housekeeping message, or settings frame — it is not a wall-clock deadline. A malicious HTTP/3 server that emits one small chunk every Timeout - 1 ms with Fin = false and never sends a final frame keeps the loop alive indefinitely while the accumulation buffer grows linearly without bound, eventually exhausting the BEAM process heap and causing an out-of-memory condition. This issue affects hackney: from 2.0.0 before 4.0.1. Allocation of Resources Without Limits or Throttling vulnerability in benoitc hackney allows Flooding. hackney_h3:await_response_loop/6 accumulates the HTTP/3 response body in memory without any size cap. The after Timeout clause is a per-message inactivity timer that resets on every received chunk, housekeeping message, or settings frame — it is not a wall-clock deadline. A malicious HTTP/3 server that emits one small chunk every Timeout - 1 ms with Fin = false and never sends a final frame keeps the loop alive indefinitely while the accumulation buffer grows linearly without bound, eventually exhausting the BEAM process heap and causing an out-of-memory condition. This issue affects hackney: from 2.0.0-beta.1 before 4.0.1.
References
Type Values Removed Values Added
Metrics cvssV3_1

{'score': 7.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H'}

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 benoitc hackney allows Flooding. hackney_h3:await_response_loop/6 accumulates the HTTP/3 response body in memory without any size cap. The after Timeout clause is a per-message inactivity timer that resets on every received chunk, housekeeping message, or settings frame — it is not a wall-clock deadline. A malicious HTTP/3 server that emits one small chunk every Timeout - 1 ms with Fin = false and never sends a final frame keeps the loop alive indefinitely while the accumulation buffer grows linearly without bound, eventually exhausting the BEAM process heap and causing an out-of-memory condition. This issue affects hackney: from 2.0.0 before 4.0.1.
Title Unbounded body accumulation in HTTP/3 response loop in hackney
First Time appeared Benoitc
Benoitc hackney
Weaknesses CWE-400
CPEs cpe:2.3:a:benoitc:hackney:*:*:*:*:*:*:*:*
Vendors & Products Benoitc
Benoitc hackney
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'}

Weaknesses
  • CWE-400

    Uncontrolled Resource Consumption

Sources

Status
PUBLISHED
Assigner
EEF
Published
Updated
Nov 20, 2026, 8:22 AM
Reserved
May 18, 2026, 5:28 PM
Status
Modified
Published
May 25, 2026, 3:16 PM
Modified
Nov 20, 2026, 9:20 AM