CVE-2026-47077
JSON

8.2high

Unbounded body accumulation in HTTP/3 response loop in hackney

Severity
8.2high CVSS:4.0 by EEF
Exploit likelihood
0.75% (higher than 56% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
EEF
Also known as
GHSA-jq4m-q6p2-8gwcEEF-CVE-2026-47077

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.

Affected

Product or packageVersionsReported by
hackneyfrom 2.0.0-beta.1 before 4.0.1CVE List
benoitc/hackneyfrom 0334af206d5099fdf510ed9eda18e34396f065ad before 3d25f9fea26c90609de9d64366fedfe5065413bcCVE List
hackney (Hex)from 2.0.0 before 4.0.1, from 2.0.0-beta.1 before 4.0.1GitHub Advisory Database, Erlang Ecosystem Foundation
https://github.com/benoitc/hackneyfrom 0334af206d5099fdf510ed9eda18e34396f065ad before 3d25f9fea26c90609de9d64366fedfe5065413bcErlang Ecosystem Foundation
benoitc hackneyfrom 2.0.0 before 4.0.1NVD

All scores

EEF8.2high CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
GitHubhigh CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
Erlang Ecosystem FoundationNot scored CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
NVD7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Classification

CWE-295CWE-400

SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial.

What each source says

CVE List

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.

GitHub Advisory Database
Summary

hackney_h3:await_response_loop/6 in src/hackney_h3.erl accumulates the HTTP/3 response body in memory without any size cap. The after Timeout clause is a per-message inactivity timer, not a wall-clock deadline: every received stream_data chunk, housekeeping select message, or settings frame resets it. A malicious HTTP/3 server that drips one small chunk every Timeout - 1 ms with Fin = false and never terminates the stream keeps the loop alive indefinitely while the accumulation buffer grows without bound, eventually exhausting the BEAM process heap.

Details

In src/hackney_h3.erl, await_response_loop/6 (line 430) builds the body with:

NewBody = <<AccBody/binary, Data/binary>>

There is no max_body check and no monotonic deadline. The after Timeout clause at line 463 is restarted on each loop iteration. A server that ensures at least one message arrives within Timeout ms indefinitely (one small chunk per interval is sufficient) prevents the timeout from firing while AccBody grows linearly. The same module's wait_connected/3 (lines 388-389) shows the correct pattern: track an absolute start time and pass a shrinking Remaining budget into each receive. This loop does not.

Configurations

Only the HTTP/3 transport is affected. Applications using the default TCP/TLS hackney transport are not vulnerable. The vulnerability requires using hackney_h3 directly or passing {transport, h3} to hackney:request/5.

PoC
  1. Stand up an HTTP/3 server that responds with 200 OK headers (Fin = false), then emits a small stream_data chunk every Timeout - margin ms with Fin = false indefinitely.
  2. Issue hackney:request(get, Url, [], <<>>, [{transport, h3}]) against it.
  3. Watch the client process heap grow monotonically. The configured timeout never fires; the process is eventually killed by max_heap_size or the OS OOM killer.
Impact

Remote denial of service via unbounded memory consumption. Affects hackney 2.0.0 through 4.0.0 when using the HTTP/3 transport against an attacker-controlled or attacker-influenced server. Each affected request consumes unbounded memory until the BEAM is killed. CVSS v4.0: 8.2 (HIGH).

Resources

Erlang Ecosystem Foundation

Summary

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.

Configurations

The application must use the HTTP/3 transport by calling hackney_h3 directly or by passing {transport, h3} to hackney:request/5. The default hackney transport (TCP/TLS) is not affected.

NVD (es)

Vulnerabilidad de asignación de recursos sin límites ni limitación en benoitc hackney permite inundación. hackney_h3:await_response_loop/6 acumula el cuerpo de la respuesta HTTP/3 en memoria sin ningún límite de tamaño. La cláusula 'after Timeout' es un temporizador de inactividad por mensaje que se reinicia con cada fragmento recibido, mensaje de mantenimiento o trama de configuración - no es una fecha límite de reloj de pared. Un servidor HTTP/3 malicioso que emite un pequeño fragmento cada Timeout - 1 ms con Fin = false y nunca envía una trama final mantiene el bucle vivo indefinidamente mientras el búfer de acumulación crece linealmente sin límite, agotando eventualmente el heap del proceso BEAM y causando una condición de falta de memoria. Este problema afecta a hackney: desde 2.0.0 antes de 4.0.1.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-47077 changed 2026-11-20CVE Terms of Use
GitHub Advisory DatabaseGHSA-jq4m-q6p2-8gwc changed 2026-06-30CC-BY-4.0
Erlang Ecosystem FoundationEEF-CVE-2026-47077 changed 2026-11-25CC-BY-4.0
NVDCVE-2026-47077 changed 2026-11-20Public domain