CVE-2024-39908
Published: 16 July 2024
Summary
CVE-2024-39908 is a medium-severity Uncontrolled Resource Consumption (CWE-400) vulnerability in Ruby-Lang Rexml. Its CVSS base score is 4.3 (Medium).
Operationally, ranked in the top 7.5% of CVEs by exploit likelihood; it is not currently listed in the CISA KEV catalog.
Deeper analysis
REXML, the XML parsing toolkit bundled with Ruby, contains multiple denial-of-service flaws in all gem versions before 3.3.1. The defects are triggered when the parser processes documents containing large numbers of specific characters such as “<”, “0”, and “%>”, causing uncontrolled resource consumption (CWE-400) that can exhaust CPU or memory. The issue received a CVSS 4.3 rating reflecting network attack vectors that require user interaction to initiate parsing.
An attacker who can supply or influence an XML document processed by a vulnerable application can trigger the resource-exhaustion condition, resulting in application slowdown or crash. Because the attack requires the target to parse attacker-controlled input, it is most relevant to services that accept untrusted XML from remote users without prior validation or size limits.
The published advisories from the Ruby core team and the REXML GitHub repository state that the vulnerabilities are resolved in REXML 3.3.2 and later; users who cannot upgrade are advised to stop parsing untrusted XML entirely. Downstream distributors such as Debian have issued corresponding updates, and vendors including NetApp have published impact statements referencing the same remediation guidance. The associated EPSS score remains low (peak 0.0833) with no material post-disclosure increase.
EU & UK References
- 🇪🇺 ENISA EUVD: EUVD-2024-2251
Vulnerability details
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…
more
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.
- CWE(s)
Related Threats
No named actor attribution yet. ATT&CK technique mapping in progress for this CVE.
Affected Assets
Mitigating Controls
Likely Mitigating Controls AI
Per-CVE control mapping for this CVE has not run yet; the list below is derived from the weakness types (CWEs) cited in the NVD entry.
Limiting concurrent sessions directly prevents uncontrolled resource consumption by capping the number of active sessions per user or account.
Analysis identifies uncontrolled resource consumption indicative of denial-of-service or abuse attempts.
Contingency plan testing includes resource exhaustion scenarios to verify recovery, making it harder for attackers to sustain exploits that cause uncontrolled consumption.
Updated contingency plans include current procedures to detect, contain, and recover from resource exhaustion, limiting an attacker's ability to sustain impact from uncontrolled consumption.
Alternate site allows resumption of operations if resource exhaustion at the primary site is exploited to cause unavailability.
Alternate telecommunications services enable resumption of essential functions when primary services become unavailable due to uncontrolled resource consumption.
The team can analyze and respond to resource exhaustion incidents, reducing the impact of attacks that exploit uncontrolled consumption weaknesses.
Timely maintenance support and spare parts enable rapid recovery from failures induced by uncontrolled resource consumption, shortening the impact window of denial-of-service attacks.