CVE-2026-47071: CWE-400 Uncontrolled Resource Consumption in benoitc hackney
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.
AI Analysis
Technical Summary
The vulnerability in benoitc hackney arises because the SOCKS5 transport implementation applies the caller-supplied timeout only during the SOCKS5 handshake but not during the TLS upgrade that follows. The TLS connection uses ssl:connect/2 with an infinite timeout by default, ignoring the intended timeout values. A hostile SOCKS5 proxy can exploit this by completing the SOCKS5 handshake and then stalling during the TLS ServerHello phase, causing the client process to block indefinitely. This results in uncontrolled resource consumption (CWE-400) and potential denial of service. The issue affects hackney versions from 0.10.0 up to but not including 4.0.1.
Potential Impact
An attacker controlling a SOCKS5 proxy can cause the hackney client to block indefinitely during TLS negotiation, leading to resource exhaustion on the client side. This can result in denial of service conditions for applications relying on hackney for HTTP connections via SOCKS5 proxies. There is no indication of privilege escalation, data disclosure, or code execution from this vulnerability.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. No official fix or patch information is provided in the available data. Until a patch is available, users should consider avoiding use of untrusted SOCKS5 proxies or implement external timeout controls at the application or network level to mitigate indefinite blocking during TLS negotiation.
CVE-2026-47071: CWE-400 Uncontrolled Resource Consumption in benoitc hackney
Description
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.
CVSS v4.0
Score 8.2high
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability in benoitc hackney arises because the SOCKS5 transport implementation applies the caller-supplied timeout only during the SOCKS5 handshake but not during the TLS upgrade that follows. The TLS connection uses ssl:connect/2 with an infinite timeout by default, ignoring the intended timeout values. A hostile SOCKS5 proxy can exploit this by completing the SOCKS5 handshake and then stalling during the TLS ServerHello phase, causing the client process to block indefinitely. This results in uncontrolled resource consumption (CWE-400) and potential denial of service. The issue affects hackney versions from 0.10.0 up to but not including 4.0.1.
Potential Impact
An attacker controlling a SOCKS5 proxy can cause the hackney client to block indefinitely during TLS negotiation, leading to resource exhaustion on the client side. This can result in denial of service conditions for applications relying on hackney for HTTP connections via SOCKS5 proxies. There is no indication of privilege escalation, data disclosure, or code execution from this vulnerability.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. No official fix or patch information is provided in the available data. Until a patch is available, users should consider avoiding use of untrusted SOCKS5 proxies or implement external timeout controls at the application or network level to mitigate indefinite blocking during TLS negotiation.
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: 6a149bd3a5ae1af1aad77321
Added to database: 05/25/2026, 18:58:27 UTC
Last enriched: 06/01/2026, 20:35:47 UTC
Last updated: 07/31/2026, 19:22:59 UTC
Views: 67
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
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
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.