CVE catalog

CVE-2026-47240

Net::IMAP implements Internet Message Access Protocol (IMAP) client functionality in Ruby. Prior to 0.6.5 and 0.5.15, several Net::IMAP commands accept a "raw data" argument that is sent verbatim afte

[CVE catalog]

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

Net::IMAP implements Internet Message Access Protocol (IMAP) client functionality in Ruby. Prior to 0.6.5 and 0.5.15, several Net::IMAP commands accept a "raw data" argument that is sent verbatim after validation to prevent command injection. However, if a server does not support non-synchronizing literals, it may still be possible to inject arbitrary IMAP commands inside non-synchronizing literals. A server without support for non-synchronizing literals may interpret the "+}\r\n" as the end of a malformed command line and respond with a tagged BAD. In that case, the contents of the literal will be interpreted as one or more new pipelined commands, allowing a CRLF command injection attack to succeed. This affects criteria for #search and #uid_search; search_keys for #sort, #thread, #uid_sort, and #uid_thread; and attr for #fetch and #uid_fetch. 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-47240Not reported
Alpineruby-net-imapapk3.230.5.15-r0Not reportedALPINE-CVE-2026-47240Not reported
Alpineruby-net-imapapk3.210.4.25-r0Not reportedALPINE-CVE-2026-47240Not reported
Alpineruby-net-imapapk3.220.5.15-r0Not reportedALPINE-CVE-2026-47240Not 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