Technical impact
The vulnerability, described as a loop with unreachable exit condition, occurs in the Alt‑Svc response header parser of erlang's hackney client. The bug is identified as CWE‑835, a failure to guarantee progress in an unbounded loop. When parse_token/2 processes a non‑token, non‑whitespace, non‑comma byte, it returns the data unchanged, and skip_comma/1 also returns the buffer unchanged. This causes parse_entries/2 to recurse with identical input, creating an infinite tail‑recursive loop that pins the scheduler at 100 % CPU and results in the calling process never returning. A single-byte "Alt‑Svc: !" header, fully controlled by a malicious HTTP origin, is sufficient to trigger the hang, leading to excessive allocation and denial of service.
Affected Systems
The issue affects hackney releases from 2.0.0‑beta.1 up to, but not including, 4.0.1. Any application that uses one of these versions to parse HTTP responses from arbitrary origins is vulnerable.
Risk and Exploitability
The CVSS score of 8.7 indicates high severity. The EPSS score is 0.00753, which corresponds to an exploitation probability of less than one percent, suggesting a low yet non‑zero likelihood. The flaw is not listed in the CISA KEV catalog. The attack can be carried out remotely by an attacker who controls the origin server, sending a single byte such as "Alt‑Svc: !" to the client. Because the condition is trivially satisfied, the practical risk is significant. The consequence is a frozen process and denial of service to the application using the client.
Github GHSA