ubuntu-cve-2025-25186
Vulnerability from osv_ubuntu
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.
{
"affected": [
{
"ecosystem_specific": {
"availability": "No subscription required",
"binaries": [
{
"binary_name": "libruby3.2",
"binary_version": "3.2.3-1ubuntu0.24.04.5"
},
{
"binary_name": "ruby3.2",
"binary_version": "3.2.3-1ubuntu0.24.04.5"
}
],
"priority_reason": "Memory consumption issue by malicious imap server"
},
"package": {
"ecosystem": "Ubuntu:24.04:LTS",
"name": "ruby3.2",
"purl": "pkg:deb/ubuntu/ruby3.2@3.2.3-1ubuntu0.24.04.5?arch=source\u0026distro=noble"
},
"ranges": [
{
"events": [
{
"introduced": "0"
},
{
"fixed": "3.2.3-1ubuntu0.24.04.5"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"3.2.3-1",
"3.2.3-1build2",
"3.2.3-1build3",
"3.2.3-1ubuntu0.24.04.1",
"3.2.3-1ubuntu0.24.04.3"
]
}
],
"aliases": [],
"details": "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`\u0027s 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\u0027s 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.",
"id": "UBUNTU-CVE-2025-25186",
"modified": "2026-04-22T07:54:09Z",
"published": "2025-02-10T16:15:00Z",
"references": [
{
"type": "REPORT",
"url": "https://ubuntu.com/security/CVE-2025-25186"
},
{
"type": "REPORT",
"url": "https://www.cve.org/CVERecord?id=CVE-2025-25186"
},
{
"type": "REPORT",
"url": "https://github.com/ruby/net-imap/security/advisories/GHSA-7fc5-f82f-cx69"
},
{
"type": "ADVISORY",
"url": "https://ubuntu.com/security/notices/USN-7418-1"
}
],
"related": [
"USN-7418-1"
],
"schema_version": "1.7.0",
"severity": [
{
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H",
"type": "CVSS_V3"
},
{
"score": "low",
"type": "Ubuntu"
}
],
"upstream": [
"CVE-2025-25186"
]
}
Sightings
| Author | Source | Type | Date | Other |
|---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or observed by the user.
- Confirmed: The vulnerability has been validated from an analyst's perspective.
- Published Proof of Concept: A public proof of concept is available for this vulnerability.
- Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
- Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
- Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
- Not confirmed: The user expressed doubt about the validity of the vulnerability.
- Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.