Skip to main content

hackney EUVDEUVD-2026-31685

| CVE-2026-47071 HIGH
Uncontrolled Resource Consumption (CWE-400)
2026-05-25 EEF GHSA-gp9c-pm5m-5cxr
8.2
CVSS 4.0 · Vendor: EEF
View

Attack ChainAIDerived

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

  1. Access
    Attacker positions or stands up malicious SOCKS5/CONNECT proxy
  2. Delivery
    Victim hackney client initiates TLS request via that proxy
  3. Exploit
    Proxy completes SOCKS5/CONNECT handshake normally
  4. Execution
    Proxy stalls or sends partial TLS ServerHello
  5. Persist
    ssl:connect/2 blocks with infinite timeout
  6. Impact
    Caller process and socket pinned, repeat to exhaust BEAM resources

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A06:2025 - Insecure Design
ASVS 5.0
V2 - Validation and Business Logic Resource consumption limits
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 be using hackney (0.10.0 through 4.0.0) to make a TLS request through a SOCKS5 proxy (hackney_socks5) or an HTTPS request through an HTTP CONNECT proxy (hackney_http_connect), and the attacker must control the proxy endpoint or be able to interpose on it. No authentication and no user interaction are required (CVSS PR:N/UI:N), but AT:P reflects the prerequisite that traffic actually traverses an attacker-influenced proxy - purely direct TLS connections that never enter the SOCKS5/CONNECT code path are not affected. Impact is limited to availability (VA:H, VC:N, VI:N): the bug stalls processes and sockets but does not leak data or allow code execution.

Impact

CVSS 4.0 vector AV:N/AC:L/AT:P/PR:N/UI:N with VA:H confirms a network-reachable, low-complexity, unauthenticated availability-only impact requiring an attack prerequisite (AT:P) - namely that the victim be configured to traffic through an attacker-controlled SOCKS5 or HTTPS CONNECT proxy. SSVC marks exploitation as POC with Automatable:yes and Technical Impact:partial, consistent with a DoS rather than RCE. EPSS is only 0.04% (13th percentile) and the CVE is not in CISA KEV, which aligns with the realistic threat model: exploitation requires the victim to route TLS-over-proxy traffic through a malicious or compromised proxy, so this is not an internet-spray bug. The signals are coherent - high CVSS for availability is justified for backend services that rely on hackney for outbound TLS through user-controlled proxy URLs (e.g., webhook fetchers, link previewers, SSRF-style features), but routine clients with trusted proxies face limited real-world risk.

Exploit ScenarioDerived

An attacker who controls (or compromises) a SOCKS5 or HTTPS CONNECT proxy that a hackney-based service routes outbound TLS through completes the proxy handshake normally and then either sends nothing or a partial TLS ServerHello and stalls. The calling Erlang process blocks indefinitely inside ssl:connect/2 despite the application setting connect_timeout/recv_timeout, and repeated requests exhaust process and socket resources until the BEAM node is degraded. This is plausible against SSRF-style features, link unfurlers, or any service where the target URL or proxy endpoint is influenced by untrusted input; publicly available exploit code exists per SSVC.

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 hackney (Erlang HTTP client) versions 0.10.0 through 4.0.0 lets a hostile SOCKS5 or HTTP CONNECT proxy hang the connecting Erlang process indefinitely during the TLS upgrade phase. Because the caller-supplied timeout was not forwarded to ssl:connect/2, which defaults to infinity, recv_timeout and connect_timeout options are silently bypassed. Publicly available exploit code exists per SSVC, EPSS is low (0.04%), and a vendor patch is available in 4.0.1.

RemediationAI

Upgrade to hackney 4.0.1, which forwards the caller's Timeout to ssl:connect/3 in both the SOCKS5 and HTTP CONNECT transports (see commit 5ccdab725c561a6f03d05a51f2d0664f98236dae and advisory GHSA-gp9c-pm5m-5cxr at https://github.com/benoitc/hackney/security/advisories/GHSA-gp9c-pm5m-5cxr). If immediate upgrade is not possible, restrict outbound proxy usage to trusted, operator-controlled SOCKS5/HTTPS proxies and reject user-supplied proxy URLs at the application layer - the trade-off is loss of any feature that lets end users choose an arbitrary proxy. As a defense-in-depth control, enforce a per-request supervisor or hard wall-clock kill (e.g., wrap calls in a Task with Task.await/2 timeout, or use a circuit breaker with a max-in-flight budget) so a stalled process cannot accumulate; the side effect is that legitimate slow handshakes will also be cancelled. Do not rely on connect_timeout or recv_timeout alone on vulnerable versions - they are bypassed during the TLS upgrade phase.

Affected VersionsENISA

hackney 0.10.0 <4.0.1
hackney 34cdbd1d20a282aacc286a89327465a3925b4c5d <5ccdab725c561a6f03d05a51f2d0664f98236dae

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 used HTTP client library for Erlang/OTP, frequently pulled in transitively by Elixir HTTP stacks. The bug sits in src/hackney_socks5.erl (and analogously in src/hackney_http_connect.erl) where, after the SOCKS5 or HTTP CONNECT handshake completes, the TCP socket is upgraded to TLS via the two-argument ssl:connect(Socket, SSLOpts) form. Erlang's ssl:connect/2 defaults its timeout to infinity, so the Timeout variable in scope at the call site is never propagated to the TLS handshake. This is a classic CWE-400 Uncontrolled Resource Consumption issue: the resource exhausted is the calling Erlang process and its file descriptor, which are pinned to a stalled handshake despite explicit caller-supplied connect_timeout / recv_timeout values. Affected CPE is cpe:2.3:a:benoitc:hackney:* across all builds from 0.10.0 up to (but not including) 4.0.1.

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.2 HIGH
CVSS:4.0/AV:N/AC:L/AT:P/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
Present
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.2 (HIGH)
CVE Published
May 25, 2026 - 14:00 nvd
UNKNOWN (no severity yet)

DescriptionCVE.org

Uncontrolled Resource Consumption vulnerability in benoitc hackney allows Flooding. The SOCKS5 transport in src/hackney_socks5.erl correctly applies the caller-supplied timeout to the SOCKS5 negotiation phase, but then upgrades the connection to TLS using the two-argument form ssl:connect/2, which defaults to an infinite timeout. The Timeout value is in scope at the call site but is not forwarded. A hostile SOCKS5 proxy that completes the SOCKS5 handshake normally and then goes silent (or sends a partial TLS ServerHello and stalls) will cause the connecting process to block indefinitely, regardless of the connect_timeout or recv_timeout options supplied by the caller.

This issue affects hackney: from 0.10.0 before 4.0.1.

Executive ViewAI

Why It Matters

Denial of service vulnerability in the benoitc hackney Erlang HTTP client affects versions 0.10.0 through 4.0.0, potentially causing application processes to hang indefinitely when connecting through external proxies. Organizations relying on Erlang applications for production services face service availability risk if they process traffic through untrusted proxy infrastructure. Patch 4.0.1 is available and should be deployed within 30 days to eliminate this service disruption risk.

Business Impact: High
Compensating Controls

Apply vendor patch.

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

61
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +41
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-47066 HIGH POC
8.7 May 25

Denial-of-service in benoitc's hackney Erlang HTTP client (versions 2.0.0-beta.1 through 4.0.0) allows any HTTP origin s

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