Critical Security Update for Ruby: Addressing Denial of Service and Command Injection Vulnerabilities

ruby Updated 01 Jul 2026

Summary

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

ALSA-2026:33577: Important: ruby:4.0 security update. Affects ruby versions < 4.0.3-33.module_el9.8.0+273+a67497ba. Fixed in 4.0.3-33.module_el9.8.0+273+a67497ba. 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 an extensible, interpreted, object-oriented scripting language widely used for web development and system management tasks. It features a rich set of libraries and frameworks, making it a popular choice among developers. However, recent vulnerabilities have been identified in the Net::IMAP component of Ruby, which could lead to severe security risks, including Denial of Service (DoS) and command injection attacks.

Vulnerability Detail

The vulnerabilities stem from improper handling of crafted IMAP responses, which can lead to Denial of Service (CVE-2026-42245), command injection through symbol arguments (CVE-2026-42258), and information disclosure via man-in-the-middle attacks that bypass TLS (CVE-2026-42246). These issues can allow attackers to disrupt service, execute arbitrary commands, or intercept sensitive information.

How To Fix

Minimum fixed version

4.0.3-33.module_el9.8.0+273+a67497ba

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, you can restrict access to the IMAP service or implement additional network security controls to mitigate the risk of exploitation until the update is applied.

Conclusion

In summary, the identified vulnerabilities in Ruby's Net::IMAP component pose significant security risks that can be mitigated through timely updates. It is crucial for developers and system administrators to stay informed and take appropriate action to protect their applications.

See every vulnerability recorded for ruby →

Share this vulnerability

FAQ

The vulnerabilities can lead to Denial of Service, command injection, and information disclosure, potentially compromising the security of applications using Ruby.

You can use the Vulert platform to monitor and alert for open-source vulnerabilities in your software. Visit Vulert Scanner to check your application without any signup.

The vulnerabilities affect Ruby versions prior to 4.0.3-33.module_el9.8.0+273+a67497ba.

Yes, if exploited, these vulnerabilities could lead to unauthorized access to sensitive data, potentially resulting in data loss.

If immediate updating is not possible, consider implementing network security measures to limit exposure and monitor for unusual activity.

Related vulnerabilities

Recent vulnerabilities recorded for ruby.

How To Fix

Minimum fixed version

4.0.3-33.module_el9.8.0+273+a67497ba

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