Red Hat VEX
RHVEX-CVE-2025-25186
net-imap: Net::IMAP vulnerable to possible DoS by memory exhaustion
Details
A flaw was found in Ruby's net-imap library. In certain versions, there is a possibility for denial of service by memory exhaustion in the net-imap response parser. At any time while the client is connected, a malicious server can send highly compressed uid-set data, which is automatically read by the client's receiver thread. The response parser converts the uid-set data into arrays of integers with no limitation on the expanded size of the ranges, which can trigger memory exhaustion.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| Red Hat:enterprise_linux:10 | flatpak-sdk | All versions, no fix yet |
| Red Hat:enterprise_linux:6 | ruby | All versions, no fix (out of support scope) |
| Red Hat:enterprise_linux:6 | ruby-devel | All versions, no fix (out of support scope) |
| Red Hat:enterprise_linux:6 | ruby-docs | All versions, no fix (out of support scope) |
| Red Hat:enterprise_linux:6 | ruby-irb | All versions, no fix (out of support scope) |
| Red Hat:enterprise_linux:6 | ruby-libs | All versions, no fix (out of support scope) |
| Red Hat:enterprise_linux:6 | ruby-rdoc | All versions, no fix (out of support scope) |
| Red Hat:enterprise_linux:6 | ruby-ri | All versions, no fix (out of support scope) |
| Red Hat:enterprise_linux:6 | ruby-static | All versions, no fix (out of support scope) |
| Red Hat:enterprise_linux:6 | ruby-tcltk | All versions, no fix (out of support scope) |
| Red Hat:enterprise_linux:7 | ruby | All versions, no fix (out of support scope) |
| Red Hat:enterprise_linux:7 | ruby-devel | All versions, no fix (out of support scope) |
| Red Hat:enterprise_linux:7 | ruby-doc | All versions, no fix (out of support scope) |
| Red Hat:enterprise_linux:7 | ruby-irb | All versions, no fix (out of support scope) |
| Red Hat:enterprise_linux:7 | ruby-libs | All versions, no fix (out of support scope) |
| Red Hat:enterprise_linux:7 | ruby-tcltk | All versions, no fix (out of support scope) |
| Red Hat:enterprise_linux:7 | rubygem-bigdecimal | All versions, no fix (out of support scope) |
| Red Hat:enterprise_linux:7 | rubygem-io-console | All versions, no fix (out of support scope) |
| Red Hat:enterprise_linux:7 | rubygem-json | All versions, no fix (out of support scope) |
| Red Hat:enterprise_linux:7 | rubygem-minitest | All versions, no fix (out of support scope) |
| Red Hat:enterprise_linux:7 | rubygem-psych | All versions, no fix (out of support scope) |
| Red Hat:enterprise_linux:7 | rubygem-rake | All versions, no fix (out of support scope) |
| Red Hat:enterprise_linux:7 | rubygem-rdoc | All versions, no fix (out of support scope) |
| Red Hat:enterprise_linux:7 | rubygems | All versions, no fix (out of support scope) |
| Red Hat:enterprise_linux:7 | rubygems-devel | All versions, no fix (out of support scope) |
| Red Hat:enterprise_linux:8 | ruby | All versions, no fix (out of support scope) |
| Red Hat:enterprise_linux:8 | ruby-bundled-gems | All versions, no fix (out of support scope) |
| Red Hat:enterprise_linux:8 | ruby-default-gems | All versions, no fix (out of support scope) |
| Red Hat:enterprise_linux:8 | ruby-devel | All versions, no fix (out of support scope) |
| Red Hat:enterprise_linux:8 | ruby-doc | All versions, no fix (out of support scope) |
| Red Hat:enterprise_linux:8 | ruby-irb | All versions, no fix (out of support scope) |
| Red Hat:enterprise_linux:8 | ruby-libs | All versions, no fix (out of support scope) |
| Red Hat:enterprise_linux:8 | rubygem-abrt | All versions, no fix (out of support scope) |
| Red Hat:enterprise_linux:8 | rubygem-abrt-doc | All versions, no fix (out of support scope) |
| Red Hat:enterprise_linux:8 | rubygem-bigdecimal | All versions, no fix (out of support scope) |
| Red Hat:enterprise_linux:8 | rubygem-bson | All versions, no fix (out of support scope) |
| Red Hat:enterprise_linux:8 | rubygem-bson-doc | All versions, no fix (out of support scope) |
| Red Hat:enterprise_linux:8 | rubygem-bundler | All versions, no fix (out of support scope) |
| Red Hat:enterprise_linux:8 | rubygem-bundler-doc | All versions, no fix (out of support scope) |
| Red Hat:enterprise_linux:8 | rubygem-did_you_mean | All versions, no fix (out of support scope) |
| Red Hat:enterprise_linux:8 | rubygem-io-console | All versions, no fix (out of support scope) |
| Red Hat:enterprise_linux:8 | rubygem-irb | All versions, no fix (out of support scope) |
| Red Hat:enterprise_linux:8 | rubygem-json | All versions, no fix (out of support scope) |
| Red Hat:enterprise_linux:8 | rubygem-minitest | All versions, no fix (out of support scope) |
| Red Hat:enterprise_linux:8 | rubygem-mongo | All versions, no fix (out of support scope) |
| Red Hat:enterprise_linux:8 | rubygem-mongo-doc | All versions, no fix (out of support scope) |
| Red Hat:enterprise_linux:8 | rubygem-mysql2 | All versions, no fix (out of support scope) |
| Red Hat:enterprise_linux:8 | rubygem-mysql2-doc | All versions, no fix (out of support scope) |
| Red Hat:enterprise_linux:8 | rubygem-net-telnet | All versions, no fix (out of support scope) |
| Red Hat:enterprise_linux:8 | rubygem-openssl | All versions, no fix (out of support scope) |
| Red Hat:enterprise_linux:8 | rubygem-pg | All versions, no fix (out of support scope) |
| Red Hat:enterprise_linux:8 | rubygem-pg-doc | All versions, no fix (out of support scope) |
| Red Hat:enterprise_linux:8 | rubygem-power_assert | All versions, no fix (out of support scope) |
| Red Hat:enterprise_linux:8 | rubygem-psych | All versions, no fix (out of support scope) |
| Red Hat:enterprise_linux:8 | rubygem-racc | All versions, no fix (out of support scope) |
| Red Hat:enterprise_linux:8 | rubygem-rake | All versions, no fix (out of support scope) |
| Red Hat:enterprise_linux:8 | rubygem-rbs | All versions, no fix (out of support scope) |
| Red Hat:enterprise_linux:8 | rubygem-rdoc | All versions, no fix (out of support scope) |
| Red Hat:enterprise_linux:8 | rubygem-rexml | All versions, no fix (out of support scope) |
| Red Hat:enterprise_linux:8 | rubygem-rss | All versions, no fix (out of support scope) |
| Red Hat:enterprise_linux:8 | rubygem-test-unit | All versions, no fix (out of support scope) |
| Red Hat:enterprise_linux:8 | rubygem-typeprof | All versions, no fix (out of support scope) |
| Red Hat:enterprise_linux:8 | rubygem-xmlrpc | All versions, no fix (out of support scope) |
| Red Hat:enterprise_linux:8 | rubygems | All versions, no fix (out of support scope) |
| Red Hat:enterprise_linux:8 | rubygems-devel | All versions, no fix (out of support scope) |
| Red Hat:enterprise_linux:9 | ruby-33 | All versions, no fix yet |
References
- https://access.redhat.com/security/cve/CVE-2025-25186
- https://bugzilla.redhat.com/show_bug.cgi?id=2344680
- https://www.cve.org/CVERecord?id=CVE-2025-25186
- https://nvd.nist.gov/vuln/detail/CVE-2025-25186
- https://github.com/ruby/net-imap/commit/70e3ddd071a94e450b3238570af482c296380b35
- https://github.com/ruby/net-imap/commit/c8c5a643739d2669f0c9a6bb9770d0c045fd74a3
- https://github.com/ruby/net-imap/commit/cb92191b1ddce2d978d01b56a0883b6ecf0b1022
- https://github.com/ruby/net-imap/security/advisories/GHSA-7fc5-f82f-cx69