REDHAT-BUG-2307297: Medium severity Ruby REXML vulnerability
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
Event History
Frequently Asked Questions
What is the severity of REDHAT-BUG-2307297?
The severity of REDHAT-BUG-2307297 is classified as a DoS vulnerability.
How do I fix REDHAT-BUG-2307297?
To fix REDHAT-BUG-2307297, you should upgrade the REXML gem to version 3.3.6 or later.
What is the impact of REDHAT-BUG-2307297?
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.
Which versions of REXML are affected by REDHAT-BUG-2307297?
REXML versions prior to 3.3.6 are affected by REDHAT-BUG-2307297.
What should I do if I use REXML for untrusted XMLs related to 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.