CVE-2024-43398
Ruby-Lang Rexml ≤ 3.3.6
Raw vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:HSummary
CVE-2024-43398 is a medium-severity XML Entity Expansion (CWE-776) vulnerability in Ruby-Lang Rexml. Its CVSS base score is 5.9 (Medium).
Operationally, exploitation aligns with the MITRE ATT&CK technique Endpoint Denial of Service (T1499); ranked in the top 34% of CVEs by exploit likelihood; it is not currently listed in the CISA KEV catalog.
The strongest mitigations our analysis identified map to CM-6 (Configuration Settings) and SI-10 (Information Input Validation) — see the control section below for these in your framework.
OWASP Top 10 for Web (2025)
EU & UK References
- 🇪🇺 ENISA EUVD: EUVD-2024-2666
Vulnerability Data
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…
more
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.
- CWE(s)
Related Threats
MITRE ATT&CK Enterprise Techniques
CVEs Like This One
Affected Assets
Mitigating Controls
Mitigating Controls (NIST 800-53 r5) AI
Secure configuration settings can disable DTD processing or cap entity expansion in XML parsers.
Input validation can enforce limits on XML entity expansion and recursion depth before parsing occurs.
Least-functionality configuration can prohibit unsafe DTD features or external entity resolution.
Mitigating Controls (NIST CSF 2.0) AI
Derived directly from the weakness types (CWEs) cited in the NVD entry via our AI-authored CWE→CSF cross-walk (authority under review) — links open the control.
Secure SDLC practices directly prevent introduction of improper recursive entity handling in XML code.
Hardened configuration baselines can disable or limit DTD entity expansion in XML parsers.
Identifying and recording vulnerabilities can discover XML entity expansion flaws before exploitation.
Mitigating Controls (ISO/IEC 27001:2022 Annex A) AI
Derived directly from the weakness types (CWEs) cited in the NVD entry via our AI-authored CWE→ISO cross-walk (authority under review) — links open the control.
Security testing can detect and block XML entity-expansion vulnerabilities before deployment.
Secure SDLC mandates input validation and parser hardening that can prevent unbounded entity expansion.
Application security requirements can explicitly call for limits on XML entity recursion and DTD processing.
Secure architecture principles discourage unsafe parser configurations that enable entity expansion attacks.
Secure coding standards directly require disabling or restricting recursive entity references in XML parsers.