Critical Security Update for ruby4.0: Addressing Denial of Service and Command Injection Vulnerabilities

ruby4.0 Updated 01 Jul 2026

Summary

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

ALSA-2026:33540: Important: ruby4.0 security update. Affects ruby4.0 versions < 4.0.3-35.el10_2. Fixed in 4.0.3-35.el10_2. 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 interpreted scripting language known for its simplicity and flexibility, widely used for web development and system management tasks. The ruby4.0 package provides essential tools and libraries for Ruby programming, including the net-imap library, which facilitates communication with IMAP servers. However, recent vulnerabilities have been identified that could compromise the security of applications relying on this package.

Vulnerability Detail

The vulnerabilities in ruby4.0 stem from issues within the net-imap library. Specifically, CVE-2026-42245 allows for Denial of Service attacks via crafted IMAP responses, potentially causing applications to crash or become unresponsive. CVE-2026-42258 presents an IMAP Command Injection risk through the use of Symbol Arguments, which could allow attackers to execute arbitrary commands. Additionally, CVE-2026-42246 exposes applications to information disclosure via man-in-the-middle attacks that bypass TLS encryption, compromising sensitive data.

How To Fix

Minimum fixed version

4.0.3-35.el10_2

This is the first release that contains the fix.

sudo dnf update ruby4.0

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

Workaround

As a temporary measure, users can mitigate the risk of these vulnerabilities by avoiding the use of the net-imap library until the package is updated. Additionally, implementing strict input validation and monitoring network traffic for unusual patterns may help reduce the risk of exploitation.

Conclusion

The ruby4.0 package has critical vulnerabilities that require immediate attention. By updating to the latest patched versions, users can protect their applications from potential attacks. Utilizing tools like Vulert can further enhance security by providing real-time monitoring for open-source vulnerabilities.

See every vulnerability recorded for ruby4.0 →

Share this vulnerability

FAQ

The vulnerabilities can lead to Denial of Service attacks, command injection, and information disclosure, potentially compromising application integrity and user data.

You can use Vulert, which monitors open-source vulnerabilities in your software. Simply upload your manifest file like package-lock.json to check for vulnerabilities.

Consider implementing workarounds such as avoiding the use of the net-imap library and enhancing input validation to mitigate risks until an update can be applied.

While specific exploits may not be publicly available, the nature of the vulnerabilities suggests that they could be exploited by attackers to disrupt services or gain unauthorized access.

Detailed information can be found on the CVE pages for CVE-2026-42245, CVE-2026-42246, and CVE-2026-42258, which provide insights into the vulnerabilities and their impacts.

Related vulnerabilities

Recent vulnerabilities recorded for ruby4.0.

How To Fix

Minimum fixed version

4.0.3-35.el10_2

This is the first release that contains the fix.

sudo dnf update ruby4.0

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