CVE-2025-25186
Net::IMAP vulnerable to possible DoS by memory exhaustion
Also known as GHSA-7fc5-f82f-cx69
Mitigation
- Upgrade net-imap to one of 0.3.8, 0.4.19, 0.5.6 (or later in the same release line).
Who should check
- Projects that depend on RubyGems package net-imap (>= 0.3.2, < 0.3.8)
- Anyone running ruby net-imap >= 0.3.2, < 0.3.8; >= 0.4.0, < 0.4.19; >= 0.5.0, < 0.5.6
Vulnerability facts
- Affected
- net-imap >= 0.3.2, < 0.3.8
- Fixed in
- 0.3.8, 0.4.19, 0.5.6
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Remote, no login needed
- CVSS
- 6.5 (v3.1, CNA)CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Network
- Attack complexity: Low
- Privileges required: None
- User interaction: Required
- Scope: Unchanged
- Confidentiality impact: None
- Integrity impact: None
- Availability impact: High
- EPSS
- 0.94% chance of exploitation in 30 days (percentile 59, 2026-11-26)
- CWE
- CWE-400, CWE-405, CWE-409, CWE-770, CWE-789, CWE-1287
- Modified
Description
Net::IMAP implements Internet Message Access Protocol (IMAP) client functionality in Ruby. Starting in version 0.3.2 and prior to versions 0.3.8, 0.4.19, and 0.5.6, there is a possibility for denial of service by memory exhaustion in `net-imap`'s response parser. At any time while the client is connected, a malicious server can send can send highly compressed `uid-set` data which is automatically read by the client's receiver thread. The response parser uses `Range#to_a` to convert the `uid-set` data into arrays of integers, with no limitation on the expanded size of the ranges. Versions 0.3.8, 0.4.19, 0.5.6, and higher fix this issue. Additional details for proper configuration of fixed versions and backward compatibility are available in the GitHub Security Advisory.
Affected and fixed versions
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2025-25186. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2025-25186.md Affected: net-imap >= 0.3.2, < 0.3.8 Fixed in: 0.3.8, 0.4.19, 0.5.6 Steps: 1. Search this machine and project for net-imap (RubyGems), ruby net-imap: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Vendor advisories
Patches
FAQ
Is CVE-2025-25186 being exploited?
There is no confirmed exploitation: CVE-2025-25186 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.94% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2025-25186?
Medium: CVSS 6.5 (v3.1, scored by CNA). Remote, no login needed. A user has to take an action, such as opening a link, for the attack to work.
Which versions are affected by CVE-2025-25186?
net-imap >= 0.3.2, < 0.3.8.
Is there a fix for CVE-2025-25186?
Yes. Fixed in 0.3.8, 0.4.19, 0.5.6. Upgrade net-imap to one of 0.3.8, 0.4.19, 0.5.6 (or later in the same release line).
How do I check if I'm affected by CVE-2025-25186?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.