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.
Github GHSA