Skip to main content
CVE-2024-39908VulnerabilityPublished Updated

CVE-2024-39908: ruby rexml · Uncontrolled Resource Consumption

Affects ruby rexmlSource CVE Database V5

0

Not known to be exploited · CVSS 4.3 Medium : upgrade to 3.3.2 when convenient.

Data as of 25 Oct 2026, 19:02 UTC

CVSS 3.1 base score
4.3Medium
How severe the flaw is on the 0–10 CVSS scale.
EPSS
1.4% chance of exploitation in 30 days – higher than 73% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
Patch
Available – fixed in 3.3.2
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:L

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 16 Jul 2024

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponised: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 2026-10-25.

What to do

Upgrade ruby rexml to 3.3.2.

Affected software

ProductAffectedFixed in
RubyGemsrexmlpkg:gem/rexmlOther threatsAffected
  • <3.3.2
Fixed in
  • 3.3.2

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

The primary mitigation is to upgrade the REXML gem to version 3.3.2 or later, which contains patches addressing the uncontrolled resource consumption issue. Organizations should audit their Ruby application dependencies to identify and update vulnerable REXML versions promptly. For environments where upgrading is not immediately feasible, it is critical to implement strict input validation and sanitization to prevent parsing of untrusted or malformed XML data. Employing XML parsing libraries with built-in protections against resource exhaustion or switching to alternative XML parsers with better security profiles may also be considered. Additionally, rate limiting and resource usage monitoring on services that parse XML can help detect and mitigate potential DoS attempts. Incorporating application-layer firewalls or XML gateways that filter suspicious XML payloads can provide an additional security layer. Finally, educating developers and system administrators about the risks of parsing untrusted XML and enforcing secure coding practices will reduce exposure.

Description

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.

References

Community reviews

Loading reviews…