Skip to main content

hackney CVE-2026-47066

| EUVDEUVD-2026-31686 HIGH
Loop with Unreachable Exit Condition (Infinite Loop) (CWE-835)
2026-05-25 EEF GHSA-6cp8-v795-jr2j
8.7
CVSS 4.0 · Vendor: EEF
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Recon
    Lure hackney client to attacker origin
  2. Delivery
    Return HTTP response with 'Alt-Svc: !'
  3. Exploit
    parse_and_cache/3 invokes Alt-Svc parser
  4. Install
    parse_entries/2 tail-recurses on unchanged buffer
  5. C2
    Erlang scheduler pinned at 100% CPU
  6. Execute
    Repeat across connections to exhaust schedulers
  7. Impact
    Application/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.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

hackney 2.0.0-beta.1 <4.0.1
hackney 408e5fe20302226ea8c74dde2bcbd452d712b5b2 <e548aba1f97ffa3f4750da7b772998fb78c01894

Affected Packages

euvd hackney fix: 4.0.1

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

Vendor (EEF) PRIMARY 8.7 HIGH
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

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
None
Vulnerable system: Availability
High
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

2
CVSS changed
May 26, 2026 - 17:22 NVD
8.7 (HIGH)
CVE Published
May 25, 2026 - 14:00 nvd
UNKNOWN (no severity yet)

DescriptionCVE.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

Why It Matters

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.

Business Impact: High
Compensating Controls

Apply vendor patch: hackney 4.0.1 or later.

Threat Intelligence Overview

EPSS Score
0.0%
Top 87% exploitable
Threat Intel
1
1 source
Exploit
POC
Public exploit code exists
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GHSA GitHub VulDB

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.

SignalValue
Severity HIGH
CISA KEV No
Public POC Yes
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Out-of-Cycle
Exploitation
Poc
System Exposure· derived
Open
Automatable
Yes
Human Impact
High
Technical Impact
Partial

Priority Score

64
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +44
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.

CVE-2026-47073 HIGH POC
8.7 May 25

Denial of service in benoitc hackney (Erlang HTTP client) versions 2.0.0 through 4.0.0 allows a malicious WebSocket serv

CVE-2026-47067 HIGH POC
8.7 May 25

Denial of service in benoitc hackney (Erlang HTTP client) 2.0.0 through 4.0.0 allows remote unauthenticated attackers to

CVE-2026-47077 HIGH POC
8.2 May 25

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

CVE-2026-47071 HIGH POC
8.2 May 25

Denial of service in benoitc hackney (Erlang HTTP client) versions 0.10.0 through 4.0.0 lets a hostile SOCKS5 or HTTP CO

CVE-2026-47072 MEDIUM POC
6.9 May 25

CRLF injection in hackney (Erlang HTTP client, versions 2.0.0-4.0.1) enables header injection into outbound WebSocket up

CVE-2026-47076 MEDIUM POC
6.9 May 25

SSRF allowlist bypass in hackney (Erlang HTTP client) versions 0.13.0 through before 4.0.1 allows attackers who control

CVE-2026-47075 MEDIUM POC
6.8 May 25

HTTP Request Splitting via CRLF injection in hackney, the Erlang/Elixir HTTP client library, allows an attacker who cont

CVE-2026-47070 MEDIUM POC
6.0 May 25

Credential leakage in the hackney Erlang HTTP client library (versions 3.1.1 through before 4.0.1) allows a malicious or

CVE-2026-115693 CRITICAL
9.1 Oct 26

Improper certificate validation in the Erlang HTTP client hackney (1.24.0 through 4.8.x) lets an on-path attacker impers

CVE-2026-97200 HIGH
8.2 Oct 26

Memory exhaustion in the Erlang hackney HTTP client (2.0.0-beta.1 through 4.8.x) lets any server the client requests for

CVE-2026-115700 MEDIUM
6.9 Oct 26

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

CVE-2026-47069 LOW POC
2.1 May 25

CRLF injection in the hackney Erlang HTTP client library's hackney_cookie:setcookie/3 function enables HTTP response spl

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy