Skip to main content
VulnerabilityPublished Updated

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

Affects ruby rexmlSource CVE Database V5

0

Not known to be exploited · CVSS 5.3 Medium : upgrade to 3.2.7 when convenient.

Data as of 26 Oct 2026, 17:16 UTC

CVSS 3.1 base score
5.3Medium
How severe the flaw is on the 0–10 CVSS scale.
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:L

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 16 May 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 26 Oct 2026.

What to do

Upgrade ruby rexml to 3.2.7.

Affected software

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

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

Community reviews

Loading reviews…