Critical DoS Vulnerability in REXML Affecting Ruby Packages

jruby Updated 03 Oct 2025

Summary

16/07/2024
N/A
No i
Medium
4.3

UBUNTU-CVE-2024-39908: REXML is an XML toolkit for Ruby. Affects jruby versions 1.5.6-5ubuntu1 – 1.5.6-9+deb8u2build0.14.04.1~esm2. No fix is published. 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

REXML is an XML toolkit for Ruby, widely used for parsing and manipulating XML data. It provides a simple and efficient way to handle XML documents in Ruby applications. However, recent vulnerabilities have been identified in the REXML gem, specifically versions prior to 3.3.1, which can lead to Denial of Service (DoS) attacks when processing untrusted XML inputs.

Vulnerability Detail

The vulnerability arises from the way REXML handles certain specific characters in XML documents, such as '<', '0', and '%>'. Attackers can exploit this flaw by crafting XML inputs that trigger excessive resource consumption, potentially leading to application crashes or unresponsiveness. This vulnerability is particularly concerning for applications that parse untrusted XML data, as it can be exploited without authentication or user interaction.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Workaround

If upgrading is not immediately feasible, users are advised to avoid parsing untrusted XML strings. Implement input validation to sanitize XML data before processing it with REXML.

Conclusion

The REXML vulnerability poses a significant risk to Ruby applications that process untrusted XML data. Users are strongly encouraged to upgrade to the patched version to mitigate potential attacks. For those unable to upgrade, implementing workarounds and using tools like Vulert can help manage the risk effectively.

See every vulnerability recorded for jruby →

Share this vulnerability

FAQ

REXML is a Ruby library for parsing and manipulating XML documents, providing a simple interface for developers.

Exploiting this vulnerability can lead to Denial of Service (DoS), causing applications to crash or become unresponsive when processing malicious XML.

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 signup.

If an upgrade is not possible, avoid parsing untrusted XML inputs and implement input validation to mitigate the risk.

The CVSS score for this vulnerability is 4.3, indicating a medium severity level.

Related vulnerabilities

Recent vulnerabilities recorded for jruby.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. 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