UBUNTU-CVE-2025-25186

Source
https://ubuntu.com/security/CVE-2025-25186
Import Source
https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-25186.json
JSON Data
https://api.osv.dev/v1/vulns/UBUNTU-CVE-2025-25186
Related
Published
2025-02-10T16:15:00Z
Modified
2025-02-28T04:37:17Z
Summary
[none]
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'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.

References

Affected packages

Ubuntu:24.10 / ruby3.3

Package

Name
ruby3.3
Purl
pkg:deb/ubuntu/ruby3.3@3.3.4-2ubuntu5.1?arch=source&distro=oracular

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

3.*

3.3.1-3
3.3.1-4
3.3.1-5
3.3.1-6
3.3.4-1
3.3.4-2
3.3.4-2ubuntu5
3.3.4-2ubuntu5.1

Ecosystem specific

{
    "ubuntu_priority": "low",
    "priority_reason": "Memory consumption issue by malicious imap server"
}

Ubuntu:24.04:LTS / ruby3.2

Package

Name
ruby3.2
Purl
pkg:deb/ubuntu/ruby3.2@3.2.3-1ubuntu0.24.04.3?arch=source&distro=noble

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

3.*

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

Ecosystem specific

{
    "ubuntu_priority": "low",
    "priority_reason": "Memory consumption issue by malicious imap server"
}