CVE-2026-42257: 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 · fixed in 2.3.1-2~ubuntu16.04.16+esm14 : update jruby when convenient.
Data as of 24 Nov 2026, 21:15 UTC
Contested
Critical score, yet low EPSS after six months- EPSS
- 0.4% chance of exploitation in 30 days – higher than 37% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Patch
- Available – fixed in 2.3.1-2~ubuntu16.04.16+esm14, 2.5.1-1ubuntu1.16+esm8, 2.7.0-5ubuntu1.18+esm5 +3
CVSS:4.0/AV:L/AC:L/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 24 Nov 2026.
What to do
Upgrade to a fixed release listed under Affected software.
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.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– |
Ubuntu 24.04 LTSjrubypkg:deb/ubuntu/jruby?arch=source&distro=nobleOther threats | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
Description
Net::IMAP implements Internet Message Access Protocol (IMAP) client functionality in Ruby. Prior to versions 0.4.24, 0.5.14, and 0.6.4, several Net::IMAP commands accept a raw string argument that is sent to the server without validation or escaping. If this string is derived from user-controlled input, it may contain contain CRLF sequences, which an attacker can use to inject arbitrary IMAP commands. This issue has been patched in versions 0.4.24, 0.5.14, and 0.6.4.
References
- ubuntu.com/security/CVE-2026-42257 (opens in a new tab)
- cve.org/CVERecord?id=CVE-2026-42257 (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-hm49-wcqc-g2xg (opens in a new tab)
- ubuntu.com/security/notices/USN-8431-1 (opens in a new tab)
- ubuntu.com/security/notices/USN-8478-1 (opens in a new tab)