Not a U.S. government website. NDD is an independent vulnerability database by Volerion and is not affiliated with or endorsed by NIST or NVD.
VOLERION
Volerion Security Research

NOT DEFERRED DATABASE

VULNERABILITIES

CVE-2025-25186 Details

ANALYZED


This CVE record has been analyzed and enriched by NVDAPI.com as an independent party.

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.

Metrics

References to Advisories, Solutions, and Tools

By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.

Weakness Enumeration

CWE-IDCWE NameSource
CWE-1287Improper Validation of Specified Type of Input[email protected]
CWE-400Uncontrolled Resource Consumption[email protected]
CWE-405Asymmetric Resource Consumption (Amplification)[email protected]
CWE-409Improper Handling of Highly Compressed Data (Data Amplification)[email protected]
CWE-770Allocation of Resources Without Limits or Throttling[email protected]
CWE-789Memory Allocation with Excessive Size Value[email protected]

Affected Products

ProductVersions
ruby-net-imap
>= 0.3.2, < 0.3.8 (semver)
>= 0.4.0, < 0.4.19 (semver)
>= 0.5.0, < 0.5.6 (semver)

CPE

  • cpe:2.3:a:ruby-lang:net::imap:*:*:*:*:*:ruby:*:*

Remediation

  • Upgrade: 0.3.8moderate effort
  • Upgrade: 0.4.19moderate effort
  • Upgrade: 0.5.6moderate effort
  • Mitigation:low effort

    Set `Net::IMAP.config.parser_use_deprecated_uidplus_data` to `false` to disable the vulnerable UIDPlusData class. This will cause the client to use the AppendUIDData and CopyUIDData classes instead, which do not expand their UIDs into arrays of integers.

  • Mitigation:low effort

    Set `Net::IMAP.config.parser_max_deprecated_uidplus_data_size` to a value less than or equal to 10,000. This will cause the client to raise a `Net::IMAP::ResponseParseError` for larger UIDPlusData sets.

Change History

3 change records found show changes


QUICK INFO

CVE Dictionary Entry:
CVE-2025-25186
NVD Published Date:
Feb 10, 2025
NVD Last Modified:
Jun 17, 2026
Source:
[email protected]