CVE-2024-39908: ruby rexml · Uncontrolled Resource Consumption
Affects ruby rexmlSource CVE Database V5
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
- 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:LExploitation evidence
Disclosed: evidence found.
CVE published 16 Jul 2024
Detectable: no evidence on record.
No public nuclei template indexed
Weaponised: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by 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
| Product | Affected | Fixed in |
|---|---|---|
RubyGemsrexmlpkg:gem/rexmlOther threats | Affected
| Fixed in
|
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
- github.com/ruby/rexml/security/advisories/GHSA-4xqq-m2hx-25v8 (opens in a new tab)
- ruby-lang.org/en/news/2024/07/16/dos-rexml-cve-2024-39908 (opens in a new tab)
- security.netapp.com/advisory/ntap-20250117-0008/ (opens in a new tab)
- lists.debian.org/debian-lts-announce/2025/01/msg00011.html (opens in a new tab)