Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAttacker positions or stands up malicious SOCKS5/CONNECT proxy
-
DeliveryVictim hackney client initiates TLS request via that proxy
-
ExploitProxy completes SOCKS5/CONNECT handshake normally
-
ExecutionProxy stalls or sends partial TLS ServerHello
-
Persistssl:connect/2 blocks with infinite timeout
-
ImpactCaller 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. |
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 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
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 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
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
Lifecycle Timeline
2DescriptionCVE.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
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.
Apply vendor patch.
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
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
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
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-31685
GHSA-gp9c-pm5m-5cxr
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB