Skip to main content
VulnerabilityPublished Updated

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

Affects ruby rexmlSource CVE Database V5

0

Not known to be exploited · CVSS 5.3 Medium : upgrade to 3.3.3 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
1.2% chance of exploitation in 30 days – higher than 69% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
Patch
Available – fixed in 3.3.3
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 1 Aug 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.3.3.

Affected software

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

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

AI-suggested

European organizations should take the following specific mitigation steps: 1) Identify all Ruby environments and applications using the REXML gem and determine the version in use. 2) Upgrade REXML to version 3.3.3 or later, which contains patches addressing the resource consumption issue. 3) If immediate upgrade is not feasible, implement input validation and filtering to detect and block XML payloads containing suspicious patterns such as excessive whitespace or problematic character sequences (">]", "]>"). 4) Employ rate limiting and anomaly detection on XML processing endpoints to mitigate potential abuse. 5) Monitor application logs and resource usage metrics for unusual spikes during XML parsing operations. 6) Consider deploying Web Application Firewalls (WAFs) with custom rules to detect and block malicious XML payloads targeting this vulnerability. 7) Incorporate this vulnerability into vulnerability management and patching cycles to ensure timely updates. 8) Educate developers and DevOps teams about secure XML parsing practices and the importance of using updated libraries.

Description

REXML is an XML toolkit for Ruby. The REXML gem before 3.3.2 has some DoS vulnerabilities when it parses an XML that has many specific characters such as whitespace character, `>]` and `]>`. The REXML gem 3.3.3 or later include the patches to fix these vulnerabilities.

References

Community reviews

Loading reviews…