CVE-2024-35176: ruby rexml · Uncontrolled Resource Consumption
Affects ruby rexmlSource CVE Database V5
Not known to be exploited · CVSS 5.3 Medium : upgrade to 3.2.7 when convenient.
Data as of 26 Oct 2026, 09:15 UTC
- EPSS
- 2.0% chance of exploitation in 30 days – higher than 81% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Patch
- Available – fixed in 3.2.7
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:LExploitation evidence
Disclosed: evidence found.
CVE published 16 May 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 26 Oct 2026.
What to do
Upgrade ruby rexml to 3.2.7.
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
1. Upgrade all Ruby environments using the REXML gem to version 3.2.7 or later immediately to apply the official patch. 2. Audit all applications and services that parse XML data to identify usage of vulnerable REXML versions. 3. Implement input validation and sanitization to reject XML inputs containing suspiciously large numbers of '<' characters or other malformed constructs before parsing. 4. Where possible, avoid parsing XML from untrusted or unauthenticated sources. 5. Introduce resource limits and timeouts on XML parsing operations to prevent excessive CPU or memory consumption. 6. Monitor application logs and resource usage metrics for signs of abnormal spikes during XML processing. 7. Employ Web Application Firewalls (WAFs) or XML gateways that can detect and block malicious XML payloads targeting this vulnerability. 8. Educate development teams about secure XML parsing practices and the risks of uncontrolled resource consumption. 9. Establish incident response plans to quickly address denial of service events related to XML parsing. 10. Regularly review and update dependencies to incorporate security patches promptly.
Description
REXML is an XML toolkit for Ruby. The REXML gem before 3.2.6 has a denial of service vulnerability when it parses an XML that has many `<`s in an attribute value. Those who need to parse untrusted XMLs may be impacted to this vulnerability. The REXML gem 3.2.7 or later include the patch to fix this vulnerability. As a workaround, don't parse untrusted XMLs.
References
- github.com/ruby/rexml/security/advisories/GHSA-vg3r-rm7w-2xgh (opens in a new tab)
- github.com/ruby/rexml/commit/4325835f92f3f142ebd91a3fdba4e1f1ab7f1cfb (opens in a new tab)
- ruby-lang.org/en/news/2024/05/16/dos-rexml-cve-2024-35176 (opens in a new tab)
- security.netapp.com/advisory/ntap-20250306-0001/ (opens in a new tab)
- lists.debian.org/debian-lts-announce/2025/01/msg00011.html (opens in a new tab)