cve.bz

CVE-2024-43398 Billion Laughs Attack

5.9 mediumEPSS 1.2%Fix available

Medium (5.9). EPSS 1.2% estimated probability of exploitation activity in the next 30 days. Fixed in rexml 3.3.6.

On this page
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.

Severity

CVSS 3.1

5.9 medium
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
EPSS
1.2% (unchanged from 1.2% a week ago; 1.2% 30 days ago) estimated probability of exploitation activity in the next 30 days; 69th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: partial, assessed 2024-08-22. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-776 Improper Restriction of Recursive Entity References in DTDs (Billion Laughs Attack)
OWASP Top 10
A02:2025 Security Misconfiguration
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2024-43398 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2024-43398?via=ask-ai-copy and https://cve.bz/cve/CVE-2024-43398?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2024-43398 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
ruby-lang:rexmlbefore 3.3.6

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-vmwr-mc7x-5vc3RubyGemsrexml<3.3.63.3.6

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian11ruby2.72.7.4-1+deb11u3DLA-4018-1
Debian12ruby3.1no fix listedDEBIAN-CVE-2024-43398
Debian13, 14ruby3.33.3.5-1DEBIAN-CVE-2024-43398
Ubuntu20.04:LTSruby2.72.7.0-5ubuntu1.16UBUNTU-CVE-2024-43398 USN-7256-1 USN-7418-1
Ubuntu22.04:LTSruby3.03.0.2-7ubuntu2.10UBUNTU-CVE-2024-43398 USN-7418-1
Ubuntu24.04:LTSruby3.23.2.3-1ubuntu0.24.04.5UBUNTU-CVE-2024-43398 USN-7418-1
UbuntuPro:16.04:LTSruby2.3no fix listedUBUNTU-CVE-2024-43398
UbuntuPro:18.04:LTSruby2.5no fix listedUBUNTU-CVE-2024-43398
Red Hatenterprise_linux:8::appstreamruby, ruby-doc, ruby-libs and 7 more0:3.1.7-145.module+el8.10.0+23011+f9d508f8RHSA-2025:4063
Red Hatenterprise_linux:8::appstreamruby, ruby-doc, ruby-libs and 7 more0:3.3.5-3.module+el8.10.0+22271+6a48b0b9RHSA-2024:6784
Red Hatenterprise_linux:8::appstreamrubygem-abrt, rubygem-abrt-doc0:0.4.0-1.module+el8.10.0+21226+b78a28c4RHSA-2024:6784
Red Hatenterprise_linux:8::appstreamrubygem-abrt, rubygem-abrt-doc0:0.4.0-1.module+el8.10.0+21470+43ec8058RHSA-2025:4063
Red Hatenterprise_linux:8::appstreamrubygem-bigdecimal, rubygem-bigdecimal-debuginfo0:3.1.1-145.module+el8.10.0+23011+f9d508f8RHSA-2025:4063
Red Hatenterprise_linux:8::appstreamrubygem-bigdecimal, rubygem-bigdecimal-debuginfo0:3.1.5-3.module+el8.10.0+22271+6a48b0b9RHSA-2024:6784
Red Hatenterprise_linux:8::appstreamrubygem-bundler0:2.3.27-145.module+el8.10.0+23011+f9d508f8RHSA-2025:4063
Red Hatenterprise_linux:8::appstreamrubygem-bundler0:2.5.16-3.module+el8.10.0+22271+6a48b0b9RHSA-2024:6784
Red Hatenterprise_linux:8::appstreamrubygem-io-console, rubygem-io-console-debuginfo0:0.5.11-145.module+el8.10.0+23011+f9d508f8RHSA-2025:4063
Red Hatenterprise_linux:8::appstreamrubygem-io-console, rubygem-io-console-debuginfo0:0.7.1-3.module+el8.10.0+22271+6a48b0b9RHSA-2024:6784
Red Hatenterprise_linux:8::appstreamrubygem-irb0:1.13.1-3.module+el8.10.0+22271+6a48b0b9RHSA-2024:6784
Red Hatenterprise_linux:8::appstreamrubygem-irb0:1.4.1-145.module+el8.10.0+23011+f9d508f8RHSA-2025:4063
71 more for Red Hat in the JSON and on Red Hat's page.
SUSEEnterprise Storage 7.1, Linux Enterprise High Performance Computing 15 SP2-LTSS, Linux Enterprise High Performance Computing 15 SP3-LTSS and 9 moreruby2.52.5.9-150000.4.32.1SUSE-SU-2024:3874-1
SUSEPackage Hub 15 SP6rubygem-rexml3.3.9-bp156.4.3.1openSUSE-SU-2025:0129-1
openSUSELeap 15.6rubygem-rexml3.3.9-bp156.4.3.1openSUSE-SU-2025:0129-1
AlmaLinux8pcs, pcs-snmp0.10.18-2.el8_10.2.alma.1ALSA-2024:6670
AlmaLinux8ruby, ruby-doc, ruby-libs and 3 more3.1.7-145.module_el8.10.0+3984+cf55e3dfALSA-2025:4063
AlmaLinux8ruby, ruby-doc, ruby-libs and 3 more3.3.5-3.module_el8.10.0+3894+6d587c81ALSA-2024:6784
AlmaLinux8rubygem-abrt0.4.0-1.module_el8.9.0+3746+91b8233aALSA-2025:4063
AlmaLinux8rubygem-abrt, rubygem-abrt-doc0.4.0-1.module_el8.10.0+3799+191214ccALSA-2024:6784
AlmaLinux8rubygem-abrt-doc0.4.0-1.module_el8.10.0+3854+02eaa59aALSA-2025:4063
AlmaLinux8rubygem-bigdecimal3.1.1-145.module_el8.10.0+3984+cf55e3dfALSA-2025:4063
AlmaLinux8rubygem-bigdecimal3.1.5-3.module_el8.10.0+3894+6d587c81ALSA-2024:6784
AlmaLinux8rubygem-bundler2.3.27-145.module_el8.10.0+3984+cf55e3dfALSA-2025:4063
AlmaLinux8rubygem-bundler2.5.16-3.module_el8.10.0+3894+6d587c81ALSA-2024:6784
AlmaLinux8rubygem-io-console0.5.11-145.module_el8.10.0+3984+cf55e3dfALSA-2025:4063
AlmaLinux8rubygem-io-console0.7.1-3.module_el8.10.0+3894+6d587c81ALSA-2024:6784
55 more for AlmaLinux in the JSON.
Rocky Linux8pcs0:0.10.18-2.el8_10.2RLSA-2024:6670
Rocky Linux8ruby0:3.1.7-145.module+el8.10.0+1957+16e0d1a2RLSA-2025:4063
Rocky Linux8ruby0:3.3.5-3.module+el8.10.0+1867+7989c958RLSA-2024:6784
Rocky Linux8rubygem-abrt0:0.4.0-1.module+el8.10.0+1679+61871737RLSA-2024:6784 RLSA-2025:4063
Rocky Linux8rubygem-abrt0:0.4.0-1.module+el8.10.0+1741+bdb5b6caRLSA-2025:4063
Rocky Linux8rubygem-abrt0:0.4.0-1.module+el8.10.0+1820+f3fffb92RLSA-2025:4063
Rocky Linux8rubygem-abrt0:0.4.0-1.module+el8.10.0+1826+b62220b4RLSA-2025:4063
Rocky Linux8rubygem-abrt0:0.4.0-1.module+el8.10.0+1827+16ecb9d2RLSA-2025:4063
Rocky Linux8rubygem-abrt0:0.4.0-1.module+el8.5.0+668+665814faRLSA-2025:4063
Rocky Linux8rubygem-abrt0:0.4.0-1.module+el8.9.0+1537+0b2034bdRLSA-2025:4063
Rocky Linux8rubygem-mysql20:0.5.3-3.module+el8.10.0+1744+6c504228RLSA-2025:4063
Rocky Linux8rubygem-mysql20:0.5.3-3.module+el8.10.0+1826+b62220b4RLSA-2025:4063
9 more for Rocky Linux in the JSON.
Alpinev3.19, v3.20, v3.21 and 3 moreruby-rexml3.3.9-r0ALPINE-CVE-2024-43398
Azure Linux2ruby3.1.7-1AZL-48150
Azure Linux2rubygem-rexml3.2.9-1AZL-48154
Azure Linux3ruby3.3.5-1AZL-48162
Azure Linux3rubygem-rexml3.3.9-1AZL-48156

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; the Alpine secdb, CC BY-SA 4.0; Microsoft's Azure Linux vulnerability data, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpine.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

