CVE-2025-43857 — Vulnerability in net-imap — CVE Details
net-imap rubygem vulnerable to possible DoS by memory exhaustion
Summary
Advisory Timeline
- First published April 28, 2025 (532 days ago).
- Last revised September 10, 2026 — 500 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
gem install net-imap -v 0.5.7
gem install net-imap -v 0.3.9
gem install net-imap -v 0.2.5
gem install net-imap -v 0.4.20
After upgrading, run your dependency scanner again to confirm the vulnerability is resolved.
Affected Packages (4)
Affects 1 ecosystem: rubygems (1).
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 6.1 score means for each attack dimension.
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
References
- https://github.com/ruby/net-imap/security/advisories/GHSA-j3g3-5qv5-52mjWEB
- https://nvd.nist.gov/vuln/detail/CVE-2025-43857ADVISORY
- https://github.com/ruby/net-imap/pull/442WEB
- https://github.com/ruby/net-imap/pull/444WEB
- https://github.com/ruby/net-imap/pull/444/commits/0ae8576c1a90bcd9573f81bdad4b4b824642d105#diff-53721cb4d9c3fb86b95cc8476ca2df90968ad8c481645220c607034399151462WEB
- https://github.com/ruby/net-imap/pull/445WEB
- https://github.com/ruby/net-imap/pull/446WEB
- https://github.com/ruby/net-imap/pull/447WEB
- https://github.com/ruby/net-imapPACKAGE
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/net-imap/CVE-2025-43857.ymlWEB
Frequently Asked Questions
- What is CVE-2025-43857?
- net-imap rubygem vulnerable to possible DoS by memory exhaustion This vulnerability has been assigned a severity rating of MEDIUM (CVSS score: 6.1/10).
- How do I check if my project is affected by CVE-2025-43857?
- CVE-2025-43857 affects net-imap. Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2025-43857 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Exploitation requires specific conditions or has limited impact. Remediate within weeks.
Also Known As
Related CVEs
- CVE-2026-42246HIGH
net-imap vulnerable to STARTTLS stripping via invalid response timing
- CVE-2026-47242MEDIUM
Net::IMAP: Command Injection via ID command argument
- CVE-2026-42258MEDIUM
net-imap vulnerable to command Injection via unvalidated Symbol inputs
- CVE-2025-25186MEDIUM
Possible DoS by memory exhaustion in net-imap
- CVE-2026-42256MEDIUM
net-imap vulnerable to denial of service via high iteration count for `SCRAM-*` authentication
- CVE-2026-47240MEDIUM
Net::IMAP: Command Injection via non-synchronizing literal in "raw" argument
- CVE-2026-42257MEDIUM
net-imap vulnerable to command Injection via "raw" arguments to multiple commands
- CVE-2026-42245LOW
net-imap has quadratic complexity when reading response literals
Check if you're affected
Scan your dependencies to see if this vulnerability affects your projects.
Scan Your Dependencies