5.8

CVE-2026-47240: Net::IMAP: Command Injection via non-synchronizing literal in "raw" argument

Deferred
AliasesUBUNTU-CVE-2026-47240DEBIAN-CVE-2026-47240CGA-3wxx-4wpf-c6rp
Published 22-06-2026Last modified 23-06-2026

Vulnerability summary

CVE-2026-47240 is a medium (CVSS 5.8) vulnerability in ruby net-imap. EPSS estimates a 0.49% chance of exploitation in the next 30 days, higher than 43.7% of scored vulnerabilities.

Priority
Routine

Not severe (CVSS 5.8, local access); no exploitation reported by the 5 checked sources

Source freshness unavailable

How is this decided?
CVSS score
5.8/10
010
Medium · v4.0 (CVE.org)
EPSS score
0.49%
0%100%
Low · -0.34 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits0No public exploits recorded

Advisory lineage

Upstream 0 · Downstream 12 · Related 4

Timeline

  1. 22-06-2026
    PublishedVulnerability first disclosed.
  2. 23-06-2026
    Last modifiedVulnerability information updated.

Description

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.

CVSS metrics

8 scores · 8 sources · 1 version

EPSS trend

Probability

0.49%

Chance of exploitation in the next 30 days

Percentile

44%

Versus all other CVEs

30-day change

Decrease -0.34 pp

From 0.83% on 04-11-2026

04-11-202604-12-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

Version check

Known conditions: local access, no authentication, user interaction (CVSS vector). Other conditions: not stated in public data.

Chainguard53 products
  • gitlab-rails-ce-18.1All versions (No fix recorded)
  • gitlab-rails-ce-18.10All versions (No fix recorded)
  • gitlab-rails-ce-18.11< 18.11.5-r0
  • gitlab-rails-ce-18.4All versions (No fix recorded)
  • gitlab-rails-ce-18.5All versions (No fix recorded)
Wolfi13 products
  • jruby-10.1< 10.1.1.0-r1
  • jruby-9.4< 9.4.15.0-r3
  • kube-fluentd-operator< 1.18.2-r70
  • logstash-9.3< 9.3.6-r0
  • logstash-9.3-iamguarded-compat< 9.3.6-r0
Ubuntu7 products
  • jrubyAll versions (No fix recorded)
  • ruby2.3All versions (No fix recorded)
  • ruby2.5All versions (No fix recorded)
  • ruby2.7All versions (No fix recorded)
  • ruby3.0All versions (No fix recorded)
Debian2 products
  • ruby3.1All versions (No fix recorded)
  • ruby3.3All versions (No fix recorded) | < 3.3.13-0+deb13u1 | < 3.3.14-0.1
Alpine1 product
  • ruby-net-imap< 0.4.25-r0 | < 0.5.15-r0
Ruby1 product
RubyGems1 product
  • net-imap≥ 0.6.0, < 0.6.4.1 | < 0.5.15

7 vendors · 78 products

References

10 links