Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAttacker supplies CRLF-containing query value
-
DeliveryApplication passes unsanitized URL to hackney
-
Exploithackney_url:make_url/3 emits raw CRLF in request target
-
ExecutionHTTP/1.1 request line split at CRLF
-
PersistInjected headers sent to downstream server
-
ImpactDownstream server processes forged headers
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization CRLF sequence sanitization
|
| Exploitation Conditions | The attacker must be able to control all or part of a URL - specifically the query string component - that is subsequently passed to hackney for an outbound HTTP request. This is an application-level trust boundary condition: if the application properly validates or encodes user input before constructing URLs for hackney, the vulnerability is not reachable. The CVSS AT:P confirms that this precondition (attacker-controlled URL input reaching hackney without prior encoding) must be present. UI:A indicates the application must actively initiate the HTTP request using the attacker-influenced URL. AV:L indicates the attacker operates within the local system context rather than remotely triggering the HTTP call directly. Exploitation is NOT possible if the application percent-encodes query parameters before passing URLs to hackney, or if user input never flows into hackney's URL construction. Exploitation is limited to scenarios where hackney makes HTTP/1.1 requests (the HTTP/2 and HTTP/3 :path pseudo-header is also mentioned in the patch comment as affected). No authentication to the target application is required (PR:N), but the attacker's ability to inject into the URL is the binding constraint. |
| Impact | The CVSS 4.0 score of 6.8 with vector AV:L/AC:L/AT:P/PR:N/UI:A reflects a moderate-severity, locally-triggered vulnerability with specific prerequisites rather than a broadly remotely exploitable flaw. AV:L indicates the attacker must influence inputs on the local system or within the application process - not a direct network-exposed endpoint. AT:P confirms that additional preconditions apply: the attacker must control all or part of a URL that the target application passes to hackney. UI:A indicates active application-level interaction is required (i.e., the application must initiate an HTTP request with the attacker-influenced URL). The integrity impact is significant: VI:H and SI:H indicate the attacker can inject headers that manipulate both the vulnerable component and downstream systems (proxies, backend servers). There is no confidentiality or availability impact per the CVSS vector. SSVC rates exploitation as 'poc' (proof-of-concept exists) and Automatable: no, consistent with AT:P and UI:A, meaning mass automated exploitation is not feasible. EPSS at 0.02% (6th percentile) reinforces that real-world exploitation is not widespread. The vulnerability is NOT in CISA KEV. The 'RCE' tag in the input data appears inconsistent with the actual vulnerability class (CRLF injection / HTTP Request Splitting, CWE-93) - the impact is header injection and request splitting, not code execution. This discrepancy should be treated as a mislabeling artifact. Overall, the realistic risk is moderate: high impact if exploitable conditions are met, but significant friction due to required URL control, local attack vector, and the need for application-level interaction. |
| Exploit ScenarioDerived | An attacker who can influence the query string of a URL processed by a Elixir or Erlang application using hackney - for example, by providing a crafted search parameter that is passed through to an outbound HTTP request - embeds a raw CRLF sequence such as %0D%0A (decoded before URL construction) into the query value. When hackney_url:make_url/3 builds the request target without escaping, the injected CRLF is written verbatim into the HTTP/1.1 request line, causing the downstream server or proxy to parse the injected content as a new header line (e.g., X-Injected: yes), enabling cache poisoning, security control bypass, or server-side request manipulation. A proof-of-concept exists per SSVC assessment, and the test case in the patch demonstrates the exact injection vector using the path /get?q=x HTTP/1.1\r\nX-Injected: yes\r\nX:. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jun 08, 2026
HTTP Request Splitting via CRLF injection in hackney, the Erlang/Elixir HTTP client library, allows an attacker who controls URL input to inject arbitrary HTTP headers or split HTTP/1.1 requests by embedding raw carriage return (\r) or line feed (\n) characters in the query string. The root cause is that hackney_url:make_url/3 passes the query binary directly into the HTTP/1.1 request target without percent-encoding RFC 3986-prohibited characters, violating the grammar defined in RFC 3986 §3.4. All hackney versions from 0 through 4.0.0 are affected; a proof-of-concept exists per SSVC assessment, though no active exploitation is confirmed and the EPSS score (0.02%, 6th percentile) indicates low widespread exploitation probability at time of analysis.
RemediationAI
The primary fix is to upgrade hackney to version 4.0.1 or later, which introduces request target validation in hackney_conn.erl to reject paths containing raw CR, LF, or NUL bytes before they are written to the socket. The patch is confirmed at commit ca73dd0aba0ed557449c18288bf07241671a43c9 (https://github.com/benoitc/hackney/commit/ca73dd0aba0ed557449c18288bf07241671a43c9). Refer to the GitHub Security Advisory GHSA-j9wq-vxxc-94wf for full details. If immediate upgrade is not possible, the compensating control is to sanitize or percent-encode all query string values before passing URLs to hackney at the application layer - specifically, replace any occurrence of \r, \n, or NUL in user-controlled query parameters with their percent-encoded equivalents (%0D, %0A, %00) before constructing URLs. This mitigation adds application-layer encoding overhead and must be applied consistently at every call site that passes user-influenced URLs to hackney; any missed call site remains exploitable. There is no known configuration flag within hackney itself to disable the vulnerable behavior prior to 4.0.1.
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 (CPE: cpe:2.3:a:benoitc:hackney:*:*:*:*:*:*:*:*) is a widely used HTTP/1.1 client library for Erlang and Elixir applications. The vulnerability is classified as CWE-93 (Improper Neutralization of CRLF Sequences) and is rooted in hackney_url:make_url/3, which constructs the request target for HTTP/1.1 requests by concatenating the path and query string without sanitizing or percent-encoding the query component. RFC 3986 §3.4 mandates that characters outside the query grammar - including CR (\r, 0x0D), LF (\n, 0x0A), and NUL (0x00) - must be percent-encoded before being placed in a URI. Because hackney_conn.erl previously wrote the path/query directly as the HTTP request line, a caller-supplied URL containing raw CRLF bytes caused those bytes to be interpreted as HTTP line terminators by intermediate proxies, servers, or security controls. The patch (commit ca73dd0aba0ed557449c18288bf07241671a43c9) adds a valid_request_target/1 guard in hackney_conn.erl that rejects any request target containing \r, \n, or NUL before the request is dispatched to the socket, returning {error, {invalid_request_target, Path}} instead of emitting a malformed request.
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:A/VC:N/VI:H/VA:N/SC:N/SI:H/SA:N
Primary rating from Vendor (EEF) · only source for this CVE.
CVSS VectorVendor: EEF
Lifecycle Timeline
2DescriptionCVE.org
Improper Neutralization of CRLF Sequences vulnerability in benoitc hackney allows HTTP Request Splitting. hackney does not percent-encode carriage return (\r) or line feed (\n) characters in the URL query component before constructing the HTTP/1.1 request target. Characters outside the grammar defined in RFC 3986 Section 3.4 must be percent-encoded, but hackney_url:make_url/3 passes the query binary directly without validation or escaping. An attacker who can control all or part of a URL passed to hackney can inject raw CRLF sequences into the query string, which are then sent as HTTP line breaks in the request target. This enables injection of arbitrary HTTP headers or splitting of the HTTP request.
This issue affects hackney: from 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
Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.
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
SSRF allowlist bypass in hackney (Erlang HTTP client) versions 0.13.0 through before 4.0.1 allows attackers who control
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-31687
GHSA-j9wq-vxxc-94wf
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB