Ubuntu Security Notice
USN-8431-1
ruby2.3, ruby2.5 vulnerabilities
Details
It was discovered that Ruby's Net::IMAP library did not properly verify that Transport Layer Security (TLS) encryption was started after issuing a STARTTLS command. A remote attacker could possibly use this issue to perform a machine-in-the-middle attack and silently bypass TLS encryption. (CVE-2026-42246)
It was also discovered that Ruby's Net::IMAP library did not validate string arguments passed to certain commands. A remote attacker could possibly use this issue to inject arbitrary IMAP commands. (CVE-2026-42257)
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| Ubuntu:Pro:16.04:LTS | ruby2.3 | All versions before 2.3.1-2~ubuntu16.04.16+esm14 (fixed in 2.3.1-2~ubuntu16.04.16+esm14) |
| Ubuntu:Pro:18.04:LTS | ruby2.5 | All versions before 2.5.1-1ubuntu1.16+esm8 (fixed in 2.5.1-1ubuntu1.16+esm8) |