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

rubygem-mysql2 Updated 01 Jul 2026

Summary

01/07/2026
N/A
Yes i
High
7.4

RLSA-2026:33577: Important: ruby:4.0 security update. Affects rubygem-mysql2 versions < 0:0.5.7-1.module+el9.8.0+40094+ce01217c. Fixed in 0:0.5.7-1.module+el9.8.0+40094+ce01217c. 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 Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

Background

Ruby is an extensible, interpreted, object-oriented scripting language widely used for web development and system management tasks. It offers powerful features for processing text files and managing system operations. However, recent vulnerabilities have been identified in Ruby's net-imap library, which can lead to severe security risks, including Denial of Service and command injection attacks.

Vulnerability Detail

The vulnerabilities in the Ruby net-imap library include a Denial of Service (DoS) via crafted IMAP responses (CVE-2026-42245), IMAP command injection through symbol arguments (CVE-2026-42258), and information disclosure via a man-in-the-middle attack that bypasses TLS (CVE-2026-42246). These vulnerabilities can allow attackers to disrupt service, execute unauthorized commands, or intercept sensitive information, posing significant risks to applications relying on these libraries.

How To Fix

Minimum fixed version

0:0.5.7-1.module+el9.8.0+40094+ce01217c

This is the first release that contains the fix.

sudo dnf update rubygem-mysql2

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

Workaround

As a temporary measure, consider disabling the use of the net-imap library in your application until the packages can be updated. This may involve modifying your application code to avoid reliance on IMAP functionalities.

Conclusion

The vulnerabilities in Ruby's net-imap library pose significant risks, including Denial of Service and command injection attacks. It is crucial to update the affected packages to their patched versions to mitigate these risks. Utilizing tools like Vulert can help monitor and manage vulnerabilities effectively.

See every vulnerability recorded for rubygem-mysql2 →

Share this vulnerability

FAQ

The main vulnerabilities include Denial of Service via crafted IMAP responses, command injection via symbol arguments, and information disclosure through TLS bypass.

You can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time. Check your application against the vulnerability using the Vulert playground without needing to sign up.

The CVSS score for these vulnerabilities is 7.4, indicating a high severity level.

If immediate updates are not possible, consider disabling the net-imap library in your application as a temporary workaround.

The Rocky Enterprise Software Foundation and Red Hat have acknowledged these vulnerabilities and provided the necessary updates.

Related vulnerabilities

Recent vulnerabilities recorded for rubygem-mysql2.

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

How To Fix

Minimum fixed version

0:0.5.7-1.module+el9.8.0+40094+ce01217c

This is the first release that contains the fix.

sudo dnf update rubygem-mysql2

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