{"id":"CVE-2026-47071","published":"2026-05-25T14:00:41Z","modified":"2026-11-20T08:04:14Z","title":"SOCKS5 TLS upgrade ignores caller timeout in hackney","vendor":"benoitc","product":"hackney","tier":"tail","description":{"text":"Uncontrolled Resource Consumption vulnerability in benoitc hackney allows Flooding.\n\nThe 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.\n\nThis issue affects hackney: from 0.8.1 before 4.0.1.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.2,"severity":"HIGH","version":"4.0","vector":"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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00753,"percentile":0.55981,"provenance":"source"},"cwes":[{"id":"CWE-400","name":"Uncontrolled Resource Consumption"}],"references":[{"url":"https://github.com/benoitc/hackney/security/advisories/GHSA-gp9c-pm5m-5cxr","tags":["vendor-advisory","related"]},{"url":"https://cna.erlef.org/cves/CVE-2026-47071.html","tags":["related"]},{"url":"https://osv.dev/vulnerability/EEF-CVE-2026-47071","tags":["related"]},{"url":"https://github.com/benoitc/hackney/commit/34cdbd1d20a282aacc286a89327465a3925b4c5d","tags":["related"]},{"url":"https://github.com/benoitc/hackney/commit/5ccdab725c561a6f03d05a51f2d0664f98236dae","tags":["patch"]}],"priority":{"score":16.9,"factors":[{"name":"EPSS percentile","points":11.2},{"name":"CVSS severity","points":5.74}]},"vendorSlug":"benoitc","affectedVersions":[{"vendor":"benoitc","product":"hackney","versions":[">= 0.8.1, < 4.0.1"]},{"vendor":"benoitc","product":"hackney","versions":[">= 34cdbd1d20a282aacc286a89327465a3925b4c5d, < 5ccdab725c561a6f03d05a51f2d0664f98236dae"]}],"capec":[{"id":"CAPEC-130","name":"Excessive Allocation"}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"partial","timestamp":"2026-05-26T15:48:41.704626Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Hex","package":"hackney","vulnerableRanges":[">=0.10.0, <4.0.1"],"patched":["4.0.1"],"from":["GHSA-gp9c-pm5m-5cxr"],"provenance":"source"}],"summary":{"text":"The hackney Erlang HTTP client's SOCKS5 transport (src/hackney_socks5.erl) fails to forward the caller-supplied timeout when upgrading the connection to TLS, so the TLS connect step uses an infinite default and ignores connect_timeout and recv_timeout. An attacker operating a SOCKS5 proxy that the client connects through can, over the network and without authentication, complete the SOCKS5 handshake and then stall (or send a partial TLS ServerHello), blocking the connecting process indefinitely; this requires only that the victim's connection be routed through the attacker-controlled proxy.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T20:50:14Z"},"euvd":{"id":"EUVD-2026-31685","exploited":false,"provenance":"source"}}