CVE Vulnerabilities

CVE-2024-43398

Improper Restriction of Recursive Entity References in DTDs ('XML Entity Expansion')

Published: Aug 22, 2024 | Modified: Jan 03, 2025
CVSS 3.x
N/A
Source:
NVD
CVSS 2.x
RedHat/V2
RedHat/V3
5.9 MODERATE
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
Ubuntu
MEDIUM

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.

Weakness

The product uses XML documents and allows their structure to be defined with a Document Type Definition (DTD), but it does not properly control the number of recursive definitions of entities.

Affected Software

Name Vendor Start Version End Version
Red Hat Enterprise Linux 8 RedHat ruby:3.3-8100020240906074654.489197e6 *
Red Hat Enterprise Linux 8 RedHat pcs-0:0.10.18-2.el8_10.2 *
Red Hat Enterprise Linux 8.6 Telecommunications Update Service RedHat pcs-0:0.10.12-6.el8_6.6 *
Red Hat Enterprise Linux 8.6 Update Services for SAP Solutions RedHat pcs-0:0.10.12-6.el8_6.6 *
Red Hat Enterprise Linux 8.8 Extended Update Support RedHat pcs-0:0.10.15-4.el8_8.3 *
Red Hat Enterprise Linux 9 RedHat ruby:3.3-9040020240906110954.9 *
Jruby Ubuntu trusty/esm *

Potential Mitigations

References