VDB

CVE-2025-25186

CVE-2025-25186 PUBLISHED CVSS 6.5 MEDIUM

Net::IMAP vulnerable to possible DoS by memory exhaustion

Reported by github_m · Published February 10, 2025

net-imap is fixed in 0.5.6, 0.4.19 and 0.3.8 (RubyGems)

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.

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
net-imapRubyGems0.5.6, 0.4.19, 0.3.8
logstash-jre-bcfipsChainguard8.17.3-r0
ruby3.2-rubygem-bundlerAmazon Linux2.4.19-183.amzn2023.0.4
ruby3.2-rubygem-rbsAmazon Linux2.8.2-183.amzn2023.0.4
ruby3.2-rubygem-rakeAmazon Linux13.0.6-183.amzn2023.0.4
ruby3.2-rails-7.2Chainguard7.2.2.1-r2
ruby3.2-rubygem-io-consoleAmazon Linux0.6.0-183.amzn2023.0.4
ruby3.2-rubygem-jsonAmazon Linux2.6.3-183.amzn2023.0.4
ruby3.4-rails-7.2Chainguard7.2.2.1-r2
ruby3.2-rubygem-bigdecimalAmazon Linux3.1.3-183.amzn2023.0.4
ruby3.4-net-imapChainguard0.5.6-r0
ruby3.2-default-gemsAmazon Linux3.2.7-183.amzn2023.0.4

27 more packages have a fixed version. See every fix in Lookup.

Risk scores

CVSS 3.1
6.5
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H

Affected products

VendorProductVersions
rubynet-imap>= 0.3.2, < 0.3.8, >= 0.4.0, < 0.4.19, >= 0.5.0, < 0.5.6
chainguardlogstash-jre-bcfips0
amazon:2023ruby3.2-rubygem-bundler0
amazon:2023ruby3.2-rubygem-rbs0
amazon:2023ruby3.2-rubygem-rake0
chainguardruby3.2-rails-7.20
amazon:2023ruby3.2-rubygem-io-console0
amazon:2023ruby3.2-rubygem-json0
chainguardruby3.4-rails-7.20
amazon:2023ruby3.2-rubygem-bigdecimal0
chainguardruby3.4-net-imap0
amazon:2023ruby3.2-default-gems0
amazon:2023ruby3.2-rubygem-psych0
wolfiruby3.4-net-imap0
amazon:2023ruby3.2-rubygem-rdoc0
wolfiruby3.3-rails-8.00
wolfiruby3.2-rails-8.00
amazon:2023ruby3.2-bundled-gems0
chainguardruby3.4-rails-7.10
amazon:2023ruby3.2-rubygem-test-unit0

…and 29 more

Timeline

  • Feb 10, 2025 CVE Published
  • Feb 11, 2025 EPSS Score (30 in total, the first dated here)
  • Feb 12, 2025 CVE Updated
  • May 13, 2026 Security Advisory
  • Jun 16, 2026 Coalition ESS Score

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2025-25186
vulnetix vdb fixes CVE-2025-25186

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2025-25186/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›