CVE Vulnerabilities

CVE-2024-43398

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

Published: Aug 22, 2024 | Modified: Nov 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
LOW
root.io logo minimus.io logo echo.ai logo

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

NameVendorStart VersionEnd Version
RexmlRuby-lang*3.3.6 (excluding)
Red Hat Enterprise Linux 8RedHatruby:3.3-8100020240906074654.489197e6*
Red Hat Enterprise Linux 8RedHatruby:3.1-8100020250407112943.489197e6*
Red Hat Enterprise Linux 8RedHatpcs-0:0.10.18-2.el8_10.2*
Red Hat Enterprise Linux 8.6 Telecommunications Update ServiceRedHatpcs-0:0.10.12-6.el8_6.6*
Red Hat Enterprise Linux 8.6 Update Services for SAP SolutionsRedHatpcs-0:0.10.12-6.el8_6.6*
Red Hat Enterprise Linux 8.8 Extended Update SupportRedHatpcs-0:0.10.15-4.el8_8.3*
Red Hat Enterprise Linux 9RedHatruby:3.3-9040020240906110954.9*
Red Hat Enterprise Linux 9RedHatruby:3.1-9050020250404144903.9*
Ruby2.7Ubuntuesm-infra/focal*
Ruby2.7Ubuntufocal*
Ruby3.0Ubuntujammy*
Ruby3.2Ubuntunoble*
Ruby3.3Ubuntudevel*
Ruby3.3Ubuntuoracular*
Ruby3.3Ubuntuplucky*
Ruby3.3Ubuntuquesting*
Ruby3.3Ubuntuupstream*

Potential Mitigations

References