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.
CVE-2024-43398 - Medium Severity Vulnerability
Vulnerable Library - rexml-3.2.5.gem
An XML toolkit for Ruby
Library home page: https://rubygems.org/gems/rexml-3.2.5.gem
Path to dependency file: /Gemfile.lock
Path to vulnerable library: /home/wss-scanner/.gem/ruby/3.2.0/cache/rexml-3.2.5.gem
Dependency Hierarchy: - manageiq-style-1.3.1.gem (Root Library) - rubocop-performance-1.11.5.gem - rubocop-1.22.1.gem - :x: **rexml-3.2.5.gem** (Vulnerable Library)
Found in base branch: master
Vulnerability Details
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.
Publish Date: 2024-08-22
URL: CVE-2024-43398
CVSS 3 Score Details (5.9)
Base Score Metrics: - Exploitability Metrics: - Attack Vector: Network - Attack Complexity: High - Privileges Required: None - User Interaction: None - Scope: Unchanged - Impact Metrics: - Confidentiality Impact: None - Integrity Impact: None - Availability Impact: High
For more information on CVSS3 Scores, click here.Suggested Fix
Type: Upgrade version
Origin: https://github.com/ruby/rexml/security/advisories/GHSA-vmwr-mc7x-5vc3
Release Date: 2024-08-22
Fix Resolution: rexml - 3.3.6
Step up your Open Source Security Game with Mend here