CVE catalog

CVE-2026-47242

Net::IMAP implements Internet Message Access Protocol (IMAP) client functionality in Ruby. Prior to 0.6.5 and 0.5.15, when Net::IMAP#id is called with a hash argument, although the ID field value stri

[CVE catalog]

Severity
High · CVSS 7.3CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:N
Published
Source
[NVD] · [CVE record]
EPSS
0.18% · Oct 25, 2026

Net::IMAP implements Internet Message Access Protocol (IMAP) client functionality in Ruby. Prior to 0.6.5 and 0.5.15, when Net::IMAP#id is called with a hash argument, although the ID field value strings are correctly quoted (escaping quoted specials), they were not validated to prohibit CRLF sequences. While Net::IMAP#enable does process its arguments for aliases, it does not validate them as valid atoms (or as a list of valid atoms). The #to_s value is sent verbatim. Arguments to either command could be used by an attacker to inject arbitrary IMAP commands. This vulnerability is fixed in 0.6.5 and 0.5.15.

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
Cperuby3.1Not reportedNot reportedvulnerable
Alpineruby-net-imap3.240.5.15-r0fixed
Alpineruby-net-imap3.230.5.15-r0fixed
Alpineruby-net-imap3.210.4.25-r0fixed
Alpineruby-net-imap3.220.5.15-r0fixed

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debianruby3.1sourcebookworm(unfixed)not yet assignedNot reportedNot reported
Alpineruby-net-imapapk3.240.5.15-r0Not reportedALPINE-CVE-2026-47242Not reported
Alpineruby-net-imapapk3.230.5.15-r0Not reportedALPINE-CVE-2026-47242Not reported
Alpineruby-net-imapapk3.210.4.25-r0Not reportedALPINE-CVE-2026-47242Not reported
Alpineruby-net-imapapk3.220.5.15-r0Not reportedALPINE-CVE-2026-47242Not reported

OpenFactory catalog packages

[Debian 12 (Bookworm)]

  • [libruby3.1]Affected

    Source package: [ruby3.1]

    Details (4)
    • 3.1.2-7+deb12u1 · amd64 · bookworm

      Affected

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

    • 3.1.2-7+deb12u1 · arm64 · bookworm

      Affected

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

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

      Affected

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

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

      Affected

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

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

      Affected

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

    • 3.1.2-7+deb12u1 · arm64 · bookworm

      Affected

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

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

      Affected

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

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

      Affected

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

  • [ruby3.1-dev]Affected

    Source package: [ruby3.1]

    Details (4)
    • 3.1.2-7+deb12u1 · amd64 · bookworm

      Affected

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

    • 3.1.2-7+deb12u1 · arm64 · bookworm

      Affected

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

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

      Affected

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

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

      Affected

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

  • [ruby3.1-doc]Affected

    Source package: [ruby3.1]

    Details (4)
    • 3.1.2-7+deb12u1 · all · bookworm

      Affected

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

    • 3.1.2-7+deb12u1 · all · bookworm

      Affected

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

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

      Affected

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

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

      Affected

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

[Debian 13 (Trixie)]

  • [libruby3.3]Affected

    Source package: [ruby3.3]

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

      Affected

      nvd · ruby3.3 · debian · 13

    • 3.3.8-2 · arm64 · trixie

      Affected

      nvd · ruby3.3 · debian · 13

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

      Affected

      nvd · ruby3.3 · debian · 13

    • 3.3.8-2 · arm64 · trixie

      Affected

      nvd · ruby3.3 · debian · 13

  • [ruby3.3-dev]Affected

    Source package: [ruby3.3]

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

      Affected

      nvd · ruby3.3 · debian · 13

    • 3.3.8-2 · arm64 · trixie

      Affected

      nvd · ruby3.3 · debian · 13

  • [ruby3.3-doc]Affected

    Source package: [ruby3.3]

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

      Affected

      nvd · ruby3.3 · debian · 13

    • 3.3.8-2 · all · trixie

      Affected

      nvd · ruby3.3 · debian · 13

Observed:

References