CVE-2025-25186 Net::IMAP vulnerable to possible DoS by memory exhaustion
- Published
- Updated
- Exploit status
- Proof-of-concept only
- CISA SSVC
- Proof of concept public · automatable: no · technical impact: partial
- Technology
- UbuntuDebian
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.
Upgrade path
7 packages: 5 fixed, 1 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| debian/ruby3.1(Debian 12) | = 3.1.2-7; = 3.1.2-7+deb12u1; = 3.1.2-7+hurd.1; = 3.1.2-8 +7 more | No fix listed | No fix yet |
| azure linux ruby(Azure Linux 3.0) | < 3.3.5-2 | 3.3.5-2 | Fixed |
| debian/ruby3.3(Debian 13) | < 3.3.8-1 | 3.3.8-1 | Fixed |
| debian/ruby3.3(Debian 14) | < 3.3.8-1 | 3.3.8-1 | Fixed |
| rubygems net-imap(RubyGems) | = 0.3.2; = 0.3.3; = 0.3.4; = 0.3.4.1 +32 more | 0.3.8, 0.4.19, 0.5.6 | Fixed |
| ubuntu/ruby3.2(Ubuntu 24.04) | < 3.2.3-1ubuntu0.24.04.5 | 3.2.3-1ubuntu0.24.04.5 | Fixed |
| ruby net-imap | = >= 0.3.2, < 0.3.8; = >= 0.4.0, < 0.4.19; = >= 0.5.0, < 0.5.6 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| azure linux ruby(Azure Linux:3.0) | < 3.3.5-2 | 3.3.5-2 |
| rubygems net-imap(RubyGems) | >= 0.3.2, < 0.3.8 | 0.3.8 |
| rubygems net-imap(RubyGems) | = 0.3.2 | No fix listed |
| rubygems net-imap(RubyGems) | = 0.3.3 | No fix listed |
| rubygems net-imap(RubyGems) | = 0.3.4 | No fix listed |
| rubygems net-imap(RubyGems) | = 0.3.4.1 | No fix listed |
| rubygems net-imap(RubyGems) | = 0.3.5 | No fix listed |
| rubygems net-imap(RubyGems) | = 0.3.6 | No fix listed |
| rubygems net-imap(RubyGems) | = 0.3.7 | No fix listed |
| rubygems net-imap(RubyGems) | >= 0.4.0, < 0.4.19 | 0.4.19 |
| rubygems net-imap(RubyGems) | = 0.4.0 | No fix listed |
| rubygems net-imap(RubyGems) | = 0.4.1 | No fix listed |
| rubygems net-imap(RubyGems) | = 0.4.10 | No fix listed |
| rubygems net-imap(RubyGems) | = 0.4.11 | No fix listed |
| rubygems net-imap(RubyGems) | = 0.4.12 | No fix listed |
| rubygems net-imap(RubyGems) | = 0.4.13 | No fix listed |
| rubygems net-imap(RubyGems) | = 0.4.14 | No fix listed |
| rubygems net-imap(RubyGems) | = 0.4.15 | No fix listed |
| rubygems net-imap(RubyGems) | = 0.4.16 | No fix listed |
| rubygems net-imap(RubyGems) | = 0.4.17 | No fix listed |
| rubygems net-imap(RubyGems) | = 0.4.18 | No fix listed |
| rubygems net-imap(RubyGems) | = 0.4.2 | No fix listed |
| rubygems net-imap(RubyGems) | = 0.4.3 | No fix listed |
| rubygems net-imap(RubyGems) | = 0.4.4 | No fix listed |
| rubygems net-imap(RubyGems) | = 0.4.5 | No fix listed |
Show 29 more
| Product | Affected versions | Fixed in |
|---|---|---|
| rubygems net-imap(RubyGems) | = 0.4.6 | No fix listed |
| rubygems net-imap(RubyGems) | = 0.4.7 | No fix listed |
| rubygems net-imap(RubyGems) | = 0.4.8 | No fix listed |
| rubygems net-imap(RubyGems) | = 0.4.9 | No fix listed |
| rubygems net-imap(RubyGems) | = 0.4.9.1 | No fix listed |
| rubygems net-imap(RubyGems) | >= 0.5.0, < 0.5.6 | 0.5.6 |
| rubygems net-imap(RubyGems) | = 0.5.0 | No fix listed |
| rubygems net-imap(RubyGems) | = 0.5.1 | No fix listed |
| rubygems net-imap(RubyGems) | = 0.5.2 | No fix listed |
| rubygems net-imap(RubyGems) | = 0.5.3 | No fix listed |
| rubygems net-imap(RubyGems) | = 0.5.4 | No fix listed |
| rubygems net-imap(RubyGems) | = 0.5.5 | No fix listed |
| ruby net-imap | = >= 0.3.2, < 0.3.8 | No fix listed |
| ruby net-imap | = >= 0.4.0, < 0.4.19 | No fix listed |
| ruby net-imap | = >= 0.5.0, < 0.5.6 | No fix listed |
| ubuntu/ruby3.2(Ubuntu:24.04) | < 3.2.3-1ubuntu0.24.04.5 | 3.2.3-1ubuntu0.24.04.5 |
| debian/ruby3.1(Debian:12) | All versions | No fix listed |
| debian/ruby3.1(Debian:12) | = 3.1.2-7 | No fix listed |
| debian/ruby3.1(Debian:12) | = 3.1.2-7+deb12u1 | No fix listed |
| debian/ruby3.1(Debian:12) | = 3.1.2-7+hurd.1 | No fix listed |
| debian/ruby3.1(Debian:12) | = 3.1.2-8 | No fix listed |
| debian/ruby3.1(Debian:12) | = 3.1.2-8.1~exp1 | No fix listed |
| debian/ruby3.1(Debian:12) | = 3.1.2-8.3 | No fix listed |
| debian/ruby3.1(Debian:12) | = 3.1.2-8.4 | No fix listed |
| debian/ruby3.1(Debian:12) | = 3.1.2-8.5 | No fix listed |
| debian/ruby3.1(Debian:12) | = 3.1.7+really3.1.2-0+deb12u1 | No fix listed |
| debian/ruby3.1(Debian:12) | = 3.1.7-1~deb12u2 | No fix listed |
| debian/ruby3.3(Debian:13) | < 3.3.8-1 | 3.3.8-1 |
| debian/ruby3.3(Debian:14) | < 3.3.8-1 | 3.3.8-1 |
References
- MSRC Security Update Guide vendor-advisory
- CBL-Mariner Releases vendor-advisory
- https://github.com/ruby/net-imap/security/advisories/GHSA-7fc5-f82f-cx69 vendor-advisory
- nvd.nist.gov third-party-advisory vendor-advisory
- https://github.com/ruby/net-imap/commit/70e3ddd071a94e450b3238570af482c296380b35 patch
- https://github.com/ruby/net-imap/commit/c8c5a643739d2669f0c9a6bb9770d0c045fd74a3 patch
- https://github.com/ruby/net-imap/commit/cb92191b1ddce2d978d01b56a0883b6ecf0b1022 patch
- github.com product
- github.com exploit
- ruby.github.io
- ruby.github.io
- ruby.github.io
- Debian Security Tracker CVE-2025-25186 vendor-advisory
- github.com
- Ubuntu CVE tracker vendor-advisory
- USN-7418-1 vendor-advisory
- www.cve.org
- bugs.debian.org issue-tracking