CVE-2026-47071
published high CVSS 4.0 · 8.2SOCKS5 TLS upgrade ignores caller timeout in hackney
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| benoitc | — | hackney0.8.1 to < 4.0.1 · Other versions: unaffected | Affected | Not stated | EEF |
| benoitc | — | benoitc/hackneyhackney · 34cdbd1d20a282aacc286a89327465a3925b4c5d to < 5ccdab725c561a6f03d05a51f2d0664f98236dae · Other versions: unaffected | Affected | Not stated | EEF |
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.8.1 before 4.0.1.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 8.2 / 10
- Severity
- high
- Provider
- EEF · cna
- Vector string
- CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
- Scenarios
- en: GENERAL
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| benoitc | hackney | 0.8.1 to < 4.0.1 (affected · semver)Default: unaffected | EEF · cna |
| benoitc | hackney | 34cdbd1d20a282aacc286a89327465a3925b4c5d to < 5ccdab725c561a6f03d05a51f2d0664f98236dae (affected · git)Default: unaffected | EEF · cna |
Weaknesses
1- CWE-400 CWE-400 Uncontrolled Resource Consumption
References
5- EEF CNA record for CVE-2026-47071 https://cna.erlef.org/cves/CVE-2026-47071.html
- Introducing commit 34cdbd1 in benoitc/hackney https://github.com/benoitc/hackney/commit/34cdbd1d20a282aacc286a89327465a3925b4c5d
- Fix commit 5ccdab7 in benoitc/hackney https://github.com/benoitc/hackney/commit/5ccdab725c561a6f03d05a51f2d0664f98236dae
- `ssl:connect/2` post-handshake upgrade has no timeout https://github.com/benoitc/hackney/security/advisories/GHSA-gp9c-pm5m-5cxr
- OSV record EEF-CVE-2026-47071 https://osv.dev/vulnerability/EEF-CVE-2026-47071
Provider assertions
2EEF · cna
SOCKS5 TLS upgrade ignores caller timeout in hackney
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 87332f98ba20ca7aba8baaf5bceeb6f3d2b68b02a838db52dea76dcd88d425ce
- Ingested
- 20 Nov 2026, 08:21:02 UTC
- Source record
- Official CVE record