Advisory

USN-8478-1

Also known as: CVE-2026-42246, CVE-2026-42256, CVE-2026-42257

Summary

ruby2.7, ruby3.0, ruby3.2, ruby3.3 vulnerabilities

Details

It was discovered that Ruby's Net::IMAP library did not properly verify
that TLS encryption was started after issuing a STARTTLS command. A remote
attacker could use this to perform a machine-in-the-middle attack and silently
bypass TLS encryption. (CVE-2026-42246)

It was discovered that Ruby's Net::IMAP library did not validate
string arguments passed to certain commands. A remote attacker could use
this to inject arbitrary IMAP commands. (CVE-2026-42257)

It was discovered that Ruby's Net::IMAP library was vulnerable to a
denial of service attack when authenticating with SCRAM-SHA1 or
SCRAM-SHA256. A hostile server could send a very large iteration count
value to cause excessive computation in the client. This issue only
affected ruby3.3. (CVE-2026-42256)

Severity

Not rated by the source.

Dates

Published
2025-06-29 09:15 UTC
Modified
2026-06-30 18:17 UTC

Affected packages and fixes

ruby3.0

Debian packages (deb) · Ubuntu 22.04

Affected

  • introduced 0, fixed 3.0.2-7ubuntu2.13 (ecosystem)

Fixed versions

3.0.2-7ubuntu2.13

Fix

  • Fixed version 3.0.2-7ubuntu2.13
    sudo apt-get update && sudo apt-get upgrade

This command upgrades the distribution's packages. Compare the fixed version with the version you have installed.

ruby3.2

Debian packages (deb) · Ubuntu 24.04

Affected

  • introduced 0, fixed 3.2.3-1ubuntu0.24.04.8 (ecosystem)

Fixed versions

3.2.3-1ubuntu0.24.04.8

Fix

  • Fixed version 3.2.3-1ubuntu0.24.04.8
    sudo apt-get update && sudo apt-get upgrade

This command upgrades the distribution's packages. Compare the fixed version with the version you have installed.

ruby3.3

Debian packages (deb) · Ubuntu 26.04

Affected

  • introduced 0, fixed 3.3.8-2ubuntu3.1 (ecosystem)

Fixed versions

3.3.8-2ubuntu3.1

Fix

  • Fixed version 3.3.8-2ubuntu3.1
    sudo apt-get update && sudo apt-get upgrade

This command upgrades 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