Moderate Vulnerability in Ruby Package: Security Update Required
Summary
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 ↓
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.
No signup required · Results in about 60 seconds
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 →
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.