CVE catalog

CVE-2025-25186

Ruby vulnerabilities

[CVE catalog]

Severity
Medium · CVSS 6.5CVSS: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.

DistributionPackageReleaseVersionStatus
Debianruby3.1bookworm3.1.2-7+deb12u1vulnerable
Debianruby3.1bookworm-security3.1.2-7+deb12u1vulnerable
Ubunturuby3.1nobleNot reportedvulnerable
Ubunturuby3.2noble3.2.3-1ubuntu0.24.04.5fixed
Ubuntulibruby3.2noble3.2.3-1ubuntu0.24.04.5fixed
Ubunturuby3.2-devnoble3.2.3-1ubuntu0.24.04.5fixed
Ubunturuby3.2-docnoble3.2.3-1ubuntu0.24.04.5fixed
Ubunturuby3.224.043.2.3-1vulnerable
Ubunturuby3.224.043.2.3-1build2vulnerable
Ubunturuby3.224.043.2.3-1build3vulnerable
Ubunturuby3.224.043.2.3-1ubuntu0.24.04.1vulnerable
Ubunturuby3.224.043.2.3-1ubuntu0.24.04.3vulnerable
Ubunturuby3.224.043.2.3-1ubuntu0.24.04.5fixed

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debianruby3.1sourcebookworm(unfixed)not yet assignedNot reported[1103791]
Ubunturuby3.2debnoble3.2.3-1ubuntu0.24.04.5Not reportedNot reportedNot reported
Ubuntulibruby3.2debnoble3.2.3-1ubuntu0.24.04.5Not reportedNot reportedNot reported
Ubunturuby3.2-devdebnoble3.2.3-1ubuntu0.24.04.5Not reportedNot reportedNot reported
Ubunturuby3.2-docdebnoble3.2.3-1ubuntu0.24.04.5Not reportedNot reportedNot reported
Ubunturuby3.2deb24.043.2.3-1ubuntu0.24.04.5Not reportedUBUNTU-CVE-2025-25186Not reported

[Debian bug #1103791]

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 · bookworm

      Affected

      usn · ruby3.1 · debian · bookworm; usn · ruby3.1 · debian · 12

    • 3.1.2-7+deb12u1 · arm64 · bookworm

      Affected

      usn · ruby3.1 · debian · bookworm; usn · ruby3.1 · debian · 12

    • 3.1.2-7+deb12u1 · amd64 · bookworm-security

      Affected

      usn · ruby3.1 · debian · bookworm; usn · ruby3.1 · debian · 12

    • 3.1.2-7+deb12u1 · arm64 · bookworm-security

      Affected

      usn · ruby3.1 · debian · bookworm; usn · ruby3.1 · debian · 12

  • [ruby3.1]Affected
    Details (4)
    • 3.1.2-7+deb12u1 · amd64 · bookworm

      Affected

      usn · ruby3.1 · debian · bookworm; usn · ruby3.1 · debian · 12

    • 3.1.2-7+deb12u1 · arm64 · bookworm

      Affected

      usn · ruby3.1 · debian · bookworm; usn · ruby3.1 · debian · 12

    • 3.1.2-7+deb12u1 · amd64 · bookworm-security

      Affected

      usn · ruby3.1 · debian · bookworm; usn · ruby3.1 · debian · 12

    • 3.1.2-7+deb12u1 · arm64 · bookworm-security

      Affected

      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 · bookworm

      Affected

      usn · ruby3.1 · debian · bookworm; usn · ruby3.1 · debian · 12

    • 3.1.2-7+deb12u1 · arm64 · bookworm

      Affected

      usn · ruby3.1 · debian · bookworm; usn · ruby3.1 · debian · 12

    • 3.1.2-7+deb12u1 · amd64 · bookworm-security

      Affected

      usn · ruby3.1 · debian · bookworm; usn · ruby3.1 · debian · 12

    • 3.1.2-7+deb12u1 · arm64 · bookworm-security

      Affected

      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 · bookworm

      Affected

      usn · ruby3.1 · debian · bookworm; usn · ruby3.1 · debian · 12

    • 3.1.2-7+deb12u1 · all · bookworm

      Affected

      usn · ruby3.1 · debian · bookworm; usn · ruby3.1 · debian · 12

    • 3.1.2-7+deb12u1 · all · bookworm-security

      Affected

      usn · ruby3.1 · debian · bookworm; usn · ruby3.1 · debian · 12

    • 3.1.2-7+deb12u1 · all · bookworm-security

      Affected

      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 · trixie

      Fixed · Fixed: 3.3.8-1

      usn · ruby3.3 · debian · 13

    • 3.3.8-2 · arm64 · trixie

      Fixed · Fixed: 3.3.8-1

      usn · ruby3.3 · debian · 13

  • [ruby3.3]Fixed
    Details (2)
    • 3.3.8-2 · amd64 · trixie

      Fixed · Fixed: 3.3.8-1

      usn · ruby3.3 · debian · 13

    • 3.3.8-2 · arm64 · trixie

      Fixed · Fixed: 3.3.8-1

      usn · ruby3.3 · debian · 13

  • Source package: [ruby3.3]

    Details (2)
    • 3.3.8-2 · amd64 · trixie

      Fixed · Fixed: 3.3.8-1

      usn · ruby3.3 · debian · 13

    • 3.3.8-2 · arm64 · trixie

      Fixed · Fixed: 3.3.8-1

      usn · ruby3.3 · debian · 13

  • Source package: [ruby3.3]

    Details (2)
    • 3.3.8-2 · all · trixie

      Fixed · Fixed: 3.3.8-1

      usn · ruby3.3 · debian · 13

    • 3.3.8-2 · all · trixie

      Fixed · Fixed: 3.3.8-1

      usn · ruby3.3 · debian · 13

Observed:

References