Critical Security Flaw in Ruby Package: ERB Arbitrary Code Execution Vulnerability

ruby Updated 19 May 2026

Summary

19/05/2026
N/A
Yes i
High
8.1

RLSA-2026:18065: Important: ruby security update. Affects ruby versions < 0:3.3.10-12.el10_1. Fixed in 0:3.3.10-12.el10_1. 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 a dynamic, interpreted, object-oriented scripting language known for its simplicity and productivity. It is widely used for web development, particularly with the Ruby on Rails framework. The language includes features for text processing and system management, making it versatile for various applications. However, a recent security vulnerability has been identified in the ERB (Embedded Ruby) component, which could allow for arbitrary code execution through a deserialization bypass.

Vulnerability Detail

The vulnerability, identified as CVE-2026-41316, arises from a flaw in the ERB component of Ruby, which can be exploited to execute arbitrary code. This issue occurs due to improper handling of deserialization, allowing attackers to craft malicious input that can bypass security checks. The potential ramifications include unauthorized access to sensitive data, system compromise, and the ability to execute arbitrary commands on the server running the affected Ruby application. The CVSS score for this vulnerability is 8.1, indicating a high severity level.

How To Fix

Minimum fixed version

0:3.3.10-12.el10_1

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 patching is not feasible, consider implementing input validation to sanitize user inputs and prevent malicious data from being processed by the ERB component. This can help reduce the risk of exploitation until the package can be updated.

Conclusion

The identified vulnerability in the Ruby package's ERB component poses a significant risk to applications utilizing this language. It is crucial for developers and system administrators to apply the necessary updates to protect their systems from potential exploitation. Regular monitoring and vulnerability management practices, such as those offered by Vulert, can further enhance security.

See every vulnerability recorded for ruby →

Share this vulnerability

FAQ

CVE-2026-41316 is a security vulnerability in the Ruby programming language's ERB component that allows for arbitrary code execution via deserialization bypass.

You can use Vulert's playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.

Exploitation of this vulnerability can lead to unauthorized access, data breaches, and the execution of arbitrary commands on the server.

Run the command 'sudo yum update ruby' in your terminal to update to the patched version of Ruby.

The CVSS score for this vulnerability is 8.1, indicating a high severity level.

Related vulnerabilities

Recent vulnerabilities recorded for ruby.

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:3.3.10-12.el10_1

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