
CVE catalog
CVE-2025-25186
Ruby vulnerabilities
- Severity
- Medium · CVSS 6.5
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H - Published
- Source
- [NVD] · [CVE record]
- EPSS
- 0.63% · Oct 25, 2026
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.
Vulnerable and fixed packages
Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.
| Distribution | Package | Release | Version | Status |
|---|---|---|---|---|
| Debian | ruby3.1 | bookworm | 3.1.2-7+deb12u1 | vulnerable |
| Debian | ruby3.1 | bookworm-security | 3.1.2-7+deb12u1 | vulnerable |
| Ubuntu | ruby3.1 | noble | Not reported | vulnerable |
| Ubuntu | ruby3.2 | noble | 3.2.3-1ubuntu0.24.04.5 | fixed |
| Ubuntu | libruby3.2 | noble | 3.2.3-1ubuntu0.24.04.5 | fixed |
| Ubuntu | ruby3.2-dev | noble | 3.2.3-1ubuntu0.24.04.5 | fixed |
| Ubuntu | ruby3.2-doc | noble | 3.2.3-1ubuntu0.24.04.5 | fixed |
| Ubuntu | ruby3.2 | 24.04 | 3.2.3-1 | vulnerable |
| Ubuntu | ruby3.2 | 24.04 | 3.2.3-1build2 | vulnerable |
| Ubuntu | ruby3.2 | 24.04 | 3.2.3-1build3 | vulnerable |
| Ubuntu | ruby3.2 | 24.04 | 3.2.3-1ubuntu0.24.04.1 | vulnerable |
| Ubuntu | ruby3.2 | 24.04 | 3.2.3-1ubuntu0.24.04.3 | vulnerable |
| Ubuntu | ruby3.2 | 24.04 | 3.2.3-1ubuntu0.24.04.5 | fixed |
Fixed-version evidence
| Distribution | Package | Type | Release | Fixed version | Urgency | Origin | Bugs |
|---|---|---|---|---|---|---|---|
| Debian | ruby3.1 | source | bookworm | (unfixed) | not yet assigned | Not reported | [1103791] |
| Ubuntu | ruby3.2 | deb | noble | 3.2.3-1ubuntu0.24.04.5 | Not reported | Not reported | Not reported |
| Ubuntu | libruby3.2 | deb | noble | 3.2.3-1ubuntu0.24.04.5 | Not reported | Not reported | Not reported |
| Ubuntu | ruby3.2-dev | deb | noble | 3.2.3-1ubuntu0.24.04.5 | Not reported | Not reported | Not reported |
| Ubuntu | ruby3.2-doc | deb | noble | 3.2.3-1ubuntu0.24.04.5 | Not reported | Not reported | Not reported |
| Ubuntu | ruby3.2 | deb | 24.04 | 3.2.3-1ubuntu0.24.04.5 | Not reported | UBUNTU-CVE-2025-25186 | Not reported |
Notes
[bookworm] ruby3.1: Minor issue
OpenFactory catalog packages
[Debian 12 (Bookworm)]
- [libruby3.1]Affected
Source package: [ruby3.1]
Details (4)
3.1.2-7+deb12u1· amd64 · bookwormAffected
usn · ruby3.1 · debian · bookworm; usn · ruby3.1 · debian · 12
3.1.2-7+deb12u1· arm64 · bookwormAffected
usn · ruby3.1 · debian · bookworm; usn · ruby3.1 · debian · 12
3.1.2-7+deb12u1· amd64 · bookworm-securityAffected
usn · ruby3.1 · debian · bookworm; usn · ruby3.1 · debian · 12
3.1.2-7+deb12u1· arm64 · bookworm-securityAffected
usn · ruby3.1 · debian · bookworm; usn · ruby3.1 · debian · 12
- [ruby3.1]Affected
Details (4)
3.1.2-7+deb12u1· amd64 · bookwormAffected
usn · ruby3.1 · debian · bookworm; usn · ruby3.1 · debian · 12
3.1.2-7+deb12u1· arm64 · bookwormAffected
usn · ruby3.1 · debian · bookworm; usn · ruby3.1 · debian · 12
3.1.2-7+deb12u1· amd64 · bookworm-securityAffected
usn · ruby3.1 · debian · bookworm; usn · ruby3.1 · debian · 12
3.1.2-7+deb12u1· arm64 · bookworm-securityAffected
usn · ruby3.1 · debian · bookworm; usn · ruby3.1 · debian · 12
- [ruby3.1-dev]Affected
Source package: [ruby3.1]
Details (4)
3.1.2-7+deb12u1· amd64 · bookwormAffected
usn · ruby3.1 · debian · bookworm; usn · ruby3.1 · debian · 12
3.1.2-7+deb12u1· arm64 · bookwormAffected
usn · ruby3.1 · debian · bookworm; usn · ruby3.1 · debian · 12
3.1.2-7+deb12u1· amd64 · bookworm-securityAffected
usn · ruby3.1 · debian · bookworm; usn · ruby3.1 · debian · 12
3.1.2-7+deb12u1· arm64 · bookworm-securityAffected
usn · ruby3.1 · debian · bookworm; usn · ruby3.1 · debian · 12
- [ruby3.1-doc]Affected
Source package: [ruby3.1]
Details (4)
3.1.2-7+deb12u1· all · bookwormAffected
usn · ruby3.1 · debian · bookworm; usn · ruby3.1 · debian · 12
3.1.2-7+deb12u1· all · bookwormAffected
usn · ruby3.1 · debian · bookworm; usn · ruby3.1 · debian · 12
3.1.2-7+deb12u1· all · bookworm-securityAffected
usn · ruby3.1 · debian · bookworm; usn · ruby3.1 · debian · 12
3.1.2-7+deb12u1· all · bookworm-securityAffected
usn · ruby3.1 · debian · bookworm; usn · ruby3.1 · debian · 12
[Debian 13 (Trixie)]
- [libruby3.3]Fixed
Source package: [ruby3.3]
Details (2)
3.3.8-2· amd64 · trixieFixed · Fixed:
3.3.8-1usn · ruby3.3 · debian · 13
3.3.8-2· arm64 · trixieFixed · Fixed:
3.3.8-1usn · ruby3.3 · debian · 13
- [ruby3.3]Fixed
Details (2)
3.3.8-2· amd64 · trixieFixed · Fixed:
3.3.8-1usn · ruby3.3 · debian · 13
3.3.8-2· arm64 · trixieFixed · Fixed:
3.3.8-1usn · ruby3.3 · debian · 13
- [ruby3.3-dev]Fixed
Source package: [ruby3.3]
Details (2)
3.3.8-2· amd64 · trixieFixed · Fixed:
3.3.8-1usn · ruby3.3 · debian · 13
3.3.8-2· arm64 · trixieFixed · Fixed:
3.3.8-1usn · ruby3.3 · debian · 13
- [ruby3.3-doc]Fixed
Source package: [ruby3.3]
Details (2)
3.3.8-2· all · trixieFixed · Fixed:
3.3.8-1usn · ruby3.3 · debian · 13
3.3.8-2· all · trixieFixed · Fixed:
3.3.8-1usn · ruby3.3 · debian · 13
Observed:
References
- [https://ftp.suse.com/pub/projects/security/csaf/rhsa-2025_8131.json]
- [https://osv.dev/vulnerability/DEBIAN-CVE-2025-25186]
- [https://osv.dev/vulnerability/UBUNTU-CVE-2025-25186]
- [https://security-tracker.debian.org/tracker/CVE-2025-25186]
- [https://security.access.redhat.com/data/csaf/v2/vex/2025/cve-2025-25186.json]
- [https://ubuntu.com/security/notices/USN-7418-1]
[Debian Security Tracker] · [FIRST EPSS] · [OSV Package Vulnerability Database] · [Red Hat security advisories and VEX] · [SUSE security advisories and VEX] · [Ubuntu Security Notices (USN)]