CVE-2026-47242: ruby net-imap Command Injection
Vulnerability summary
CVE-2026-47242 is a medium (CVSS 5.8) Command Injection vulnerability in ruby net-imap. EPSS estimates a 0.18% chance of exploitation in the next 30 days, higher than 7.4% of scored vulnerabilities.
Advisory lineage
Upstream 0 · Downstream 11 · Related 3Timeline
- 22-06-2026PublishedVulnerability first disclosed.
- 23-06-2026Last 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, 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.
CVSS metrics
8 scores · 8 sources · 2 versions- OSV · UbuntuEcosystem advisory · calculated5.8MediumCVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:P/VC:N/VI:H/VA:L/SC:N/SI:N/SA:N
- OSV · DebianEcosystem advisory · calculated5.8MediumCVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:P/VC:N/VI:H/VA:L/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
- OSV · WolfiEcosystem advisory · calculated5.8MediumCVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:P/VC:N/VI:H/VA:L/SC:N/SI:N/SA:N
- OSV · ChainguardEcosystem advisory · calculated5.8MediumCVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:P/VC:N/VI:H/VA:L/SC:N/SI:N/SA:N
- OSV · RubygemsEcosystem advisory · calculated5.8MediumCVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:P/VC:N/VI:H/VA:L/SC:N/SI:N/SA:N
- NVDNIST5.8MediumCVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:P/VC:N/VI:H/VA:L/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
EPSS trend
Probability
0.18%
Chance of exploitation in the next 30 days
Percentile
7%
Versus all other CVEs
30-day change
+0.05 pp
From 0.13% on 19-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root cause- CWE-77Improper Neutralization of Special Elements used in a Command ('Command Injection')The product constructs all or part of a command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended command when it is sent to a downstream component.
- CWE-93Improper Neutralization of CRLF Sequences ('CRLF Injection')The product uses CRLF (carriage return line feeds) as a special element, e.g. to separate lines or records, but it does not neutralize or incorrectly neutralizes CRLF sequences from inputs.
Affected systems
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)
Redhat42 products
- ruby< 0:3.3.12-11.el10_0.3 | < 0:3.3.12-7.module+el9.4.0+24628+a370c2b9.2 | < 0:3.3.12-6.module+el9.6.0+24618+75aeb29f.1
- ruby-bundled-gems< 0:3.3.12-11.el10_0.3 | < 0:3.3.12-7.module+el9.4.0+24628+a370c2b9.2 | < 0:3.3.12-6.module+el9.6.0+24618+75aeb29f.1
- ruby-bundled-gems-debuginfo< 0:3.3.12-11.el10_0.3 | < 0:3.3.12-7.module+el9.4.0+24628+a370c2b9.2 | < 0:3.3.12-6.module+el9.6.0+24618+75aeb29f.1
- ruby-debuginfo< 0:3.3.12-11.el10_0.3 | < 0:3.3.12-7.module+el9.4.0+24628+a370c2b9.2 | < 0:3.3.12-6.module+el9.6.0+24618+75aeb29f.1
- ruby-debugsource< 0:3.3.12-11.el10_0.3 | < 0:3.3.12-7.module+el9.4.0+24628+a370c2b9.2 | < 0:3.3.12-6.module+el9.6.0+24618+75aeb29f.1
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)
Ruby1 product
- net-imap≥ 0.6.0, < 0.6.4.1 | < 0.5.15
RubyGems1 product
- net-imap≥ 0.6.0, < 0.6.4.1 | < 0.5.15
7 vendors · 119 products
References
18 links- github.com/ruby/net-imap/security/advisories/GHSA-46q3-7gv7-qmggX Refsource CONFIRMARTICLEREPORTAdvisoryWEB
Show all 18 references
- github.com/ruby/net-imapPACKAGE