Moderate impact: Red Hat products in the current affected scope, including Red Hat Enterprise Linux and other products that ship the vulnerable REXML component, can be exposed to denial of service when an attacker supplies deeply nested XML with repeated local-name attributes to REXML's tree parser, such as REXML::Document.new. The recorded CVSS 3.1 score is 5.9 (AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H), matching the upstream Moderate assessment and indicating availability impact without confidentiality or integrity impact. Stream parser and SAX2 parser APIs are not affected. The current affects data marks RHEL 10 not affected because the vulnerable code is not present. For delegated affects marked AFFECTED, the owning product teams are pursuing a fix; delegated WONTFIX affects have no fix recorded. The RHEL 9.6 ruby:3.1 affect is marked DEFER, so the fix is deferred for that stream and the residual risk remains denial of service when untrusted XML reaches the affected tree-parser path.

Red Hat's mitigation

Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 8ruby:3.3-8100020240906074654.489197e6Fixed 2024-09-18RHSA-2024:6784
Red Hat Enterprise Linux 8ruby:3.1-8100020250407112943.489197e6Fixed 2025-04-23RHSA-2025:4063
Red Hat Enterprise Linux 8pcs-0:0.10.18-2.el8_10.2Fixed 2024-09-16RHSA-2024:6670
Red Hat Enterprise Linux 8.6 Telecommunications Update Servicepcs-0:0.10.12-6.el8_6.6Fixed 2024-09-16RHSA-2024:6702
Red Hat Enterprise Linux 8.6 Update Services for SAP Solutionspcs-0:0.10.12-6.el8_6.6Fixed 2024-09-16RHSA-2024:6702
Red Hat Enterprise Linux 8.8 Extended Update Supportpcs-0:0.10.15-4.el8_8.3Fixed 2024-09-16RHSA-2024:6703
Red Hat Enterprise Linux 9ruby:3.3-9040020240906110954.9Fixed 2024-09-18RHSA-2024:6785
Red Hat Enterprise Linux 9ruby:3.1-9050020250404144903.9Fixed 2025-05-06RHSA-2025:4488
Red Hat 3scale API Management Platform 23scale-amp2/backend-rhel8Will not fix
Red Hat 3scale API Management Platform 23scale-amp2/system-rhel7Will not fix
Red Hat 3scale API Management Platform 23scale-amp2/toolbox-rhel8Will not fix
Red Hat 3scale API Management Platform 23scale-amp2/zync-rhel8Will not fix
Red Hat Enterprise Linux 10rubyNot affected
Red Hat Enterprise Linux 10ruby:3.3/rubyNot affected
Red Hat Enterprise Linux 8rubyWill not fix
Red Hat Enterprise Linux 8ruby:2.5/rubyWill not fix
Red Hat Enterprise Linux 9pcsWill not fix
Red Hat Enterprise Linux 9rubyWill not fix
Red Hat OpenStack Platform 16.1puppet-datacatOut of support scope
Red Hat OpenStack Platform 16.1puppet-etcdOut of support scope
6 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2024-43398.

Attack patterns (CAPEC)

  • CAPEC-197 Exponential Data Expansion Likelihood: High · Severity: Medium

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON