Critical Security Flaw in Ruby: Arbitrary Code Execution via ERB Deserialization Bypass

ruby Updated 20 May 2026

Summary

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

ALSA-2026:18065: Important: ruby security update. Affects ruby versions < 3.3.10-12.el10_1. Fixed in 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 an extensible, interpreted, object-oriented scripting language widely used for web development and system management tasks. It features a rich ecosystem of libraries and tools, making it a popular choice among developers. However, recent vulnerabilities have raised concerns about its security, particularly regarding the ERB (Embedded Ruby) templating system, which can lead to severe security risks if not addressed promptly.

Vulnerability Detail

The vulnerability identified as CVE-2026-41316 allows for arbitrary code execution through a deserialization bypass in the ERB component of Ruby. This flaw can be exploited by an attacker to execute malicious code on a server running an affected version of Ruby, potentially leading to unauthorized access, data breaches, and system compromise. The issue arises from improper handling of serialized data, which can be manipulated to bypass security checks.

How To Fix

Minimum fixed version

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 an immediate update is not feasible, consider implementing strict input validation and sanitization for any data processed by ERB templates. This can help mitigate the risk of exploitation until a full update can be performed.

Conclusion

The vulnerability CVE-2026-41316 poses a significant risk to Ruby applications, allowing for arbitrary code execution through a deserialization bypass. It is crucial to update affected packages to the patched versions to mitigate this risk. Regular monitoring and updates are essential for maintaining the security of your applications.

See every vulnerability recorded for ruby →

Share this vulnerability

FAQ

CVE-2026-41316 is a security vulnerability in Ruby's ERB component that allows for arbitrary code execution through a 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.

Failing to address this vulnerability can lead to unauthorized access, data breaches, and potential system compromise, putting sensitive information at risk.

It is recommended to regularly check for updates and apply them promptly to ensure that you are protected against known vulnerabilities.

Vulert is a tool that monitors and alerts in real-time for open-source vulnerabilities in software, using just a manifest file like package-lock.json.

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

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