Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconLure hackney client to attacker origin
-
DeliveryReturn HTTP response with 'Alt-Svc: !'
-
Exploitparse_and_cache/3 invokes Alt-Svc parser
-
Installparse_entries/2 tail-recurses on unchanged buffer
-
C2Erlang scheduler pinned at 100% CPU
-
ExecuteRepeat across connections to exhaust schedulers
-
ImpactApplication/node denial of service
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Loop termination conditions
MITRE ATT&CK
1 technique across 1 tactic: Impact The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | The victim application must use hackney 2.0.0-beta.1 through 4.0.0 to make an outbound HTTP(S) request to a host the attacker controls or can influence (direct fetch, redirect target, webhook callback, SSRF-reachable URL, or compromised upstream API), and the attacker's origin must return a response containing an Alt-Svc header whose first non-whitespace byte is a non-token, non-comma character such as '!', '@', '=', ';', or '.'. No authentication, user interaction, special hackney configuration, or non-default deployment is required - Alt-Svc parsing runs unconditionally in parse_and_cache/3 on every HTTP response. The principal limiter is reachability: if the application only connects to a fixed set of trusted, well-behaved origins, real-world exploitability collapses; conversely, any URL-fetching feature exposed to user input substantially increases exposure. |
| Impact | Signals are mixed but lean toward 'patch promptly, not panic'. CVSS 4.0 of 8.7 is driven entirely by VA:H with AV:N/AC:L/AT:N/PR:N/UI:N - a remote, unauthenticated, low-complexity availability hit with no confidentiality or integrity impact. SSVC corroborates: POC exploitation, automatable, partial technical impact. However EPSS is only 0.04% (13th percentile) and the CVE is not on CISA KEV, indicating no observed mass exploitation. The realistic risk is asymmetric: any client using hackney to fetch from an attacker-controlled or attacker-influenced origin (including redirects, webhooks, SSRF-reachable URLs, or compromised upstream APIs) can have one scheduler stalled per malicious response, and a handful of concurrent requests can take down an Erlang node. No data conflicts noted; the CVSS vector and description are mutually consistent (network-reachable origin response is the attack surface). |
| Exploit ScenarioDerived | An attacker controls or compromises any HTTP origin that a hackney-based client connects to - for example, a webhook target, an OAuth callback endpoint, an RSS feed URL, or a server reachable via an SSRF primitive. On any HTTP response, the server returns 'Alt-Svc: !' (or any single non-token byte); hackney's connection process enters a tight tail-recursive loop and pins one Erlang scheduler at 100% CPU indefinitely. Repeating the trick across multiple connections exhausts schedulers and degrades or kills the BEAM node; SSVC notes a public POC exists but no weaponization has been observed in the wild. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jun 08, 2026
Denial-of-service in benoitc's hackney Erlang HTTP client (versions 2.0.0-beta.1 through 4.0.0) allows any HTTP origin server to pin a client process at 100% CPU by returning a malformed Alt-Svc response header. The flaw is a CWE-835 infinite loop in the Alt-Svc parser, triggerable by a single byte such as '!' in the header value. No public exploit identified at time of analysis, EPSS is low (0.04%), but SSVC rates exploitation as POC and the attack is automatable; a vendor patch is available in 4.0.1.
RemediationAI
Vendor-released patch: upgrade hackney to 4.0.1 or later, which adds the seek_next_entry/1 forward-progress guard in src/hackney_altsvc.erl (commit https://github.com/benoitc/hackney/commit/e548aba1f97ffa3f4750da7b772998fb78c01894); see the advisory at https://github.com/benoitc/hackney/security/advisories/GHSA-6cp8-v795-jr2j. For Elixir/Erlang projects, bump the direct or transitive hackney dependency in mix.exs / rebar.config and rebuild. If you cannot upgrade immediately, compensating controls are limited because Alt-Svc is sent by the server: restrict hackney to a known allowlist of trusted origins and disallow user-controlled URLs (mitigates SSRF-style abuse but breaks general-purpose client use), terminate outbound HTTP traffic through a forward proxy that strips the Alt-Svc response header (loses any legitimate HTTP/3 upgrade hints), or wrap hackney calls in a supervised, time-bounded task so a stalled scheduler can be killed (still wastes CPU until the timer fires and does not prevent repeated triggering).
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
hackney is a widely embedded Erlang HTTP client library (e.g., used transitively by HTTPoison and many Elixir/Erlang services). The vulnerable code is src/hackney_altsvc.erl, which parses RFC 7838 Alt-Svc response headers. parse_token/2 returns the buffer unchanged when it encounters a non-token, non-whitespace, non-comma byte, and skip_comma/1 likewise returns the buffer unchanged when the leading byte is not a comma. parse_entries/2 then tail-recurses on identical input, never making forward progress - a textbook CWE-835 'Loop with Unreachable Exit Condition'. Because parse_and_cache/3 runs synchronously inside the connection process on every HTTP response, the offending Erlang scheduler thread is starved indefinitely. The fix (commit e548aba) introduces seek_next_entry/1 to advance past a malformed lead byte until the next comma, guaranteeing progress.
Know when Hackney gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
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
Primary rating from Vendor (EEF) · only source for this CVE.
CVSS VectorVendor: EEF
Lifecycle Timeline
2DescriptionCVE.org
Loop with Unreachable Exit Condition ('Infinite Loop') vulnerability in benoitc hackney allows Excessive Allocation. The Alt-Svc response header parser in src/hackney_altsvc.erl does not guarantee forward progress. When parse_token/2 receives a non-token, non-whitespace, non-comma byte (e.g. !, @, =, ;), it returns the input unchanged. skip_comma/1 also returns the buffer unchanged when the first byte is not a comma. parse_entries/2 then recurses with identical data, creating a tight infinite tail-recursive loop that pins a scheduler at 100% CPU. The calling process never returns.
The entry point parse_and_cache/3 is called synchronously in the connection process on every HTTP response. A single-byte Alt-Svc: ! response header is sufficient to trigger the hang; the header is fully controlled by any HTTP origin the client connects to.
This issue affects hackney: from 2.0.0-beta.1 before 4.0.1.
Executive ViewAI
Benoitc's hackney Erlang HTTP client (versions 2.0.0-beta.1 through 4.0.0) contains a denial-of-service vulnerability triggered by malformed HTTP response headers from remote servers, which could render affected client applications unresponsive. Any internal or customer-facing service relying on hackney for HTTP communication faces risk of outage if exposed to untrusted or compromised upstream servers. A patch is available and deployment should be prioritized given the HIGH severity rating.
Apply vendor patch: hackney 4.0.1 or later.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.
Denial of service in benoitc hackney (Erlang HTTP client) versions 2.0.0 through 4.0.0 allows a malicious WebSocket serv
Denial of service in benoitc hackney (Erlang HTTP client) 2.0.0 through 4.0.0 allows remote unauthenticated attackers to
Remote denial of service in benoitc hackney 2.0.0 through 4.0.0 lets a malicious HTTP/3 server exhaust a client's BEAM p
Denial of service in benoitc hackney (Erlang HTTP client) versions 0.10.0 through 4.0.0 lets a hostile SOCKS5 or HTTP CO
CRLF injection in hackney (Erlang HTTP client, versions 2.0.0-4.0.1) enables header injection into outbound WebSocket up
SSRF allowlist bypass in hackney (Erlang HTTP client) versions 0.13.0 through before 4.0.1 allows attackers who control
HTTP Request Splitting via CRLF injection in hackney, the Erlang/Elixir HTTP client library, allows an attacker who cont
Credential leakage in the hackney Erlang HTTP client library (versions 3.1.1 through before 4.0.1) allows a malicious or
Improper certificate validation in the Erlang HTTP client hackney (1.24.0 through 4.8.x) lets an on-path attacker impers
Memory exhaustion in the Erlang hackney HTTP client (2.0.0-beta.1 through 4.8.x) lets any server the client requests for
Server-side request forgery in the Erlang hackney HTTP client (versions 4.0.1 up to but not including 4.9.0) lets an att
CRLF injection in the hackney Erlang HTTP client library's hackney_cookie:setcookie/3 function enables HTTP response spl
EUVD-2026-31686
GHSA-6cp8-v795-jr2j
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB