Vulnerability · Published May 16, 2024 · Assigned by GitHub_M

CVE-2024-35176REXML contains a denial of service vulnerability

Medium 5.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 2.1% (higher than 81% 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)5.3Medium
Exploit odds (30 days)2.1%top 18.6% 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.2.6 has a denial of service vulnerability when it parses an XML that has many `<`s in an attribute value. Those who need to parse untrusted XMLs may be impacted to this vulnerability. The REXML gem 3.2.7 or later include the patch to fix this vulnerability. As a workaround, don't parse untrusted XMLs.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
AlmaLinux:8pcs0.10.18-2.el8_10.1ALSA-2024:5338
AlmaLinux:8pcs-snmp0.10.18-2.el8_10.1ALSA-2024:5338
AlmaLinux:8ruby2.5.9-112.module_el8.10.0+3871+342e2c2fALSA-2024:4499
AlmaLinux:8ruby-devel2.5.9-112.module_el8.10.0+3871+342e2c2fALSA-2024:4499
AlmaLinux:8ruby-doc2.5.9-112.module_el8.10.0+3871+342e2c2fALSA-2024:4499
AlmaLinux:8ruby-irb2.5.9-112.module_el8.10.0+3871+342e2c2fALSA-2024:4499
AlmaLinux:8ruby-libs2.5.9-112.module_el8.10.0+3871+342e2c2fALSA-2024:4499
AlmaLinux:8rubygem-abrt0.3.0-4.module_el8.10.0+3871+342e2c2fALSA-2024:4499
AlmaLinux:8rubygem-abrt-doc0.3.0-4.module_el8.10.0+3871+342e2c2fALSA-2024:4499
AlmaLinux:8rubygem-bigdecimal1.3.4-112.module_el8.10.0+3871+342e2c2fALSA-2024:4499
AlmaLinux:8rubygem-bson4.3.0-2.module_el8.5.0+259+8cec6917ALSA-2024:4499
AlmaLinux:8rubygem-bson4.3.0-2.module_el8.5.0+2625+ec418553ALSA-2024:4499
AlmaLinux:8rubygem-bson4.3.0-2.module_el8.6.0+3170+4b08f9d4ALSA-2024:4499
AlmaLinux:8rubygem-bson-doc4.3.0-2.module_el8.5.0+2625+ec418553ALSA-2024:4499
AlmaLinux:8rubygem-bundler1.16.1-4.module_el8.10.0+3871+342e2c2fALSA-2024:4499
AlmaLinux:8rubygem-bundler-doc1.16.1-4.module_el8.10.0+3871+342e2c2fALSA-2024:4499
AlmaLinux:8rubygem-did_you_mean1.2.0-112.module_el8.10.0+3871+342e2c2fALSA-2024:4499
AlmaLinux:8rubygem-io-console0.4.6-112.module_el8.10.0+3871+342e2c2fALSA-2024:4499
AlmaLinux:8rubygem-json2.1.0-112.module_el8.10.0+3871+342e2c2fALSA-2024:4499
AlmaLinux:8rubygem-minitest5.10.3-112.module_el8.10.0+3871+342e2c2fALSA-2024:4499
AlmaLinux:8rubygem-mongo2.5.1-2.module_el8.5.0+2625+ec418553ALSA-2024:4499
AlmaLinux:8rubygem-mongo-doc2.5.1-2.module_el8.5.0+2625+ec418553ALSA-2024:4499
AlmaLinux:8rubygem-mysql20.4.10-4.module_el8.5.0+259+8cec6917ALSA-2024:4499
AlmaLinux:8rubygem-mysql20.4.10-4.module_el8.5.0+2625+ec418553ALSA-2024:4499
AlmaLinux:8rubygem-mysql20.4.10-4.module_el8.6.0+3170+4b08f9d4ALSA-2024:4499
AlmaLinux:8rubygem-mysql2-doc0.4.10-4.module_el8.5.0+2625+ec418553ALSA-2024:4499
AlmaLinux:8rubygem-net-telnet0.1.1-112.module_el8.10.0+3871+342e2c2fALSA-2024:4499
AlmaLinux:8rubygem-openssl2.1.2-112.module_el8.10.0+3871+342e2c2fALSA-2024:4499
AlmaLinux:8rubygem-pg1.0.0-3.module_el8.9.0+3635+c6f99506ALSA-2024:4499
AlmaLinux:8rubygem-pg-doc1.0.0-3.module_el8.9.0+3635+c6f99506ALSA-2024:4499
AlmaLinux:8rubygem-power_assert1.1.1-112.module_el8.10.0+3871+342e2c2fALSA-2024:4499
AlmaLinux:8rubygem-psych3.0.2-112.module_el8.10.0+3871+342e2c2fALSA-2024:4499
AlmaLinux:8rubygem-rake12.3.3-112.module_el8.10.0+3871+342e2c2fALSA-2024:4499
AlmaLinux:8rubygem-rdoc6.0.1.1-112.module_el8.10.0+3871+342e2c2fALSA-2024:4499
AlmaLinux:8rubygem-test-unit3.2.7-112.module_el8.10.0+3871+342e2c2fALSA-2024:4499
AlmaLinux:8rubygem-xmlrpc0.3.0-112.module_el8.10.0+3871+342e2c2fALSA-2024:4499
AlmaLinux:8rubygems2.7.6.3-112.module_el8.10.0+3871+342e2c2fALSA-2024:4499
AlmaLinux:8rubygems-devel2.7.6.3-112.module_el8.10.0+3871+342e2c2fALSA-2024:4499
Debian:12ruby3.1no fix listedDEBIAN-CVE-2024-35176
Rocky Linux:8pcs0:0.10.18-2.el8_10.1RLSA-2024:5338
Rocky Linux:8ruby0:2.5.9-112.module+el8.10.0+1839+f1f156aeRLSA-2024:4499
Rocky Linux:8rubygem-abrt0:0.3.0-4.module+el8.5.0+738+032c9c02RLSA-2024:4499
Rocky Linux:8rubygem-bson0:4.3.0-2.module+el8.9.0+1536+5f79634eRLSA-2024:4499
Rocky Linux:8rubygem-bundler0:1.16.1-4.module+el8.9.0+1536+5f79634eRLSA-2024:4499
Rocky Linux:8rubygem-mongo0:2.5.1-2.module+el8.9.0+1536+5f79634eRLSA-2024:4499
Rocky Linux:8rubygem-mysql20:0.4.10-4.module+el8.9.0+1536+5f79634eRLSA-2024:4499
Rocky Linux:8rubygem-pg0:1.0.0-3.module+el8.9.0+1536+5f79634eRLSA-2024:4499
RubyGemsrexml3.2.7GHSA-vg3r-rm7w-2xgh
Ubuntu:24.04:LTSjrubyno fix listedUBUNTU-CVE-2024-35176
Ubuntu:25.10jrubyno fix listedUBUNTU-CVE-2024-35176
Ubuntu:26.04:LTSjrubyno fix listedUBUNTU-CVE-2024-35176
Ubuntu:26.10jrubyno fix listedUBUNTU-CVE-2024-35176
Ubuntu:22.04:LTSruby3.03.0.2-7ubuntu2.11USN-7734-1
Ubuntu:22.04:LTSruby3.03.0.2-7ubuntu2.10UBUNTU-CVE-2024-35176
Ubuntu:22.04:LTSruby3.03.0.2-7ubuntu2.10USN-7418-1
Ubuntu:22.04:LTSruby3.03.0.2-7ubuntu2.8USN-7091-1
Ubuntu:24.04:LTSruby3.23.2.3-1ubuntu0.24.04.5UBUNTU-CVE-2024-35176
Ubuntu:24.04:LTSruby3.23.2.3-1ubuntu0.24.04.3USN-7091-1
Ubuntu:24.04:LTSruby3.23.2.3-1ubuntu0.24.04.5USN-7418-1
Ubuntu:24.04:LTSruby3.23.2.3-1ubuntu0.24.04.6USN-7734-1

Affected products (as reported)

VendorProductVersions
ruby rexml < 3.2.7

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

References