製品・ソフトウェアに関する情報
benoitcのhackneyにおけるリソースの枯渇に関する脆弱性
Title benoitcのhackneyにおけるリソースの枯渇に関する脆弱性
Summary

benoitc hackneyにおける制御されていないリソース消費の脆弱性により、フラッディングが可能となります。src/hackney_socks5.erlのSOCKS5トランスポートは、呼び出し元が指定したタイムアウトをSOCKS5交渉フェーズに正しく適用しますが、その後、ssl:connect/2の2引数形式を使用して接続をTLSにアップグレードします。これはデフォルトで無限タイムアウトとなります。Timeout値は呼び出し位置でスコープ内にありますが、転送されません。敵対的なSOCKS5プロキシが正常にSOCKS5ハンドシェイクを完了した後に黙り込む(または部分的なTLS ServerHelloを送信して停止する)と、接続プロセスは呼び出し元から渡されたconnect_timeoutやrecv_timeoutオプションに関わらず無期限にブロックされます。この問題はhackneyの0.10.0から4.0.1未満のバージョンに影響を与えます。

Possible impacts ・当該ソフトウェアが扱う情報について、外部への漏えいは発生しません。 ・当該ソフトウェアが扱う情報について、書き換えは発生しません。 ・当該ソフトウェアが完全に停止する可能性があります。 
Solution

ベンダ情報を参照して適切な対策を実施してください。

Publication Date May 25, 2026, midnight
Registration Date May 29, 2026, 11:19 a.m.
Last Update May 29, 2026, 11:19 a.m.
CVSS3.0 : 重要
Score 7.5
Vector CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Affected System
benoitc
hackney 0.10.0 以上 4.0.1 未満
CVE (情報セキュリティ 共通脆弱性識別子)
CWE (共通脆弱性タイプ一覧)
ベンダー情報
その他
Change Log
No Changed Details Date of change
1 [2026年05月29日]
  掲載
May 29, 2026, 11:19 a.m.

NVD Vulnerability Information
CVE-2026-47071
Summary

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.

Publication Date May 26, 2026, 12:16 a.m.
Registration Date May 27, 2026, 4:07 a.m.
Last Update May 27, 2026, 10:56 p.m.
Affected software configurations
Configuration1 or higher or less more than less than
cpe:2.3:a:benoitc:hackney:*:*:*:*:*:*:*:* 0.10.0 4.0.1
Related information, measures and tools
Common Vulnerabilities List