Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessSupply percent-encoded IP host in URL
-
DeliverySubmit to hackney-backed application endpoint
-
ExploitApplication validates host via OTP inet:parse_address (non-IP, allowlist passes)
-
Executionhackney_url:normalize/2 decodes host to real IP
-
Persisthackney opens TCP connection to internal target
-
ImpactRetrieve sensitive data from metadata service or internal admin interface
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A06:2025 - Insecure Design
ASVS 5.0
V4 - API and Web Service Interpretation consistency
|
| Exploitation Conditions | Exploitation requires two simultaneous conditions: (1) the target application uses hackney to make HTTP requests where the URL or host component is fully or partially attacker-influenced (e.g., a URL-fetch proxy, webhook dispatcher, or link preview service), AND (2) the application implements SSRF allowlist validation on the pre-normalized URL using OTP's uri_string:parse/1 or inet:parse_address/1 - the specific Erlang/OTP primitives that do not decode percent-escapes in hostnames. Applications with no SSRF controls at all are already fully vulnerable to SSRF by other means and do not depend on this differential to be exploited. Limiting factors: AT:P in the CVSS 4.0 vector confirms that specific deployment conditions must be present; SSVC Automatable:no indicates mass-exploitation tooling is not viable; the attack requires knowledge of internal target addresses (metadata service IPs, RFC1918 ranges) and the percent-encoding bypass technique. There is no authentication requirement (PR:N) from hackney's side - the constraint is entirely on the application's exposure of URL input to attackers. |
| Impact | The CVSS 4.0 score of 6.9 with vector AV:L/AC:L/AT:P/PR:N/UI:N/VC:H/VI:N/VA:N/SC:H/SI:N/SA:N carries a notable tension: AV:L (Local attack vector) indicates the attacker must operate within the vulnerable component's local execution context, yet the described exploitation mechanism is a classic network-SSRF pattern where an attacker supplies a crafted URL to a network-facing application. This inconsistency should be verified against the vendor advisory - the AV:L designation may reflect that hackney is scored as a library where exploitation is modeled as a local caller supplying malicious input, not a remote attacker directly reaching the socket. AT:P (attack requirements present) correctly captures that the victim application must implement caller-side SSRF validation using OTP primitives for the bypass to be meaningful; applications with no SSRF controls are already fully vulnerable and do not depend on this differential. VC:H and SC:H signal that successful exploitation yields high-confidentiality impact on both the local component and downstream systems (e.g., cloud metadata yielding IAM credentials). SSVC rates exploitation as poc (proof-of-concept available) but not automatable with only partial technical impact, and EPSS of 0.01% at the 2nd percentile suggests limited real-world exploitation at time of analysis. No CISA KEV listing. Overall risk priority is moderate-to-high for applications that use hackney to proxy attacker-influenced URLs and rely on OTP-based SSRF allowlists - the very pattern most Erlang/Elixir SSRF mitigations are built on. |
| Exploit ScenarioDerived | An attacker submits a crafted URL such as http://%31%36%39%2E%32%35%34%2E%31%36%39%2E%32%35%34/latest/meta-data/iam/security-credentials/ to a web application that uses hackney to fetch URLs on behalf of users. The application's SSRF allowlist checks the host using OTP's inet:parse_address/1, sees the percent-encoded string as a non-IP hostname, and allows the request. hackney_url:normalize/2 then decodes the host to 169.254.169.254, opens a TCP connection to the cloud instance metadata service, and returns IAM role credentials to the attacker. A proof-of-concept is available per SSVC assessment, though SSVC rates the attack as not automatable, indicating per-target manual crafting is required. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jun 08, 2026
SSRF allowlist bypass in hackney (Erlang HTTP client) versions 0.13.0 through before 4.0.1 allows attackers who control URL input to circumvent application-level SSRF protections by supplying percent-encoded IP addresses as hostnames. The parser differential lies in hackney_url:normalize/2 decoding the host component post-parse: OTP's uri_string:parse/1 and inet:parse_address/1 see %31%36%39%2E%32%35%34%2E%31%36%39%2E%32%35%34 as a non-IP string (allowlist passes), while hackney then decodes it to 169.254.169.254 and establishes the TCP connection. A proof-of-concept exists per SSVC assessment; no active exploitation is confirmed in CISA KEV, and EPSS is very low at 0.01% (2nd percentile).
RemediationAI
Upgrade hackney to version 4.0.1 or later, which is the vendor-released patch per the advisory at https://github.com/benoitc/hackney/security/advisories/GHSA-pj7v-xfvx-wmjq. The fix (commit 452620a92ec1da2e6b4862a049a2a4f04b42068f at https://github.com/benoitc/hackney/commit/452620a92ec1da2e6b4862a049a2a4f04b42068f) adds a post-decode check inside normalize/2: if the percent-decoded host parses as an IP address via inet_parse:address/1 but the original pre-decoded form did not, the call raises {invalid_url_host, Host0} - rejecting the differential entirely while preserving IDN and percent-encoded UTF-8 hostnames. If immediate upgrade is not feasible, a compensating control is to move SSRF allowlist validation to execute after calling hackney_url:normalize/2 explicitly, so validation inspects the already-decoded host - this requires application-level refactoring and care to avoid race conditions between normalize and request dispatch. Defense-in-depth via network-layer blocking of 169.254.169.254 and RFC1918 ranges reduces blast radius but does not address all internal targets (e.g., loopback admin interfaces on non-standard ports) and should not be treated as a sufficient substitute for patching.
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
CWE-436 (Interpretation Conflict) describes vulnerabilities where two components interpret the same data differently, creating an exploitable gap. Here, hackney_url:normalize/2 applies percent-decoding to the URL host field after OTP has already parsed the URL into a #hackney_url{} record - a deliberate normalization step with no caller opt-out. OTP's uri_string:parse/1 and inet:parse_address/1, which applications use to validate hosts against SSRF allowlists, intentionally do not decode percent-escapes in hostnames (RFC 3986 does not require IP literals to be percent-encoded). The result is that any caller performing allowlist validation on the pre-normalized URL operates on a fundamentally different value than hackney uses for connection. The affected CPE is cpe:2.3:a:benoitc:hackney:*:*:*:*:*:*:*:* across all Erlang/OTP platforms. Because hackney:request/5 unconditionally invokes normalize/2 with no bypass mechanism, every code path accepting binary or list URLs is vulnerable. Specially crafted targets include 127.0.0.1 (loopback admin interfaces), 169.254.169.254 (cloud instance metadata services), and arbitrary RFC1918 networks.
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:L/AC:L/AT:P/PR:N/UI:N/VC:H/VI:N/VA:N/SC:H/SI:N/SA:N
Primary rating from Vendor (EEF) · only source for this CVE.
CVSS VectorVendor: EEF
Lifecycle Timeline
2DescriptionCVE.org
Interpretation Conflict vulnerability in benoitc hackney allows Server Side Request Forgery. hackney_url:normalize/2 URL-decodes the host component after the URL has been parsed into a #hackney_url{} record. OTP's uri_string:parse/1 and inet:parse_address/1 do not decode percent-escapes in the host, so a URL such as http://%31%32%37%2E%30%2E%30%2E%31/ is seen by a caller's allowlist validator with host %31%32%37%2E%30%2E%30%2E%31 (not an IP address), which passes the allowlist check. hackney's normalizer then decodes the host to 127.0.0.1 and opens a TCP connection to loopback. Because hackney:request/5 always calls hackney_url:normalize/2 with no opt-out, every request that takes a binary or list URL is affected. The same technique reaches cloud instance metadata services (169.254.169.254), RFC1918 networks, and any admin interface listening on localhost.
This issue affects hackney: from 0.13.0 before 4.0.1.
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
Server-Side Request Forgery exploits applications that fetch remote resources based on user-supplied URLs.
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
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
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-31689
GHSA-pj7v-xfvx-wmjq
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB