Vulnerability · Published Aug 22, 2024 · Assigned by GitHub_M

CVE-2024-43398REXML denial of service vulnerability

Medium 5.9

In plain English

A medium-severity security flaw in rexml from ruby. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 1.2% (higher than 68% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)5.9Medium
Exploit odds (30 days)1.2%top 31.6% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official description

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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
AlmaLinux:8pcs0.10.18-2.el8_10.2.alma.1ALSA-2024:6670
AlmaLinux:8pcs-snmp0.10.18-2.el8_10.2.alma.1ALSA-2024:6670
AlmaLinux:8ruby3.1.7-145.module_el8.10.0+3984+cf55e3dfALSA-2025:4063
AlmaLinux:8ruby3.3.5-3.module_el8.10.0+3894+6d587c81ALSA-2024:6784
AlmaLinux:9ruby3.3.5-3.module_el9.4.0+115+226a984bALSA-2024:6785
AlmaLinux:8ruby-bundled-gems3.1.7-145.module_el8.10.0+3984+cf55e3dfALSA-2025:4063
AlmaLinux:8ruby-bundled-gems3.3.5-3.module_el8.10.0+3894+6d587c81ALSA-2024:6784
AlmaLinux:9ruby-bundled-gems3.3.5-3.module_el9.4.0+115+226a984bALSA-2024:6785
AlmaLinux:8ruby-default-gems3.1.7-145.module_el8.10.0+3984+cf55e3dfALSA-2025:4063
AlmaLinux:8ruby-default-gems3.3.5-3.module_el8.10.0+3894+6d587c81ALSA-2024:6784
AlmaLinux:9ruby-default-gems3.3.5-3.module_el9.4.0+115+226a984bALSA-2024:6785
AlmaLinux:8ruby-devel3.3.5-3.module_el8.10.0+3894+6d587c81ALSA-2024:6784
AlmaLinux:8ruby-devel3.1.7-145.module_el8.10.0+3984+cf55e3dfALSA-2025:4063
AlmaLinux:9ruby-devel3.3.5-3.module_el9.4.0+115+226a984bALSA-2024:6785
AlmaLinux:8ruby-doc3.1.7-145.module_el8.10.0+3984+cf55e3dfALSA-2025:4063
AlmaLinux:8ruby-doc3.3.5-3.module_el8.10.0+3894+6d587c81ALSA-2024:6784
AlmaLinux:9ruby-doc3.3.5-3.module_el9.4.0+115+226a984bALSA-2024:6785
AlmaLinux:8ruby-libs3.3.5-3.module_el8.10.0+3894+6d587c81ALSA-2024:6784
AlmaLinux:8ruby-libs3.1.7-145.module_el8.10.0+3984+cf55e3dfALSA-2025:4063
AlmaLinux:9ruby-libs3.3.5-3.module_el9.4.0+115+226a984bALSA-2024:6785
AlmaLinux:8rubygem-abrt0.4.0-1.module_el8.10.0+3799+191214ccALSA-2024:6784
AlmaLinux:8rubygem-abrt0.4.0-1.module_el8.9.0+3746+91b8233aALSA-2025:4063
AlmaLinux:8rubygem-abrt-doc0.4.0-1.module_el8.10.0+3799+191214ccALSA-2024:6784
AlmaLinux:8rubygem-abrt-doc0.4.0-1.module_el8.10.0+3854+02eaa59aALSA-2025:4063
AlmaLinux:8rubygem-bigdecimal3.1.1-145.module_el8.10.0+3984+cf55e3dfALSA-2025:4063
AlmaLinux:8rubygem-bigdecimal3.1.5-3.module_el8.10.0+3894+6d587c81ALSA-2024:6784
AlmaLinux:9rubygem-bigdecimal3.1.5-3.module_el9.4.0+115+226a984bALSA-2024:6785
AlmaLinux:8rubygem-bundler2.3.27-145.module_el8.10.0+3984+cf55e3dfALSA-2025:4063
AlmaLinux:8rubygem-bundler2.5.16-3.module_el8.10.0+3894+6d587c81ALSA-2024:6784
AlmaLinux:9rubygem-bundler2.5.16-3.module_el9.4.0+115+226a984bALSA-2024:6785
AlmaLinux:8rubygem-io-console0.5.11-145.module_el8.10.0+3984+cf55e3dfALSA-2025:4063
AlmaLinux:8rubygem-io-console0.7.1-3.module_el8.10.0+3894+6d587c81ALSA-2024:6784
AlmaLinux:9rubygem-io-console0.7.1-3.module_el9.4.0+115+226a984bALSA-2024:6785
AlmaLinux:8rubygem-irb1.4.1-145.module_el8.10.0+3984+cf55e3dfALSA-2025:4063
AlmaLinux:8rubygem-irb1.13.1-3.module_el8.10.0+3894+6d587c81ALSA-2024:6784
AlmaLinux:9rubygem-irb1.13.1-3.module_el9.4.0+115+226a984bALSA-2024:6785
AlmaLinux:8rubygem-json2.7.1-3.module_el8.10.0+3894+6d587c81ALSA-2024:6784
AlmaLinux:8rubygem-json2.6.1-145.module_el8.10.0+3984+cf55e3dfALSA-2025:4063
AlmaLinux:9rubygem-json2.7.1-3.module_el9.4.0+115+226a984bALSA-2024:6785
AlmaLinux:8rubygem-minitest5.15.0-145.module_el8.10.0+3984+cf55e3dfALSA-2025:4063
AlmaLinux:8rubygem-minitest5.20.0-3.module_el8.10.0+3894+6d587c81ALSA-2024:6784
AlmaLinux:9rubygem-minitest5.20.0-3.module_el9.4.0+115+226a984bALSA-2024:6785
AlmaLinux:8rubygem-mysql20.5.5-1.module_el8.10.0+3799+191214ccALSA-2024:6784
AlmaLinux:8rubygem-mysql20.5.3-3.module_el8.9.0+3746+91b8233aALSA-2025:4063
AlmaLinux:8rubygem-mysql20.5.3-3.module_el8.10.0+3854+02eaa59aALSA-2025:4063
AlmaLinux:9rubygem-mysql20.5.4-1.module_el9.1.0+8+503f6fbdALSA-2025:4488
AlmaLinux:9rubygem-mysql20.5.5-1.module_el9.4.0+75+1a8fe981ALSA-2024:6785
AlmaLinux:8rubygem-mysql2-doc0.5.5-1.module_el8.10.0+3799+191214ccALSA-2024:6784
AlmaLinux:8rubygem-mysql2-doc0.5.3-3.module_el8.10.0+3854+02eaa59aALSA-2025:4063
AlmaLinux:9rubygem-mysql2-doc0.5.5-1.module_el9.4.0+75+1a8fe981ALSA-2024:6785
AlmaLinux:9rubygem-mysql2-doc0.5.4-1.module_el9.1.0+8+503f6fbdALSA-2025:4488
AlmaLinux:8rubygem-pg1.3.2-1.module_el8.9.0+3746+91b8233aALSA-2025:4063
AlmaLinux:8rubygem-pg1.3.2-1.module_el8.10.0+3854+02eaa59aALSA-2025:4063
AlmaLinux:8rubygem-pg1.5.4-1.module_el8.10.0+3799+191214ccALSA-2024:6784
AlmaLinux:9rubygem-pg1.3.5-1.module_el9.1.0+8+503f6fbdALSA-2025:4488
AlmaLinux:9rubygem-pg1.5.4-1.module_el9.4.0+75+1a8fe981ALSA-2024:6785
AlmaLinux:8rubygem-pg-doc1.5.4-1.module_el8.10.0+3799+191214ccALSA-2024:6784
AlmaLinux:8rubygem-pg-doc1.3.2-1.module_el8.10.0+3854+02eaa59aALSA-2025:4063
AlmaLinux:9rubygem-pg-doc1.5.4-1.module_el9.4.0+75+1a8fe981ALSA-2024:6785
AlmaLinux:9rubygem-pg-doc1.3.5-1.module_el9.1.0+8+503f6fbdALSA-2025:4488
AlmaLinux:8rubygem-power_assert2.0.3-3.module_el8.10.0+3894+6d587c81ALSA-2024:6784
AlmaLinux:8rubygem-power_assert2.0.1-145.module_el8.10.0+3984+cf55e3dfALSA-2025:4063
AlmaLinux:9rubygem-power_assert2.0.3-3.module_el9.4.0+115+226a984bALSA-2024:6785
AlmaLinux:8rubygem-psych4.0.4-145.module_el8.10.0+3984+cf55e3dfALSA-2025:4063
AlmaLinux:8rubygem-psych5.1.2-3.module_el8.10.0+3894+6d587c81ALSA-2024:6784
AlmaLinux:9rubygem-psych5.1.2-3.module_el9.4.0+115+226a984bALSA-2024:6785
AlmaLinux:8rubygem-racc1.7.3-3.module_el8.10.0+3894+6d587c81ALSA-2024:6784
AlmaLinux:9rubygem-racc1.7.3-3.module_el9.4.0+115+226a984bALSA-2024:6785
AlmaLinux:8rubygem-rake13.1.0-3.module_el8.10.0+3894+6d587c81ALSA-2024:6784
AlmaLinux:8rubygem-rake13.0.6-145.module_el8.10.0+3984+cf55e3dfALSA-2025:4063
AlmaLinux:9rubygem-rake13.1.0-3.module_el9.4.0+115+226a984bALSA-2024:6785
AlmaLinux:8rubygem-rbs3.4.0-3.module_el8.10.0+3894+6d587c81ALSA-2024:6784
AlmaLinux:8rubygem-rbs2.7.0-145.module_el8.10.0+3984+cf55e3dfALSA-2025:4063
AlmaLinux:9rubygem-rbs3.4.0-3.module_el9.4.0+115+226a984bALSA-2024:6785
AlmaLinux:8rubygem-rdoc6.4.1.1-145.module_el8.10.0+3984+cf55e3dfALSA-2025:4063
AlmaLinux:8rubygem-rdoc6.6.3.1-3.module_el8.10.0+3894+6d587c81ALSA-2024:6784
AlmaLinux:9rubygem-rdoc6.6.3.1-3.module_el9.4.0+115+226a984bALSA-2024:6785
AlmaLinux:8rubygem-rexml3.3.9-145.module_el8.10.0+3984+cf55e3dfALSA-2025:4063
AlmaLinux:8rubygem-rexml3.3.6-3.module_el8.10.0+3894+6d587c81ALSA-2024:6784
AlmaLinux:9rubygem-rexml3.3.6-3.module_el9.4.0+115+226a984bALSA-2024:6785
AlmaLinux:8rubygem-rss0.3.1-145.module_el8.10.0+3984+cf55e3dfALSA-2025:4063
AlmaLinux:8rubygem-rss0.3.1-3.module_el8.10.0+3894+6d587c81ALSA-2024:6784
AlmaLinux:9rubygem-rss0.3.1-3.module_el9.4.0+115+226a984bALSA-2024:6785
AlmaLinux:8rubygem-test-unit3.6.1-3.module_el8.10.0+3894+6d587c81ALSA-2024:6784
AlmaLinux:8rubygem-test-unit3.5.3-145.module_el8.10.0+3984+cf55e3dfALSA-2025:4063
AlmaLinux:9rubygem-test-unit3.6.1-3.module_el9.4.0+115+226a984bALSA-2024:6785
AlmaLinux:8rubygem-typeprof0.21.9-3.module_el8.10.0+3894+6d587c81ALSA-2024:6784
AlmaLinux:8rubygem-typeprof0.21.3-145.module_el8.10.0+3984+cf55e3dfALSA-2025:4063
AlmaLinux:9rubygem-typeprof0.21.9-3.module_el9.4.0+115+226a984bALSA-2024:6785
AlmaLinux:8rubygems3.5.16-3.module_el8.10.0+3894+6d587c81ALSA-2024:6784
AlmaLinux:8rubygems3.3.27-145.module_el8.10.0+3984+cf55e3dfALSA-2025:4063
AlmaLinux:9rubygems3.5.16-3.module_el9.4.0+115+226a984bALSA-2024:6785
AlmaLinux:8rubygems-devel3.5.16-3.module_el8.10.0+3894+6d587c81ALSA-2024:6784
AlmaLinux:8rubygems-devel3.3.27-145.module_el8.10.0+3984+cf55e3dfALSA-2025:4063
AlmaLinux:9rubygems-devel3.5.16-3.module_el9.4.0+115+226a984bALSA-2024:6785
Alpine:v3.20ruby-rexml3.3.9-r0ALPINE-CVE-2024-43398
Alpine:v3.21ruby-rexml3.3.9-r0ALPINE-CVE-2024-43398
Alpine:v3.22ruby-rexml3.3.9-r0ALPINE-CVE-2024-43398
Alpine:v3.23ruby-rexml3.3.9-r0ALPINE-CVE-2024-43398
Alpine:v3.24ruby-rexml3.3.9-r0ALPINE-CVE-2024-43398
Debian:12ruby3.1no fix listedDEBIAN-CVE-2024-43398
Debian:13ruby3.33.3.5-1DEBIAN-CVE-2024-43398
Debian:14ruby3.33.3.5-1DEBIAN-CVE-2024-43398
Rocky Linux:8pcs0:0.10.18-2.el8_10.2RLSA-2024:6670
Rocky Linux:8ruby0:3.1.7-145.module+el8.10.0+1957+16e0d1a2RLSA-2025:4063
Rocky Linux:8ruby0:3.3.5-3.module+el8.10.0+1867+7989c958RLSA-2024:6784
Rocky Linux:9ruby0:3.1.7-146.module+el9.5.0+31847+8b291b93RLSA-2025:4488
Rocky Linux:8rubygem-abrt0:0.4.0-1.module+el8.9.0+1537+0b2034bdRLSA-2025:4063
Rocky Linux:8rubygem-abrt0:0.4.0-1.module+el8.10.0+1679+61871737RLSA-2024:6784
Rocky Linux:8rubygem-abrt0:0.4.0-1.module+el8.10.0+1827+16ecb9d2RLSA-2025:4063
Rocky Linux:8rubygem-abrt0:0.4.0-1.module+el8.5.0+668+665814faRLSA-2025:4063
Rocky Linux:8rubygem-abrt0:0.4.0-1.module+el8.10.0+1679+61871737RLSA-2025:4063
Rocky Linux:8rubygem-abrt0:0.4.0-1.module+el8.10.0+1741+bdb5b6caRLSA-2025:4063
Rocky Linux:8rubygem-abrt0:0.4.0-1.module+el8.10.0+1820+f3fffb92RLSA-2025:4063
Rocky Linux:8rubygem-abrt0:0.4.0-1.module+el8.10.0+1826+b62220b4RLSA-2025:4063
Rocky Linux:8rubygem-mysql20:0.5.3-3.module+el8.10.0+1826+b62220b4RLSA-2025:4063
Rocky Linux:8rubygem-mysql20:0.5.5-1.module+el8.10.0+1679+61871737RLSA-2024:6784
Rocky Linux:8rubygem-mysql20:0.5.3-3.module+el8.10.0+1744+6c504228RLSA-2025:4063
Rocky Linux:9rubygem-mysql20:0.5.4-1.module+el9.5.0+31847+8b291b93RLSA-2025:4488
Rocky Linux:9rubygem-mysql20:0.5.5-1.module+el9.6.0+31867+3a5bf654RLSA-2024:6785
Rocky Linux:8rubygem-pg0:1.3.2-1.module+el8.10.0+1741+bdb5b6caRLSA-2025:4063
Rocky Linux:8rubygem-pg0:1.5.4-1.module+el8.10.0+1679+61871737RLSA-2024:6784
Rocky Linux:8rubygem-pg0:1.3.2-1.module+el8.10.0+1826+b62220b4RLSA-2025:4063
Rocky Linux:9rubygem-pg0:1.5.4-1.module+el9.6.0+31867+3a5bf654RLSA-2024:6785
Rocky Linux:9rubygem-pg0:1.3.5-1.module+el9.5.0+31847+8b291b93RLSA-2025:4488
RubyGemsrexml3.3.6GHSA-vmwr-mc7x-5vc3
Ubuntu:22.04:LTSruby3.03.0.2-7ubuntu2.10UBUNTU-CVE-2024-43398
Ubuntu:22.04:LTSruby3.03.0.2-7ubuntu2.10USN-7418-1
Ubuntu:24.04:LTSruby3.23.2.3-1ubuntu0.24.04.5USN-7418-1
Ubuntu:24.04:LTSruby3.23.2.3-1ubuntu0.24.04.5UBUNTU-CVE-2024-43398

Affected products (as reported)

VendorProductVersions
ruby rexml < 3.3.6

Weakness: CWE-776 · Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H

References