Skip to main content
VulnerabilityPublished

CVE-2026-47242: ruby net-imap · Command Injection

Affects ruby net-imapSource CVE Database V5

0
Compare

Not known to be exploited · CVSS 5.8 Medium : upgrade to 0.6.4.1 or 0.5.15 when convenient.

Data as of 5 Nov 2026, 00:01 UTC

CVSS 4.0 base score
5.8Medium
How severe the flaw is on the 0–10 CVSS scale.
EPSS
0.1% chance of exploitation in 30 days – higher than 8% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
Patch
Available – fixed in 0.6.4.1, 0.5.15
CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:P/VC:N/VI:H/VA:L/SC:N/SI:N/SA:N

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 22 Jun 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 5 Nov 2026.

What to do

Upgrade ruby net-imap to 0.6.4.1 or 0.5.15.

Affected software

ProductAffectedFixed in
rubynet-imapAffected
  • >=0.6.0 <0.6.4.1
Fixed in
  • 0.6.4.1
rubynet-imapAffected
  • <0.5.15
Fixed in
  • 0.5.15

AI-suggested

Fixed versions 0.6.5 and 0.5.15 of the Ruby net-imap library address this vulnerability. Users should upgrade to these versions or later to remediate the issue. No additional vendor advisory or temporary mitigations are provided. Patch status is confirmed by the presence of fixed versions.

Description

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.

References

Community reviews

Loading reviews…