CVE-2025-25186
net-imap: Net::IMAP vulnerable to possible DoS by memory exhaustion
Severity
ModerateRed Hat Product Security
CVSS 3.1
Review impact separately from score.
Published · February 11, 2025
Updated · September 17, 2026
Description
A flaw was found in Ruby's net-imap library. In certain versions, there is a possibility for denial of service by memory exhaustion in the net-imap response parser. At any time while the client is connected, a malicious server can send highly compressed uid-set data, which is automatically read by the client's receiver thread. The response parser converts the uid-set data into arrays of integers with no limitation on the expanded size of the ranges, which can trigger memory exhaustion.
CVSS score applicability
The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.
Mitigation
No mitigation is specified in collected source.
CVSS / CWE
CVSS 3.1 · 6.5CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
CWE-770 · Allocation of Resources Without Limits or Throttling