# CVE-2025-25186: Net::IMAP vulnerable to possible DoS by memory exhaustion

- Priority: **Routine**
- Reason: Not severe (CVSS 6.5, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2025-02-10 · Modified: 2025-02-12
- Aliases: UBUNTU-CVE-2025-25186, DEBIAN-CVE-2025-25186, CGA-3qfg-7gq3-j688, CGA-3qx6-8mcc-cmq3, CGA-4hqf-hqgp-76x8, CGA-62qf-8vg7-25h7, CGA-7373-c6j8-jh7h, CGA-8vv5-3crh-xm84, CGA-f77v-8hmg-vcwr, CGA-hfmf-hxhc-4q9r, CGA-hr8c-9f8v-jqp7, CGA-jpj8-p4mw-79rp, CGA-mmrm-39f9-3682, CGA-r925-pfm6-hqg3, CGA-vf4f-m48g-rrhf, CGA-vg8g-5wp2-hcp7, CGA-w5vw-hvx3-9w7h, CGA-ww96-39hq-grg7, CGA-3vc5-9xr7-x3f2, CGA-453g-rhm2-pjv7, CGA-4fpq-8q2q-r545, CGA-4qr2-5jh9-5h9w, CGA-4w6v-qc35-crcx, CGA-5g88-748h-x9fg, CGA-5rj5-pr7j-745f, CGA-5xf3-x5m6-66vp, CGA-6f84-m86x-xhf3, CGA-74rp-54g5-w8vj, CGA-77pc-f2xx-qv3v, CGA-9rgf-qgm5-99g6, CGA-9w44-3mcf-vp4p, CGA-f72h-48w9-r9r4, CGA-f7m6-837h-fqf2, CGA-gg5v-38f9-m3r3, CGA-ghqx-m4jr-77rh, CGA-h28p-4m7h-cm2v, CGA-hggj-prj6-vpj3, CGA-hqxw-fg9r-wr9v, CGA-j782-rxgr-rfjh, CGA-jcpj-7872-6h6g, CGA-jvwc-2h6r-p7pv, CGA-jxpj-p8h2-ggq8, CGA-mwrf-24cr-5vh8, CGA-p7mg-hq2v-x33r, CGA-p8g5-jx68-vgh4, CGA-p9pm-3797-gxrq, CGA-phfq-5789-39cq, GHSA-7fc5-f82f-cx69, CGA-pwj6-5548-c4mm, CGA-q6r8-8mx7-c876, CGA-qv5p-r2p2-f333, CGA-qv9p-94h2-r2vq, CGA-w7f8-4qxc-7jr5, CGA-wvg6-gjmq-454q, CGA-x68f-5qjg-2g79
- Record: https://cvemate.com/vulnerability/CVE-2025-25186 · JSON: https://cvemate.com/vulnerability/CVE-2025-25186/json

## Description

```text
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.
```

## Signals

- CVSS: 6.5 medium (v3.1, CVE.org) CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
- EPSS: 0.627%, percentile 51.496%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected (first 20 of 39)

- chainguard kube-fluentd-operator (Chainguard): \< 1.18.2-r23
- chainguard kube-fluentd-operator-compat (Chainguard): \< 1.18.2-r23
- chainguard kube-fluentd-operator-default-config (Chainguard): \< 1.18.2-r23
- chainguard kube-fluentd-operator-oci-entrypoint (Chainguard): \< 1.18.2-r23
- chainguard logstash-8-with-output-opensearch (Chainguard): \< 8.17.2-r1
- chainguard ruby3.2-net-imap (Chainguard): \< 0.5.6-r0
- chainguard ruby3.2-rails-7.1 (Chainguard): \< 7.1.5.1-r2
- chainguard ruby3.2-rails-7.1-compat (Chainguard): \< 7.1.5.1-r2
- chainguard ruby3.2-rails-7.2 (Chainguard): \< 7.2.2.1-r2
- chainguard ruby3.2-rails-7.2-compat (Chainguard): \< 7.2.2.1-r2
- chainguard ruby3.2-rails-8.0 (Chainguard): \< 8.0.1-r2
- chainguard ruby3.2-rails-8.0-compat (Chainguard): \< 8.0.1-r2
- chainguard ruby3.3-net-imap (Chainguard): \< 0.5.6-r0
- chainguard ruby3.3-rails-7.1 (Chainguard): \< 7.1.5.1-r2
- chainguard ruby3.3-rails-7.1-compat (Chainguard): \< 7.1.5.1-r2
- chainguard ruby3.3-rails-7.2 (Chainguard): \< 7.2.2.1-r2
- chainguard ruby3.3-rails-7.2-compat (Chainguard): \< 7.2.2.1-r2
- chainguard ruby3.3-rails-8.0 (Chainguard): \< 8.0.1-r2
- chainguard ruby3.3-rails-8.0-compat (Chainguard): \< 8.0.1-r2
- chainguard ruby3.4-net-imap (Chainguard): \< 0.5.6-r0

## References

- <https://github.com/ruby/net-imap/security/advisories/GHSA-7fc5-f82f-cx69>
- <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://ubuntu.com/security/CVE-2025-25186>
- <https://www.cve.org/CVERecord?id=CVE-2025-25186>
- <https://ubuntu.com/security/notices/USN-7418-1>
- <https://security-tracker.debian.org/tracker/CVE-2025-25186>
- <https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/25xxx/CVE-2025-25186.json>
- <https://nvd.nist.gov/vuln/detail/CVE-2025-25186>
- <https://github.com/ruby/net-imap>
- <https://github.com/rubysec/ruby-advisory-db/blob/master/gems/net-imap/CVE-2025-25186.yml>
- <https://ruby.github.io/net-imap/Net/IMAP/AppendUIDData.html>
- <https://ruby.github.io/net-imap/Net/IMAP/CopyUIDData.html>
- <https://ruby.github.io/net-imap/Net/IMAP/UIDPlusData.html>

---

Data as of 2026-12-05T05:32:30.733Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
