NVD Vulnerability Detail
Search Exploit, PoC
CVE-2025-43857
Summary

Net::IMAP implements Internet Message Access Protocol (IMAP) client functionality in Ruby. Prior to versions 0.5.7, 0.4.20, 0.3.9, and 0.2.5, there is a possibility for denial of service by memory exhaustion when net-imap reads server responses. At any time while the client is connected, a malicious server can send can send a "literal" byte count, which is automatically read by the client's receiver thread. The response reader immediately allocates memory for the number of bytes indicated by the server response. This should not be an issue when securely connecting to trusted IMAP servers that are well-behaved. It can affect insecure connections and buggy, untrusted, or compromised servers (for example, connecting to a user supplied hostname). This issue has been patched in versions 0.5.7, 0.4.20, 0.3.9, and 0.2.5.

Publication Date April 29, 2025, 1:15 a.m.
Registration Date April 29, 2025, 4 a.m.
Last Update April 29, 2025, 1:15 a.m.
Related information, measures and tools
Common Vulnerabilities List

JVN Vulnerability Information
Ruby-lang.org の Ruby 用 Net::IMAP におけるリソースの枯渇に関する脆弱性
Title Ruby-lang.org の Ruby 用 Net::IMAP におけるリソースの枯渇に関する脆弱性
Summary

Ruby-lang.org の Ruby 用 Net::IMAP には、リソースの枯渇に関する脆弱性、非対称のリソース消費に関する脆弱性、制限またはスロットリング無しのリソースの割り当てに関する脆弱性が存在します。

Possible impacts サービス運用妨害 (DoS) 状態にされる可能性があります。
Solution

ベンダアドバイザリまたはパッチ情報が公開されています。参考情報を参照して適切な対策を実施してください。

Publication Date April 28, 2025, midnight
Registration Date May 21, 2025, 5:58 p.m.
Last Update May 21, 2025, 5:58 p.m.
Affected System
Ruby-lang.org
Net::IMAP 0.2.5 未満
Net::IMAP 0.3.0 以上 0.3.9 未満
Net::IMAP 0.4.0 以上 0.4.20 未満
Net::IMAP 0.5.0 以上 0.5.7 未満
CVE (情報セキュリティ 共通脆弱性識別子)
CWE (共通脆弱性タイプ一覧)
その他
Change Log
No Changed Details Date of change
1 [2025年05月21日]
  掲載
May 21, 2025, 5:58 p.m.