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

11 affected packages
PackageSystemAffectedFix
jrubyDebian packages (deb) · Ubuntu 16.04introduced 0No fixed version is listed.
jrubyDebian packages (deb) · Ubuntu 18.04introduced 0No fixed version is listed.
jrubyDebian packages (deb) · Ubuntu 20.04introduced 0No fixed version is listed.
ruby3.0Debian packages (deb) · Ubuntu 22.04Earlier versionssudo apt-get update && sudo apt-get upgrade
jrubyDebian packages (deb) · Ubuntu 24.04introduced 0No fixed version is listed.
ruby3.2Debian packages (deb) · Ubuntu 24.04Earlier versionssudo apt-get update && sudo apt-get upgrade
jrubyDebian packages (deb) · Ubuntu 25.10introduced 0No fixed version is listed.
ruby3.3Debian packages (deb) · Ubuntu 25.10introduced 0No fixed version is listed.
jrubyDebian packages (deb) · Ubuntu 26.10introduced 0No fixed version is listed.
jrubyDebian packages (deb) · Ubuntu 26.04introduced 0No fixed version is listed.
ruby3.3Debian packages (deb) · Ubuntu 26.04Earlier versionssudo 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

View this record on OSV.dev

Source

Source: Ubuntu Security Notices · CC BY-SA 4.0

Sources & licences