CVE-2024-41123: ruby rexml · Uncontrolled Resource Consumption
Affects ruby rexmlSource CVE Database V5
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
- 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:LExploitation evidence
Disclosed: evidence found.
CVE published 1 Aug 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.3.3.
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
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
- github.com/ruby/rexml/security/advisories/GHSA-r55c-59qm-vjw6 (opens in a new tab)
- github.com/ruby/rexml/security/advisories/GHSA-4xqq-m2hx-25v8 (opens in a new tab)
- github.com/ruby/rexml/security/advisories/GHSA-vg3r-rm7w-2xgh (opens in a new tab)
- ruby-lang.org/en/news/2024/08/01/dos-rexml-cve-2024-41123 (opens in a new tab)
- security.netapp.com/advisory/ntap-20241227-0005/ (opens in a new tab)
- lists.debian.org/debian-lts-announce/2025/01/msg00011.html (opens in a new tab)