Vulnerability · Published Jul 16, 2024 · Assigned by GitHub_M

CVE-2024-39908Denial of service in REXML

Medium 4.3

In plain English

A medium-severity uncontrolled resource consumption 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.5% (higher than 74% of all known vulnerabilities). Ready-made attack tooling exists: public proof-of-concept code. Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)4.3Medium
Exploit odds (30 days)1.5%top 25.7% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack tooling1Public PoC

Official description

REXML is an XML toolkit for Ruby. The REXML gem before 3.3.1 has some DoS vulnerabilities when it parses an XML that has many specific characters such as `<`, `0` and `%>`. If you need to parse untrusted XMLs, you many be impacted to these vulnerabilities. The REXML gem 3.3.2 or later include the patches to fix these vulnerabilities. Users are advised to upgrade. Users unable to upgrade should avoid parsing untrusted XML strings.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
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.3.5-3.module_el8.10.0+3894+6d587c81ALSA-2024:6784
AlmaLinux:8ruby-bundled-gems3.1.7-145.module_el8.10.0+3984+cf55e3dfALSA-2025:4063
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.1.7-145.module_el8.10.0+3984+cf55e3dfALSA-2025:4063
AlmaLinux:8ruby-devel3.3.5-3.module_el8.10.0+3894+6d587c81ALSA-2024:6784
AlmaLinux:9ruby-devel3.3.5-3.module_el9.4.0+115+226a984bALSA-2024:6785
AlmaLinux:8ruby-doc3.3.5-3.module_el8.10.0+3894+6d587c81ALSA-2024:6784
AlmaLinux:8ruby-doc3.1.7-145.module_el8.10.0+3984+cf55e3dfALSA-2025:4063
AlmaLinux:9ruby-doc3.3.5-3.module_el9.4.0+115+226a984bALSA-2024:6785
AlmaLinux:8ruby-libs3.1.7-145.module_el8.10.0+3984+cf55e3dfALSA-2025:4063
AlmaLinux:8ruby-libs3.3.5-3.module_el8.10.0+3894+6d587c81ALSA-2024:6784
AlmaLinux:9ruby-libs3.3.5-3.module_el9.4.0+115+226a984bALSA-2024:6785
AlmaLinux:8rubygem-abrt0.4.0-1.module_el8.9.0+3746+91b8233aALSA-2025:4063
AlmaLinux:8rubygem-abrt0.4.0-1.module_el8.10.0+3799+191214ccALSA-2024:6784
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.5.16-3.module_el8.10.0+3894+6d587c81ALSA-2024:6784
AlmaLinux:8rubygem-bundler2.3.27-145.module_el8.10.0+3984+cf55e3dfALSA-2025:4063
AlmaLinux:9rubygem-bundler2.5.16-3.module_el9.4.0+115+226a984bALSA-2024:6785
AlmaLinux:8rubygem-io-console0.7.1-3.module_el8.10.0+3894+6d587c81ALSA-2024:6784
AlmaLinux:8rubygem-io-console0.5.11-145.module_el8.10.0+3984+cf55e3dfALSA-2025:4063
AlmaLinux:9rubygem-io-console0.7.1-3.module_el9.4.0+115+226a984bALSA-2024:6785
AlmaLinux:8rubygem-irb1.13.1-3.module_el8.10.0+3894+6d587c81ALSA-2024:6784
AlmaLinux:8rubygem-irb1.4.1-145.module_el8.10.0+3984+cf55e3dfALSA-2025:4063
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.3-3.module_el8.9.0+3746+91b8233aALSA-2025:4063
AlmaLinux:8rubygem-mysql20.5.5-1.module_el8.10.0+3799+191214ccALSA-2024:6784
AlmaLinux:8rubygem-mysql20.5.3-3.module_el8.10.0+3854+02eaa59aALSA-2025:4063
AlmaLinux:9rubygem-mysql20.5.5-1.module_el9.4.0+75+1a8fe981ALSA-2024:6785
AlmaLinux:9rubygem-mysql20.5.4-1.module_el9.1.0+8+503f6fbdALSA-2025:4488
AlmaLinux:8rubygem-mysql2-doc0.5.3-3.module_el8.10.0+3854+02eaa59aALSA-2025:4063
AlmaLinux:8rubygem-mysql2-doc0.5.5-1.module_el8.10.0+3799+191214ccALSA-2024:6784
AlmaLinux:9rubygem-mysql2-doc0.5.4-1.module_el9.1.0+8+503f6fbdALSA-2025:4488
AlmaLinux:9rubygem-mysql2-doc0.5.5-1.module_el9.4.0+75+1a8fe981ALSA-2024:6785
AlmaLinux:8rubygem-pg1.3.2-1.module_el8.9.0+3746+91b8233aALSA-2025:4063
AlmaLinux:8rubygem-pg1.5.4-1.module_el8.10.0+3799+191214ccALSA-2024:6784
AlmaLinux:8rubygem-pg1.3.2-1.module_el8.10.0+3854+02eaa59aALSA-2025:4063
AlmaLinux:9rubygem-pg1.5.4-1.module_el9.4.0+75+1a8fe981ALSA-2024:6785
AlmaLinux:9rubygem-pg1.3.5-1.module_el9.1.0+8+503f6fbdALSA-2025:4488
AlmaLinux:8rubygem-pg-doc1.3.2-1.module_el8.10.0+3854+02eaa59aALSA-2025:4063
AlmaLinux:8rubygem-pg-doc1.5.4-1.module_el8.10.0+3799+191214ccALSA-2024:6784
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-psych5.1.2-3.module_el8.10.0+3894+6d587c81ALSA-2024:6784
AlmaLinux:8rubygem-psych4.0.4-145.module_el8.10.0+3984+cf55e3dfALSA-2025:4063
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-rbs2.7.0-145.module_el8.10.0+3984+cf55e3dfALSA-2025:4063
AlmaLinux:8rubygem-rbs3.4.0-3.module_el8.10.0+3894+6d587c81ALSA-2024:6784
AlmaLinux:9rubygem-rbs3.4.0-3.module_el9.4.0+115+226a984bALSA-2024:6785
AlmaLinux:8rubygem-rdoc6.6.3.1-3.module_el8.10.0+3894+6d587c81ALSA-2024:6784
AlmaLinux:8rubygem-rdoc6.4.1.1-145.module_el8.10.0+3984+cf55e3dfALSA-2025:4063
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.5.3-145.module_el8.10.0+3984+cf55e3dfALSA-2025:4063
AlmaLinux:8rubygem-test-unit3.6.1-3.module_el8.10.0+3894+6d587c81ALSA-2024:6784
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.3.27-145.module_el8.10.0+3984+cf55e3dfALSA-2025:4063
AlmaLinux:8rubygems3.5.16-3.module_el8.10.0+3894+6d587c81ALSA-2024:6784
AlmaLinux:9rubygems3.5.16-3.module_el9.4.0+115+226a984bALSA-2024:6785
AlmaLinux:8rubygems-devel3.3.27-145.module_el8.10.0+3984+cf55e3dfALSA-2025:4063
AlmaLinux:8rubygems-devel3.5.16-3.module_el8.10.0+3894+6d587c81ALSA-2024:6784
AlmaLinux:9rubygems-devel3.5.16-3.module_el9.4.0+115+226a984bALSA-2024:6785
Alpine:v3.20ruby-rexml3.3.9-r0ALPINE-CVE-2024-39908
Alpine:v3.21ruby-rexml3.3.9-r0ALPINE-CVE-2024-39908
Alpine:v3.22ruby-rexml3.3.9-r0ALPINE-CVE-2024-39908
Alpine:v3.23ruby-rexml3.3.9-r0ALPINE-CVE-2024-39908
Alpine:v3.24ruby-rexml3.3.9-r0ALPINE-CVE-2024-39908
Debian:12ruby3.1no fix listedDEBIAN-CVE-2024-39908
Debian:13ruby3.33.3.5-1DEBIAN-CVE-2024-39908
Debian:14ruby3.33.3.5-1DEBIAN-CVE-2024-39908
Rocky Linux:8ruby0:3.3.5-3.module+el8.10.0+1867+7989c958RLSA-2024:6784
Rocky Linux:8ruby0:3.1.7-145.module+el8.10.0+1957+16e0d1a2RLSA-2025:4063
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.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-abrt0:0.4.0-1.module+el8.10.0+1679+61871737RLSA-2024:6784
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.9.0+1537+0b2034bdRLSA-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+1827+16ecb9d2RLSA-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.3.2-1.module+el8.10.0+1826+b62220b4RLSA-2025:4063
Rocky Linux:8rubygem-pg0:1.5.4-1.module+el8.10.0+1679+61871737RLSA-2024:6784
Rocky Linux:9rubygem-pg0:1.3.5-1.module+el9.5.0+31847+8b291b93RLSA-2025:4488
Rocky Linux:9rubygem-pg0:1.5.4-1.module+el9.6.0+31867+3a5bf654RLSA-2024:6785
RubyGemsrexml3.3.2GHSA-4xqq-m2hx-25v8
Ubuntu:24.04:LTSjrubyno fix listedUBUNTU-CVE-2024-39908
Ubuntu:25.10jrubyno fix listedUBUNTU-CVE-2024-39908
Ubuntu:26.04:LTSjrubyno fix listedUBUNTU-CVE-2024-39908
Ubuntu:26.10jrubyno fix listedUBUNTU-CVE-2024-39908
Ubuntu:22.04:LTSruby3.03.0.2-7ubuntu2.10USN-7418-1
Ubuntu:22.04:LTSruby3.03.0.2-7ubuntu2.8USN-7091-1
Ubuntu:22.04:LTSruby3.03.0.2-7ubuntu2.10UBUNTU-CVE-2024-39908
Ubuntu:24.04:LTSruby3.23.2.3-1ubuntu0.24.04.5UBUNTU-CVE-2024-39908
Ubuntu:24.04:LTSruby3.23.2.3-1ubuntu0.24.04.5USN-7418-1
Ubuntu:24.04:LTSruby3.23.2.3-1ubuntu0.24.04.3USN-7091-1

Affected products (as reported)

VendorProductVersions
ruby rexml < 3.3.2

Weakness: CWE-400 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:L

References