CVE-2025-25186: ruby net-imap Uncontrolled Resource Consumption
Vulnerability summary
CVE-2025-25186 is a medium (CVSS 6.5) Uncontrolled Resource Consumption vulnerability in ruby net-imap. EPSS estimates a 0.63% chance of exploitation in the next 30 days, higher than 49% of scored vulnerabilities.
Advisory lineage
Upstream 0 · Downstream 5 · Related 11Timeline
- 10-02-2025PublishedVulnerability first disclosed.
- 12-02-2025Last modifiedVulnerability information updated.
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.
CVSS metrics
8 scores · 7 sources · 2 versions- OSV · UbuntuEcosystem advisory · calculated6.5MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
- OSV · DebianEcosystem advisory · calculated6.5MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
- OSV · WolfiEcosystem advisory · calculated6.5MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
- OSV · ChainguardEcosystem advisory · calculated6.5MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
- OSV · RubygemsEcosystem advisory · calculated6.5MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
- NVDNIST6.5MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
EPSS trend
Probability
0.63%
Chance of exploitation in the next 30 days
Percentile
49%
Versus all other CVEs
30-day change
0.00 pp
From 0.63% on 19-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root cause- CWE-400Uncontrolled Resource ConsumptionThe product does not properly control the allocation and maintenance of a limited resource.
- CWE-405Asymmetric Resource Consumption (Amplification)The product does not properly control situations in which an adversary can cause the product to consume or produce excessive resources without requiring the adversary to invest equivalent work or otherwise prove authorization, i.e., the adversary's influence is "asymmetric."
- CWE-409Improper Handling of Highly Compressed Data (Data Amplification)The product does not handle or incorrectly handles a compressed input with a very high compression ratio that produces a large output.
- CWE-770Allocation of Resources Without Limits or ThrottlingThe product allocates a reusable resource or group of resources on behalf of an actor without imposing any intended restrictions on the size or number of resources that can be allocated.
- CWE-789Memory Allocation with Excessive Size ValueThe product allocates memory based on an untrusted, large size value, but it does not ensure that the size is within expected limits, allowing arbitrary amounts of memory to be allocated.
- CWE-1287Improper Validation of Specified Type of InputThe product receives input that is expected to be of a certain type, but it does not validate or incorrectly validates that the input is actually of the expected type.
Affected systems
Chainguard26 products
- kube-fluentd-operator< 1.18.2-r23
- kube-fluentd-operator-compat< 1.18.2-r23
- kube-fluentd-operator-default-config< 1.18.2-r23
- kube-fluentd-operator-oci-entrypoint< 1.18.2-r23
- logstash-8-with-output-opensearch< 8.17.2-r1
Wolfi8 products
- kube-fluentd-operator< 1.18.2-r23
- kube-fluentd-operator-compat< 1.18.2-r23
- kube-fluentd-operator-default-config< 1.18.2-r23
- kube-fluentd-operator-oci-entrypoint< 1.18.2-r23
- logstash-8-with-output-opensearch< 8.17.2-r1
Debian2 products
- ruby3.1All versions (No fix recorded)
- ruby3.3< 3.3.8-1
Ruby1 product
- net-imap≥ 0.3.2, < 0.3.8 | ≥ 0.4.0, < 0.4.19 | ≥ 0.5.0, < 0.5.6
RubyGems1 product
- net-imap≥ 0.3.2, < 0.3.8 | ≥ 0.4.0, < 0.4.19 | ≥ 0.5.0, < 0.5.6
Ubuntu1 product
- ruby3.2< 3.2.3-1ubuntu0.24.04.5
6 vendors · 39 products
References
15 links- github.com/ruby/net-imap/security/advisories/GHSA-7fc5-f82f-cx69X Refsource CONFIRMREPORTAdvisoryWEB