Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…
EPSS 0.9%top 46%

CVE-2026-47073: CWE-400 Uncontrolled Resource Consumption in benoitc hackney

0
High
VulnerabilityCVE-2026-47073cvecve-2026-47073cwe-400
Published: 05/25/2026 (05/25/2026, 14:00:49 UTC)
Source: CVE Database V5
Vendor/Project: benoitc
Product: hackney

Description

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.

CVSS v4.0

Score 8.7high

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vuln. Confidentiality
None
Vuln. Integrity
None
Vuln. Availability
High
Subsq. Confidentiality
None
Subsq. Integrity
None
Subsq. Availability
None
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

Affected software

GitHub Actionsmore threats →ai
benoitc/hackney
pkg:github/benoitc/hackney
Affected versions
=2.0.0<4.0.1

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 06/01/2026, 20:35:57 UTC

Technical Analysis

The vulnerability in benoitc hackney's WebSocket client arises from lack of upper bounds on memory consumption in three areas: (1) read_handshake_response/3 accumulates bytes indefinitely if the server streams data without completing the handshake delimiter, (2) parse_payload/9 and parse_active_payload/8 do not validate frame payload length, allowing very large frames to cause memory exhaustion, and (3) the frag_buffer field accumulates continuation frames indefinitely if the server sends endless fragmented frames without a final frame. These flaws allow a malicious WebSocket server to cause the client to consume excessive memory, leading to denial of service. The issue affects hackney versions from 2.0.0 up to but not including 4.0.1.

Potential Impact

Successful exploitation results in uncontrolled memory consumption on the client side, potentially causing out-of-memory conditions and denial of service. The attacker must control the WebSocket server the client connects to but does not require authentication or special client configuration. There are no known exploits in the wild at this time.

Mitigation Recommendations

Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, users should consider limiting exposure to untrusted WebSocket servers or implementing external controls to detect and block malicious WebSocket traffic. Monitor vendor channels for updates regarding patches or official mitigations.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
EEF
Date Reserved
2026-05-18T17:28:08.322Z
Cvss Version
4.0
State
PUBLISHED
Remediation Level
null

Threat ID: 6a149bd3a5ae1af1aad7732d

Added to database: 05/25/2026, 18:58:27 UTC

Last enriched: 06/01/2026, 20:35:57 UTC

Last updated: 07/25/2026, 13:31:32 UTC

Views: 67

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses