Advisory
UBUNTU-CVE-2026-42257
Also known as: CVE-2026-42257
Summary
The record has no summary.
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.
Severity
Critical Basis: CVSS v3 score 9.8, vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Dates
- Published
- 2026-05-09 20:16 UTC
- Modified
- 2026-10-17 12:58 UTC
Affected packages and fixes
| Package | System | Affected | Fix |
|---|---|---|---|
| jruby | Debian packages (deb) · Ubuntu 16.04 | introduced 0 | No fixed version is listed. |
| jruby | Debian packages (deb) · Ubuntu 18.04 | introduced 0 | No fixed version is listed. |
| jruby | Debian packages (deb) · Ubuntu 20.04 | introduced 0 | No fixed version is listed. |
| ruby3.0 | Debian packages (deb) · Ubuntu 22.04 | Earlier versions | sudo apt-get update && sudo apt-get upgrade |
| jruby | Debian packages (deb) · Ubuntu 24.04 | introduced 0 | No fixed version is listed. |
| ruby3.2 | Debian packages (deb) · Ubuntu 24.04 | Earlier versions | sudo apt-get update && sudo apt-get upgrade |
| jruby | Debian packages (deb) · Ubuntu 25.10 | introduced 0 | No fixed version is listed. |
| ruby3.3 | Debian packages (deb) · Ubuntu 25.10 | introduced 0 | No fixed version is listed. |
| jruby | Debian packages (deb) · Ubuntu 26.10 | introduced 0 | No fixed version is listed. |
| jruby | Debian packages (deb) · Ubuntu 26.04 | introduced 0 | No fixed version is listed. |
| ruby3.3 | Debian packages (deb) · Ubuntu 26.04 | Earlier versions | sudo apt-get update && sudo apt-get upgrade |
Some commands upgrade the distribution's packages. Compare the fixed version with the version you have installed.
Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Links
- https://ubuntu.com/security/CVE-2026-42257
- https://www.cve.org/CVERecord?id=CVE-2026-42257
- https://github.com/ruby/net-imap/releases/tag/v0.4.24
- https://github.com/ruby/net-imap/releases/tag/v0.5.14
- https://github.com/ruby/net-imap/releases/tag/v0.6.4
- https://github.com/ruby/net-imap/security/advisories/GHSA-hm49-wcqc-g2xg
- https://ubuntu.com/security/notices/USN-8431-1
- https://ubuntu.com/security/notices/USN-8478-1
Source
Source: Ubuntu Security Notices · CC BY-SA 4.0