Critical Security Flaw in Ruby Packages: IMAP Command Injection and TLS Bypass

ruby Updated 01 Jul 2026

Summary

30/06/2026
N/A
Yes i
Unrated
Not published

ALSA-2026:33512: Important: ruby security update. Affects ruby versions < 3.0.7-167.el9_8. Fixed in 3.0.7-167.el9_8. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

Ruby is a versatile, interpreted, object-oriented scripting language widely used for web development and system management tasks. It offers robust features for processing text files and managing system operations. However, recent vulnerabilities have been identified in its net-imap library, which could lead to serious security breaches.

Vulnerability Detail

The vulnerabilities identified in Ruby's net-imap library include an IMAP Command Injection via Symbol Arguments (CVE-2026-42258) and an Information Disclosure via a man-in-the-middle attack that bypasses TLS (CVE-2026-42246). These vulnerabilities could allow attackers to execute arbitrary commands or intercept sensitive information, posing significant risks to data integrity and confidentiality.

How To Fix

Minimum fixed version

3.0.7-167.el9_8

This is the first release that contains the fix.

sudo dnf update ruby

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

As a temporary measure, consider disabling IMAP commands that utilize Symbol Arguments until the packages can be updated. This can help mitigate the risk of command injection attacks.

Conclusion

The vulnerabilities in Ruby's net-imap library present serious security risks that can lead to command injection and data breaches. It is crucial to update the affected packages to their patched versions to safeguard your applications. Regular monitoring and updates are essential for maintaining security.

See every vulnerability recorded for ruby →

Share this vulnerability

FAQ

CVE-2026-42258 refers to a vulnerability in Ruby's net-imap library that allows for IMAP Command Injection via Symbol Arguments.

CVE-2026-42246 is a vulnerability that enables information disclosure through a man-in-the-middle attack that bypasses TLS security.

You can use the Vulert playground at Vulert Scanner to check if your application is affected by these vulnerabilities without needing to sign up.

The risks include unauthorized access to sensitive data, potential command execution by attackers, and overall compromise of application security.

It is recommended to regularly check for updates and apply them promptly, especially when security vulnerabilities are disclosed.

Related vulnerabilities

Recent vulnerabilities recorded for ruby.

How To Fix

Minimum fixed version

3.0.7-167.el9_8

This is the first release that contains the fix.

sudo dnf update ruby

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback