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

ruby Updated 27 May 2026

Summary

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

ALSA-2026:20614: Important: ruby:3.3 security update. Affects ruby versions < 3.3.10-6.module_el8.10.0+4183+69a3c42f. Fixed in 3.3.10-6.module_el8.10.0+4183+69a3c42f. 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 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, the recent vulnerability discovered in the ERB (Embedded Ruby) component poses a significant risk, allowing for arbitrary code execution through deserialization bypass, which can lead to severe security breaches.

Vulnerability Detail

The vulnerability identified as CVE-2026-41316 affects the ERB component of Ruby, allowing attackers to execute arbitrary code by exploiting a deserialization bypass. This flaw arises from improper handling of serialized data, enabling malicious actors to craft inputs that can manipulate the execution flow of the application. The potential ramifications include unauthorized access to sensitive data, system compromise, and the ability to execute arbitrary commands on the server.

How To Fix

Minimum fixed version

3.3.10-6.module_el8.10.0+4183+69a3c42f

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 workaround, it is recommended to avoid using the ERB component for processing untrusted input until the update can be applied. Implement strict input validation and sanitization to mitigate the risk of exploitation.

Conclusion

The vulnerability CVE-2026-41316 in Ruby's ERB component poses a significant security risk, allowing for arbitrary code execution. It is essential to update to the patched version promptly and implement recommended workarounds to safeguard your applications.

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 a deserialization bypass.

You can use Vulert's playground at Vulert Scanner to check if your application is affected by this vulnerability without requiring any signup.

The consequences include unauthorized access to sensitive data, potential system compromise, and the ability to execute arbitrary commands on the server.

You can update your Ruby packages using the command 'sudo dnf update ruby' to ensure you are using the patched version.

Yes, as a temporary measure, avoid using the ERB component for untrusted input and implement strict input validation and sanitization.

Related vulnerabilities

Recent vulnerabilities recorded for ruby.

How To Fix

Minimum fixed version

3.3.10-6.module_el8.10.0+4183+69a3c42f

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