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.
{
"$schema": "https://cna.erlef.org/schemas/osv/record-0.1.0.json",
"capec_ids": [
"CAPEC-130"
],
"cpe_ids": [
"cpe:2.3:a:benoitc:hackney:*:*:*:*:*:*:*:*"
],
"cwe_ids": [
"CWE-400"
]
}{
"$schema": "https://cna.erlef.org/schemas/osv/affected-0.1.0.json",
"modules": [
"hackney_socks5"
],
"program_files": [
"src/hackney_socks5.erl",
"src/socket/hackney_socks5.erl",
"src/hackney_connect/hackney_socks5.erl"
],
"program_routines": [
"hackney_socks5:connect/4"
]
}
"https://cna.erlef.org/schemas/osv/affected-0.1.0.json"
[
"hackney_socks5"
]
[
"src/hackney_socks5.erl",
"src/socket/hackney_socks5.erl",
"src/hackney_connect/hackney_socks5.erl"
]
[
"hackney_socks5:connect/4"
]
"https://cna.erlef.org/osv/EEF-CVE-2026-47071.json"
"https://cna.erlef.org/schemas/osv/affected-0.1.0.json"
[
"hackney_socks5"
]
[
"src/hackney_socks5.erl",
"src/socket/hackney_socks5.erl",
"src/hackney_connect/hackney_socks5.erl"
]
[
"hackney_socks5:connect/4"
]
"https://cna.erlef.org/osv/EEF-CVE-2026-47071.json"