CVE-2024-35176: REXML contains a denial of service vulnerability
Impact
The REXML gem before 3.2.6 has a DoS vulnerability when it parses an XML that has many <s in an attribute value.
If you need to parse untrusted XMLs, you may be impacted to this vulnerability.
Patches
The REXML gem 3.2.7 or later include the patch to fix this vulnerability.
Workarounds
Don't parse untrusted XMLs.
References
https://www.ruby-lang.org/en/news/2024/05/16/dos-rexml-cve-2024-35176/
Other sources
REXML contains a denial of service vulnerability
— Microsoft
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.
— Launchpad
Affected Software
Remediation
Event History
Frequently Asked Questions
What is the severity of CVE-2024-35176?
CVE-2024-35176 has a denial of service (DoS) severity, affecting the REXML gem versions prior to 3.2.7.
How do I fix CVE-2024-35176?
To fix CVE-2024-35176, upgrade the REXML gem to version 3.2.7 or later.
Who is affected by CVE-2024-35176?
Users of REXML gem versions before 3.2.7 that parse untrusted XML data are particularly affected by CVE-2024-35176.
What versions of REXML are vulnerable to CVE-2024-35176?
REXML gem versions earlier than 3.2.7 are vulnerable to CVE-2024-35176.
Is there an alternative to REXML if I cannot update to fix CVE-2024-35176?
If you cannot update REXML, consider using other XML parsing libraries that do not have this vulnerability.