CVE-2026-42258: Jruby · Net::IMAP implements Internet Message Access Protocol (IMAP) client functionality in Ruby
Affects jrubySource GCVE Database
Not known to be exploited · CVSS 5.8 Medium : upgrade to 2.3.1-2~ubuntu16.04.16+esm15 when convenient.
Data as of 20 Nov 2026, 08:25 UTC
- EPSS
- 0.7% chance of exploitation in 30 days – higher than 56% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Patch
- Available – fixed in 2.3.1-2~ubuntu16.04.16+esm15
CVSS:4.0/AV:L/AC:H/AT:P/PR:N/UI:P/VC:N/VI:H/VA:L/SC:N/SI:N/SA:NExploitation evidence
Disclosed: evidence found.
CVE published 9 May 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by 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 19 Nov 2026.
What to do
Upgrade the Ubuntu ruby2.3 package to 2.3.1-2~ubuntu16.04.16+esm15.
Patches and advisories
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Ubuntu 26.10jrubypkg:deb/ubuntu/jruby?arch=source&distro=stonkingOther threats | Affected
| Fixed in– |
Ubuntu 26.10ruby3.3pkg:deb/ubuntu/ruby3.3?arch=source&distro=stonkingOther threats | Affected
| Fixed in– |
Ubuntu 26.04 LTSjrubypkg:deb/ubuntu/jruby?arch=source&distro=resoluteOther threats | Affected
| Fixed in– |
Ubuntu 26.04 LTSruby3.3pkg:deb/ubuntu/ruby3.3?arch=source&distro=resoluteOther threats | Affected
| Fixed in– |
Ubuntu 25.10jrubypkg:deb/ubuntu/jruby?arch=source&distro=questingOther threats | Affected
| Fixed in– |
Ubuntu 25.10ruby3.3pkg:deb/ubuntu/ruby3.3?arch=source&distro=questingOther threats | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
A fix is available and has been released in Ruby versions 0.4.24, 0.5.14, and 0.6.4, as well as in Ubuntu package version 2.3.1-2~ubuntu16.04.16+esm15. Users and administrators should apply these updates promptly via standard system update procedures. Ubuntu Pro users can obtain fixes via the Legacy Support add-on. No additional mitigation steps are indicated by the vendor advisory.
Description
A vulnerability in the Net::IMAP client implementation in Ruby allows CRLF injection and IMAP command injection via unsanitized Symbol arguments passed to IMAP commands. This flaw affects multiple versions prior to 0.4.24, 0.5.14, and 0.6.4 and has been patched in these versions. The issue could be exploited by a remote attacker controlling a malicious IMAP server or influencing command arguments to inject arbitrary IMAP commands. The vulnerability has a high severity rating with a CVSS score of 7.1. Fixes are available in updated Ruby packages, including version 2.3.1-2~ubuntu16.04.16+esm15 for Ubuntu 16.04 LTS.
References
- ubuntu.com/security/CVE-2026-42258 (opens in a new tab)
- cve.org/CVERecord?id=CVE-2026-42258 (opens in a new tab)
- github.com/ruby/net-imap/releases/tag/v0.4.24 (opens in a new tab)
- github.com/ruby/net-imap/releases/tag/v0.5.14 (opens in a new tab)
- github.com/ruby/net-imap/releases/tag/v0.6.4 (opens in a new tab)
- github.com/ruby/net-imap/security/advisories/GHSA-75xq-5h9v-w6px (opens in a new tab)
- ubuntu.com/security/notices/USN-8556-1 (opens in a new tab)