Moderate Vulnerability in Ruby Package: Security Update Required

ruby Updated 02 Oct 2025

Summary

14/05/2025
N/A
Yes i
Unrated
Not published

ALSA-2025:7539: Moderate: ruby:2.5 security update. Affects ruby versions < 2.5.9-114.module_el8.10.0+3991+5e651d4e. Fixed in 2.5.9-114.module_el8.10.0+3991+5e651d4e. 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 offers features for processing text files and managing system resources efficiently. However, recent vulnerabilities have been identified that could lead to severe security risks if not addressed promptly.

Vulnerability Detail

The vulnerability stems from an integer overflow in the search_in_range function within the oniguruma library, leading to potential out-of-bounds read (CVE-2019-19012). Additionally, an unexpected code execution vulnerability in Gemfiles has been identified in rubygem-bundler (CVE-2021-43809). These vulnerabilities can allow attackers to execute arbitrary code or read sensitive data, posing significant risks to applications relying on these packages.

How To Fix

Minimum fixed version

2.5.9-114.module_el8.10.0+3991+5e651d4e

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, consider limiting the use of the affected libraries or implementing additional security measures such as input validation and sanitization to mitigate the risks until the packages can be updated.

Conclusion

The identified vulnerabilities in Ruby packages pose a moderate risk to applications. It is crucial to update to the patched versions to mitigate these risks. Regular monitoring and adherence to security practices will help maintain the integrity of your applications.

See every vulnerability recorded for ruby →

Share this vulnerability

FAQ

The vulnerabilities include an integer overflow leading to out-of-bounds read and unexpected code execution in Gemfiles.

You can use the Vulert playground at Vulert Scanner to check if your application is affected by these vulnerabilities without needing to sign up.

Failure to address these vulnerabilities can lead to unauthorized code execution, data breaches, and potential system compromises.

Yes, Ruby versions prior to 2.5.9-114.module_el8.10.0+3991+5e651d4e are affected by these vulnerabilities.

Regularly update your Ruby packages, monitor for vulnerabilities using tools like Vulert, and implement security best practices in your code.

Related vulnerabilities

Recent vulnerabilities recorded for ruby.

How To Fix

Minimum fixed version

2.5.9-114.module_el8.10.0+3991+5e651d4e

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