REXML XML gem DoS via special chars, fixed in 3.3.2
CVE-2024-39908 Published on July 16, 2024

Denial of service in REXML
REXML is an XML toolkit for Ruby. The REXML gem before 3.3.1 has some DoS vulnerabilities when it parses an XML that has many specific characters such as `<`, `0` and `%>`. If you need to parse untrusted XMLs, you many be impacted to these vulnerabilities. The REXML gem 3.3.2 or later include the patches to fix these vulnerabilities. Users are advised to upgrade. Users unable to upgrade should avoid parsing untrusted XML strings.

Github Repository NVD

Vulnerability Analysis

CVE-2024-39908 is exploitable with network access, requires user interaction. This vulnerability is considered to have a low attack complexity. The potential impact of an exploit of this vulnerability is considered to have no impact on confidentiality and integrity, and a small impact on availability.

Attack Vector:
NETWORK
Attack Complexity:
LOW
Privileges Required:
NONE
User Interaction:
REQUIRED
Scope:
UNCHANGED
Confidentiality Impact:
NONE
Integrity Impact:
NONE
Availability Impact:
LOW

Weakness Type

What is a Resource Exhaustion Vulnerability?

The software does not properly control the allocation and maintenance of a limited resource, thereby enabling an actor to influence the amount of resources consumed, eventually leading to the exhaustion of available resources.

CVE-2024-39908 has been classified to as a Resource Exhaustion vulnerability or weakness.


Products Associated with CVE-2024-39908

stack.watch emails you whenever new vulnerabilities are published in Canonical Ubuntu Linux or Ruby Programming Language Rexml. Just hit a watch button to start following.

 
 

Affected Versions

ruby rexml: ruby-lang rexml:

Vulnerable Packages

The following package name and versions may be associated with CVE-2024-39908

Package Manager Vulnerable Package Versions Fixed In
rubygems rexml < 3.3.2 3.3.2

Exploit Probability

EPSS
7.26%
Percentile
91.48%

EPSS (Exploit Prediction Scoring System) scores estimate the probability that a vulnerability will be exploited in the wild within the next 30 days. The percentile shows you how this score compares to all other vulnerabilities.