Vulnerability
CVE-2025-25186
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.
73 advisories report this vulnerability, across 14 ecosystems.
Advisories
-
ALAS2023-2025-929
Amazon Linux 2023 - ALAS2023-2025-929: Medium priority package update for ruby3.2
-
ALSA-2025:10217
Moderate: ruby:3.3 security update
-
ALSA-2025:8131
Moderate: ruby security update
-
AZL-56555
CVE-2025-25186 affecting package ruby for versions less than 3.3.5-3
- CGA-3qfg-7gq3-j688
- CGA-3qx6-8mcc-cmq3
- CGA-3vc5-9xr7-x3f2
- CGA-453g-rhm2-pjv7
- CGA-4fpq-8q2q-r545
- CGA-4hqf-hqgp-76x8
- CGA-4qr2-5jh9-5h9w
- CGA-4w6v-qc35-crcx
- CGA-5g88-748h-x9fg
- CGA-5rj5-pr7j-745f
- CGA-5xf3-x5m6-66vp
- CGA-62qf-8vg7-25h7
- CGA-6f84-m86x-xhf3
- CGA-7373-c6j8-jh7h
- CGA-74rp-54g5-w8vj
- CGA-77pc-f2xx-qv3v
- CGA-8vv5-3crh-xm84
- CGA-9rgf-qgm5-99g6
- CGA-9w44-3mcf-vp4p
- CGA-f72h-48w9-r9r4
- CGA-f77v-8hmg-vcwr
- CGA-f7m6-837h-fqf2
- CGA-gg5v-38f9-m3r3
- CGA-ghqx-m4jr-77rh
- CGA-h28p-4m7h-cm2v
- CGA-hfmf-hxhc-4q9r
- CGA-hggj-prj6-vpj3
- CGA-hqxw-fg9r-wr9v
- CGA-hr8c-9f8v-jqp7
- CGA-j782-rxgr-rfjh
- CGA-jcpj-7872-6h6g
- CGA-jpj8-p4mw-79rp
- CGA-jvwc-2h6r-p7pv
- CGA-jxpj-p8h2-ggq8
- CGA-mmrm-39f9-3682
- CGA-mwrf-24cr-5vh8
- CGA-p7mg-hq2v-x33r
- CGA-p8g5-jx68-vgh4
- CGA-p9pm-3797-gxrq
- CGA-phfq-5789-39cq
- CGA-pwj6-5548-c4mm
- CGA-q6r8-8mx7-c876
- CGA-qv5p-r2p2-f333
- CGA-qv9p-94h2-r2vq
- CGA-r925-pfm6-hqg3
- CGA-vf4f-m48g-rrhf
- CGA-vg8g-5wp2-hcp7
- CGA-w5vw-hvx3-9w7h
- CGA-w7f8-4qxc-7jr5
- CGA-wvg6-gjmq-454q
- CGA-ww96-39hq-grg7
- CGA-x68f-5qjg-2g79
-
DEBIAN-CVE-2025-25186
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…
-
ELSA-2025-10217
ELSA-2025-10217: ruby:3.3 security update (MODERATE)
-
ELSA-2025-4493
ELSA-2025-4493: ruby:3.3 security update (MODERATE)
-
ELSA-2025-8131
ELSA-2025-8131: ruby security update (MODERATE)
-
GHSA-7fc5-f82f-cx69
Possible DoS by memory exhaustion in net-imap
-
OESA-2025-1195
ruby security update
-
OESA-2025-1196
ruby security update
-
RHSA-2025:10217
Red Hat Security Advisory: ruby:3.3 security update
-
RHSA-2025:4493
Red Hat Security Advisory: ruby:3.3 security update
-
RHSA-2025:8131
Red Hat Security Advisory: ruby security update
-
RHVEX-CVE-2025-25186
net-imap: Net::IMAP vulnerable to possible DoS by memory exhaustion
-
RLSA-2025:10217
Moderate: ruby:3.3 security update
-
RLSA-2025:4493
Moderate: ruby:3.3 security update
-
RLSA-2025:8131
Moderate: ruby security update
-
SUSEVEX-CVE-2025-25186
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…
-
UBUNTU-CVE-2025-25186
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…
-
USN-7418-1
ruby2.7, ruby3.0, ruby3.2, ruby3.3 vulnerabilities
References
- 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