ADVISORIES

Ubuntu CVE Tracker

UBUNTU-CVE-2026-42257

Details

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.

Affected packages

EcosystemPackageAffected versions
Ubuntu:Pro:14.04:LTSjruby
All versions, no fix listed
Ubuntu:Pro:16.04:LTSruby2.3
All versions before 2.3.1-2~ubuntu16.04.16+esm14 (fixed in 2.3.1-2~ubuntu16.04.16+esm14)
Ubuntu:16.04:LTSjruby
All versions, no fix listed
Ubuntu:Pro:18.04:LTSruby2.5
All versions before 2.5.1-1ubuntu1.16+esm8 (fixed in 2.5.1-1ubuntu1.16+esm8)
Ubuntu:18.04:LTSjruby
All versions, no fix listed
Ubuntu:Pro:20.04:LTSruby2.7
All versions before 2.7.0-5ubuntu1.18+esm5 (fixed in 2.7.0-5ubuntu1.18+esm5)
Ubuntu:20.04:LTSjruby
All versions, no fix listed
Ubuntu:22.04:LTSruby3.0
All versions before 3.0.2-7ubuntu2.13 (fixed in 3.0.2-7ubuntu2.13)
Ubuntu:24.04:LTSjruby
All versions, no fix listed
Ubuntu:24.04:LTSruby3.2
All versions before 3.2.3-1ubuntu0.24.04.8 (fixed in 3.2.3-1ubuntu0.24.04.8)
Ubuntu:25.10jruby
All versions, no fix listed
Ubuntu:25.10ruby3.3
All versions, no fix listed
Ubuntu:26.10jruby
All versions, no fix listed
Ubuntu:26.04:LTSjruby
All versions, no fix listed
Ubuntu:26.04:LTSruby3.3
All versions before 3.3.8-2ubuntu3.1 (fixed in 3.3.8-2ubuntu3.1)

References