Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessInduce hackney client to dial attacker URL
-
DeliveryAccept WebSocket upgrade
-
ExploitStream headers without CRLFCRLF or declare 2^63 frame or send endless nofin fragments
-
ExecutionUnbounded buffer growth in hackney_ws.erl
-
PersistErlang VM exhausts memory
-
ImpactClient process/node crashes (DoS)
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 use hackney 2.0.0-4.0.0 as a WebSocket client and must initiate an outbound WebSocket connection to a server the attacker controls - no authentication, no special client configuration, and no user interaction beyond initiating the connection are required (CVSS PR:N, UI:N, AT:N). The principal limiting factor is that exploitation is client-side and inbound-traffic-blind: the attacker cannot reach the victim directly but must lure or coerce the client into dialing an attacker-controlled URL, which makes this most relevant where WebSocket destinations are user-supplied, dynamically discovered, federated, or otherwise not pinned to trusted infrastructure. Impact is limited to availability (VC:N/VI:N/VA:H) and confined to whichever Erlang process/node runs the affected hackney client. |
| Impact | The CVSS 4.0 vector AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H scores 8.7 reflecting network reach, low complexity, no privileges, no user interaction, and a high availability impact with no confidentiality or integrity loss - consistent with a pure DoS. SSVC indicates Exploitation=poc, Automatable=yes, Technical Impact=partial, meaning weaponization is straightforward but limited to availability. EPSS is only 0.09% (25th percentile), suggesting little mass-scanning interest, which is expected because exploitation requires the victim to initiate an outbound WebSocket connection to attacker-controlled infrastructure rather than the attacker reaching the victim. The CVE is not on CISA KEV, so the real-world priority is moderate: high for services that make outbound WebSocket calls to untrusted or user-supplied URLs (webhooks, SSRF-reachable endpoints, federated systems), but low for clients only connecting to fixed trusted servers. |
| Exploit ScenarioDerived | An attacker stands up a malicious WebSocket server and induces a victim application (which uses hackney as its WebSocket client) to connect - for example via a user-supplied URL in a webhook, federation handshake, or SSRF-reachable endpoint. Once connected, the server either dribbles header bytes without ever sending CRLFCRLF, advertises a near-2^63 frame length while feeding payload slowly, or sends an unending sequence of non-final fragment frames; in any case the hackney process grows its buffer until the Erlang VM exhausts host memory and the application crashes. 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 2.0.0 through 4.0.0 allows a malicious WebSocket server to exhaust client memory via three unbounded buffer paths in src/hackney_ws.erl. An attacker controlling the server the hackney client connects to can drive the Erlang VM to OOM by streaming bytes without terminator, declaring a giant RFC 6455 frame length, or sending endless non-final continuation fragments. Publicly available exploit code exists per SSVC, EPSS is low at 0.09%, and a vendor patch is available in 4.0.1.
RemediationAI
Vendor-released patch: upgrade hackney to 4.0.1 or later, which introduces DEFAULT_MAX_FRAME_SIZE (16 MiB), DEFAULT_MAX_MESSAGE_SIZE (64 MiB), and MAX_HANDSHAKE_RESPONSE_SIZE (64 KiB) caps per commit ce0109e2970ace6e20ff29bae9d05c3ac22ec6dc; the new max_frame_size and max_message_size options can be tuned per connection if defaults are too restrictive. Refer to the advisory at https://github.com/benoitc/hackney/security/advisories/GHSA-q8jg-fgj4-fphf and the patch commit at https://github.com/benoitc/hackney/commit/ce0109e2970ace6e20ff29bae9d05c3ac22ec6dc. If immediate upgrade is not possible, restrict WebSocket client connections to a vetted allowlist of trusted servers, validate any user-supplied WebSocket URLs before passing them to hackney (preventing SSRF-style abuse), and apply per-process memory limits or Erlang VM memory ceilings to contain runaway growth - noting that hard limits will crash the connecting process rather than gracefully reject the malicious server.
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 Erlang HTTP/WebSocket client library maintained by Benoît Chesneau. The vulnerability is a classic CWE-400 (Uncontrolled Resource Consumption) in the WebSocket client state machine. Three specific code paths in src/hackney_ws.erl lacked size caps: read_handshake_response/3 accumulated bytes until the \r\n\r\n terminator with the per-receive timeout resetting on every chunk; parse_payload/9 and parse_active_payload/8 trusted the declared RFC 6455 frame length (which permits up to 2^63-1 bytes) without validation; and the frag_buffer field in #ws_data{} grew indefinitely as non-final continuation frames arrived. CPE coverage (cpe:2.3:a:benoitc:hackney:*) confirms all versions in the 2.0.0-4.0.0 range are affected.
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: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
Lifecycle Timeline
2DescriptionCVE.org
Allocation of Resources Without Limits or Throttling vulnerability in benoitc hackney allows Flooding. The WebSocket client in src/hackney_ws.erl imposes no upper bound on memory consumption in three code paths. First, read_handshake_response/3 accumulates received bytes into a growing buffer with no size cap; the per-receive timeout resets on every chunk, so a server that streams bytes without ever sending \r\n\r\n causes the buffer to grow until memory is exhausted. Second, parse_payload/9 and parse_active_payload/8 do not validate the declared frame payload length against any limit; because RFC 6455 allows payload lengths up to 2^63-1 bytes, a server that announces a very large frame and dribbles bytes causes the accumulation buffer to grow until OOM. Third, the frag_buffer field in #ws_data{} accumulates continuation frames indefinitely; a server that sends an endless stream of non-final (nofin) fragmented frames without ever sending a final (fin) frame grows frag_buffer without bound.
In all three cases the attacker only needs to control the WebSocket server the hackney client connects to, with no authentication or special client configuration required.
This issue affects hackney: from 2.0.0 before 4.0.1.
Executive ViewAI
Benoitc hackney, an Erlang HTTP client library used in distributed systems, contains a denial-of-service vulnerability (CVE-2026-47073, CVSS 8.7) affecting versions 2.0.0 through 4.0.0 with publicly available exploit code that allows attackers to exhaust application memory and crash services. Organizations running affected versions risk unplanned service interruptions when applications connect to malicious endpoints. A vendor patch (version 4.0.1) is available and should be deployed immediately.
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) 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
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-31694
GHSA-q8jg-fgj4-fphf
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB