Critical Security Update for Ruby Package: Addressing Vulnerabilities in Ruby and Related Gems

ruby Updated 01 Jul 2026

Summary

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

RHSA-2026:33630: Red Hat Security Advisory: ruby security update. Affects ruby versions < 0:3.0.7-162.el9_4.3. Fixed in 0:3.0.7-162.el9_4.3. 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 MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

Ruby is a dynamic, open-source programming language known for its simplicity and productivity. It is widely used for web development, particularly in conjunction with the Ruby on Rails framework. The Ruby ecosystem includes various packages and gems that enhance its functionality. However, recent vulnerabilities have been identified that could compromise the security of applications built with Ruby, necessitating immediate attention from developers and system administrators.

Vulnerability Detail

The vulnerabilities identified in the Ruby package, specifically CVE-2026-42246 and CVE-2026-42258, stem from flaws in the handling of certain inputs and data processing. These vulnerabilities could allow attackers to execute arbitrary code, leading to unauthorized access or data breaches. The potential ramifications include loss of sensitive information, disruption of services, and exploitation of affected systems. It is crucial for users to understand the technical aspects of these vulnerabilities to mitigate risks effectively.

How To Fix

Minimum fixed version

0:3.0.7-162.el9_4.3

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

If immediate updating is not feasible, consider implementing input validation and sanitization measures in your applications to mitigate the risk of exploitation until the updates can be applied. Additionally, restricting access to sensitive functionalities can help reduce exposure.

Conclusion

In summary, the identified vulnerabilities in the Ruby package pose significant risks to applications built with this language. It is imperative for developers and system administrators to update their Ruby installations and related gems to the patched versions to safeguard against potential exploits. Utilizing tools like Vulert can aid in monitoring and managing these vulnerabilities effectively.

See every vulnerability recorded for ruby →

Share this vulnerability

FAQ

The vulnerabilities are identified as CVE-2026-42246 and CVE-2026-42258, which involve flaws in input handling that could lead to arbitrary code execution.

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

The CVSS score for these vulnerabilities is 7.4, indicating a high severity level that requires prompt action.

Implement input validation and restrict access to sensitive functionalities as a temporary workaround until you can apply the necessary updates.

Detailed information can be found in the Red Hat Security Advisory and the CVE listings for CVE-2026-42246 and CVE-2026-42258.

Related vulnerabilities

Recent vulnerabilities recorded for ruby.

How To Fix

Minimum fixed version

0:3.0.7-162.el9_4.3

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