USN-8431-1: Ruby vulnerabilities

Published Jun 15, 2026
·
Updated

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 Software

9 affected componentsFixes available
Ruby Ruby
All of the following
ubuntu/libruby2.5<Ubuntu Pro
Ubuntu Pro
Ubuntu Ubuntu=18.04
All of the following
ubuntu/ruby2.5<Ubuntu Pro
Ubuntu Pro
Ubuntu Ubuntu=18.04
All of the following
ubuntu/libruby2.3<Ubuntu Pro
Ubuntu Pro
Ubuntu Ubuntu=16.04
All of the following
ubuntu/ruby2.3<Ubuntu Pro
Ubuntu Pro
Ubuntu Ubuntu=16.04

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade ubuntu/libruby2.5 to a version that resolves this vulnerability.

    Fixed in Ubuntu Pro
  2. Upgrade

    Upgrade ubuntu/ruby2.5 to a version that resolves this vulnerability.

    Fixed in Ubuntu Pro
  3. Upgrade

    Upgrade ubuntu/libruby2.3 to a version that resolves this vulnerability.

    Fixed in Ubuntu Pro
  4. Upgrade

    Upgrade ubuntu/ruby2.3 to a version that resolves this vulnerability.

    Fixed in Ubuntu Pro

Event History

Jun 15, 2026
Advisory Published
via Ubuntu·12:00 AM
Data Sourced
via Ubuntu·12:00 AM
DescriptionAffected Software
Updated
via Ubuntu·12:00 AM
DescriptionAffected Software

Child vulnerabilities

Contains the following vulnerabilities.

Frequently Asked Questions

1

What is the severity of USN-8431-1?

USN-8431-1 is classified with a risk score of 42, indicating a moderate to high severity level.

2

What vulnerabilities are addressed in USN-8431-1?

USN-8431-1 addresses CVE-2026-42257 and CVE-2026-42246 vulnerabilities in Ruby.

3

How do I fix USN-8431-1?

To fix USN-8431-1, update your Ruby installation to the latest version that includes the security patches.

4

What are the potential risks of not addressing USN-8431-1?

Failing to address USN-8431-1 may expose your Ruby applications to security exploits that could lead to data breaches.

5

Are there any workarounds for USN-8431-1 before applying the fix?

There are no recommended workarounds for USN-8431-1, so applying the update as soon as possible is advised.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203