# CVE-2026-47071: SOCKS5 TLS upgrade ignores caller timeout in hackney

- Severity: High 8.2 (CVSS:4.0, scored by EEF) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.75%, higher than 56% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-05-25T14:00:41.112Z
- Modified: 2026-11-26T17:23:03.030Z
- Also known as: GHSA-gp9c-pm5m-5cxr, EEF-CVE-2026-47071
- Weaknesses: CWE-400
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: 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.

(As written by CVE List.)

## Affected

- hackney: from 0.8.1 before 4.0.1
- benoitc/hackney: from 34cdbd1d20a282aacc286a89327465a3925b4c5d before 5ccdab725c561a6f03d05a51f2d0664f98236dae
- hackney (Hex): from 0.10.0 before 4.0.1; from 0.8.1 before 4.0.1
- https://github.com/benoitc/hackney: from 34cdbd1d20a282aacc286a89327465a3925b4c5d before 5ccdab725c561a6f03d05a51f2d0664f98236dae
- benoitc hackney: from 0.10.0 before 4.0.1

## Every score

- EEF: CVSS:4.0 8.2 High `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`
- GitHub: CVSS:4.0 High `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`
- Erlang Ecosystem Foundation: CVSS:4.0 `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`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://github.com/benoitc/hackney/security/advisories/GHSA-gp9c-pm5m-5cxr> (exploit, advisory, patch, related, vendor-advisory, web)
- <https://cna.erlef.org/cves/CVE-2026-47071.html> (patch, related, third-party-advisory, web)
- <https://osv.dev/vulnerability/EEF-CVE-2026-47071> (patch, related, third-party-advisory, web)
- <https://github.com/benoitc/hackney/commit/34cdbd1d20a282aacc286a89327465a3925b4c5d> (related, web)
- <https://github.com/benoitc/hackney/commit/5ccdab725c561a6f03d05a51f2d0664f98236dae> (fix, patch, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-47071> (advisory)
- <https://github.com/benoitc/hackney> (package)
- <https://hex.pm/packages/hackney> (package)

## Sources

- CVE List: [CVE-2026-47071](https://www.cve.org/CVERecord?id=CVE-2026-47071), CVE Terms of Use, modified 2026-11-20
- GitHub Advisory Database: [GHSA-gp9c-pm5m-5cxr](https://github.com/advisories/GHSA-gp9c-pm5m-5cxr), CC-BY-4.0, modified 2026-06-26
- Erlang Ecosystem Foundation: [EEF-CVE-2026-47071](https://osv.dev/vulnerability/EEF-CVE-2026-47071), CC-BY-4.0, modified 2026-11-26
- NVD: [CVE-2026-47071](https://nvd.nist.gov/vuln/detail/CVE-2026-47071), Public domain, modified 2026-11-20

---

Page: https://cve.day/CVE-2026-47071 · Whole record: https://cve.day/CVE-2026-47071.json · Rebuilt by cve.day 2026-11-26T17:37:05.533Z
