First published: Thu Aug 22 2024(Updated: )
REXML is an XML toolkit for Ruby. The REXML gem before 3.3.6 has a DoS vulnerability when it parses an XML that has many deep elements that have same local name attributes. If you need to parse untrusted XMLs with tree parser API like REXML::Document.new, you may be impacted to this vulnerability. If you use other parser APIs such as stream parser API and SAX2 parser API, this vulnerability is not affected. The REXML gem 3.3.6 or later include the patch to fix the vulnerability.
Affected Software | Affected Version | How to fix |
---|---|---|
Ruby REXML | <3.3.6 |
Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.
The severity of REDHAT-BUG-2307297 is classified as a DoS vulnerability.
To fix REDHAT-BUG-2307297, you should upgrade the REXML gem to version 3.3.6 or later.
The impact of REDHAT-BUG-2307297 is that it allows for denial of service during the parsing of deeply nested XML elements with same local name attributes.
REXML versions prior to 3.3.6 are affected by REDHAT-BUG-2307297.
If you use REXML for untrusted XMLs, it is recommended to avoid using the tree parser API or ensure you have updated to version 3.3.6 or later to mitigate the vulnerability.