Critical Security Update for Ruby Packages: REXML ReDoS Vulnerability

ruby Updated 02 Oct 2025

Summary

05/12/2024
N/A
Yes i
Unrated
Not published

ALSA-2024:10860: Important: ruby:3.1 security update. Affects ruby versions < 3.1.5-145.module_el9.5.0+129+9ba7e8b1. Fixed in 3.1.5-145.module_el9.5.0+129+9ba7e8b1. 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 Devnack Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

Ruby is an extensible, interpreted, object-oriented scripting language widely used for web development and system management tasks. It features a rich set of libraries and tools, making it a popular choice among developers. However, recent vulnerabilities have been identified, particularly affecting the REXML library, which is used for XML parsing. This vulnerability can lead to significant security risks if not addressed promptly.

Vulnerability Detail

The vulnerability identified as CVE-2024-49761 is a Regular Expression Denial of Service (ReDoS) issue in the REXML library. This vulnerability arises from the way certain regular expressions are processed, allowing an attacker to exploit the system by sending specially crafted XML data. The potential ramifications include service outages and degraded performance, as the system may become unresponsive under attack. It is crucial for developers to understand the technical aspects of this vulnerability to mitigate risks effectively.

How To Fix

Minimum fixed version

3.1.5-145.module_el9.5.0+129+9ba7e8b1

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 disabling the use of the REXML library if it is not critical to your application. Alternatively, you can implement input validation to filter out potentially malicious XML data until the update can be applied.

Conclusion

The REXML ReDoS vulnerability in Ruby packages poses a significant risk to applications relying on XML parsing. It is crucial to update affected packages promptly to mitigate potential security threats. Utilizing tools like Vulert can aid in monitoring and managing vulnerabilities effectively.

See every vulnerability recorded for ruby →

Share this vulnerability

FAQ

The REXML ReDoS vulnerability is a security flaw in the Ruby REXML library that allows attackers to exploit regular expressions, potentially causing denial of service.

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

Failure to address this vulnerability can lead to service disruptions, degraded performance, and potential data breaches.

Yes, you should update to version 3.1.5-145.module_el9.5.0+129+9ba7e8b1 or later to ensure the vulnerability is patched.

Vulert is a tool that monitors and alerts for open-source vulnerabilities in your software by analyzing a manifest file like package-lock.json. It helps you stay informed about potential security risks.

Related vulnerabilities

Recent vulnerabilities recorded for ruby.

How To Fix

Minimum fixed version

3.1.5-145.module_el9.5.0+129+9ba7e8b1

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