Critical Security Update for Ruby Package: Denial of Service and Code Execution Vulnerabilities

ruby Updated 27 May 2026

Summary

26/05/2026
N/A
Yes i
Unrated
Not published

ALSA-2026:20596: Important: ruby:4.0 security update. Affects ruby versions < 4.0.3-32.module_el9.8.0+251+5fdbd96b. Fixed in 4.0.3-32.module_el9.8.0+251+5fdbd96b. 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 ecosystem of libraries and frameworks, making it a popular choice among developers. However, recent vulnerabilities have been identified in Ruby, particularly affecting its JSON processing and ERB templating functionalities, which could lead to severe security risks.

Vulnerability Detail

The vulnerabilities stem from two main issues: a Denial of Service (DoS) or Information Disclosure via format string injection in the Ruby JSON library (CVE-2026-33210) and arbitrary code execution through deserialization bypass in the ERB templating system (CVE-2026-41316). These vulnerabilities could allow attackers to exploit the affected systems, potentially leading to unauthorized access or service disruptions.

How To Fix

Minimum fixed version

4.0.3-32.module_el9.8.0+251+5fdbd96b

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, users can limit the exposure of their applications by sanitizing inputs and avoiding the use of untrusted data in JSON processing and ERB templates until the update is applied.

Conclusion

The identified vulnerabilities in Ruby pose significant risks, including potential Denial of Service and arbitrary code execution. It is essential for users to update their Ruby installations to the latest patched versions to safeguard their applications. Utilizing tools like Vulert can further enhance security by providing real-time monitoring for vulnerabilities.

See every vulnerability recorded for ruby →

Share this vulnerability

FAQ

The main vulnerabilities are a Denial of Service or Information Disclosure via format string injection in the JSON library and arbitrary code execution via deserialization bypass in the ERB templating system.

You can use Vulert to monitor and alert for open-source vulnerabilities in your software. Visit Vulert Scanner to check if your application is affected without needing to sign up.

If immediate updates are not possible, consider implementing input sanitization and restricting the use of untrusted data in your applications to mitigate risks.

Detailed information about the vulnerabilities can be found on the respective CVE pages: CVE-2026-33210 and CVE-2026-41316.

Vulert is a tool that monitors open-source vulnerabilities in your software using a manifest file like package-lock.json. It provides real-time alerts for vulnerabilities, helping you maintain security.

Related vulnerabilities

Recent vulnerabilities recorded for ruby.

How To Fix

Minimum fixed version

4.0.3-32.module_el9.8.0+251+5fdbd96b

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