CVE-2025-25186
February 10, 2025
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 Packages
net-imap (RUBY):
Affected version(s) >=0.4.0 <0.4.19Fix Suggestion:
Update to version 0.4.19net-imap (RUBY):
Affected version(s) >=0.3.2 <0.3.8Fix Suggestion:
Update to version 0.3.8net-imap (RUBY):
Affected version(s) >=0.5.0 <0.5.6Fix Suggestion:
Update to version 0.5.6Related ResourcesĀ (10)
Do you need more information?
Contact UsCVSS v4
Base Score:
7.1
Attack Vector
NETWORK
Attack Complexity
LOW
Attack Requirements
NONE
Privileges Required
NONE
User Interaction
PASSIVE
Vulnerable System Confidentiality
NONE
Vulnerable System Integrity
NONE
Vulnerable System Availability
HIGH
Subsequent System Confidentiality
NONE
Subsequent System Integrity
NONE
Subsequent System Availability
NONE
CVSS v3
Base Score:
6.5
Attack Vector
NETWORK
Attack Complexity
LOW
Privileges Required
NONE
User Interaction
REQUIRED
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
Weakness Type (CWE)
Improper Handling of Highly Compressed Data (Data Amplification)
Improper Validation of Specified Type of Input
Memory Allocation with Excessive Size Value
Asymmetric Resource Consumption (Amplification)
Uncontrolled Resource Consumption
Allocation of Resources Without Limits or Throttling
EPSS
Base Score:
0.14