Moderate Security Update for Ruby: Addressing DoS Vulnerabilities in REXML

ruby Updated 02 Oct 2025

Summary

18/09/2024
N/A
Yes i
Unrated
Not published

ALSA-2024:6784: Moderate: ruby:3.3 security update. Affects ruby versions < 3.3.5-3.module_el8.10.0+3894+6d587c81. Fixed in 3.3.5-3.module_el8.10.0+3894+6d587c81. 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 Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

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 in the REXML library, which is responsible for XML parsing in Ruby. These vulnerabilities can lead to Denial of Service (DoS) attacks, impacting the performance and availability of applications that rely on Ruby.

Vulnerability Detail

The vulnerabilities in the REXML library stem from its handling of XML documents containing specific characters, such as whitespace and certain delimiters. Attackers can exploit these weaknesses to craft malicious XML files that, when parsed, can consume excessive resources, leading to application crashes or unresponsiveness. The identified CVEs include CVE-2024-39908, CVE-2024-41123, CVE-2024-41946, and CVE-2024-43398, each detailing different aspects of the DoS vulnerabilities.

How To Fix

Minimum fixed version

3.3.5-3.module_el8.10.0+3894+6d587c81

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 immediate updating is not feasible, consider implementing input validation to sanitize XML inputs and limit the size of XML documents processed by your application. This can help mitigate the risk of DoS attacks until the update is applied.

Conclusion

The identified vulnerabilities in the REXML library pose a significant risk to Ruby applications, particularly those that process XML data. It is crucial for developers to update their Ruby installations to the latest version to mitigate these risks and ensure the security and stability of their applications.

See every vulnerability recorded for ruby →

Share this vulnerability

FAQ

REXML is a Ruby library used for parsing and manipulating XML documents. It is included in the standard library of Ruby.

DoS stands for Denial of Service, a type of attack that aims to make a service unavailable by overwhelming it with requests or exploiting vulnerabilities.

You can use Vulert, which monitors open-source vulnerabilities in your software by analyzing your manifest file. Visit Vulert Scanner to check your application without needing to sign up.

Implement input validation and limit the size of XML documents processed by your application as a temporary measure until you can apply the update.

While specific exploits may not be publicly available, the vulnerabilities can be exploited by crafting malicious XML documents designed to trigger the DoS conditions.

Related vulnerabilities

Recent vulnerabilities recorded for ruby.

How To Fix

Minimum fixed version

3.3.5-3.module_el8.10.0+3894+6d587c81

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