cve.bz

CVE-2024-35176 ruby-lang rexml: Uncontrolled Resource Consumption

5.3 mediumEPSS 2.1%Fix available

Medium (5.3) in ruby-lang rexml. EPSS 2.1% estimated probability of exploitation activity in the next 30 days. Fixed in rexml 3.2.7.

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

Severity

CVSS 3.1

5.3 medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
EPSS
2.1% (unchanged from 2.1% a week ago; 2.1% 30 days ago) estimated probability of exploitation activity in the next 30 days; 82nd 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: yes · Technical impact: partial, assessed 2024-05-16. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWEs
CWE-400 Uncontrolled Resource Consumption
CWE-770 Allocation of Resources Without Limits or Throttling
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-35176 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2024-35176?via=ask-ai-copy and https://cve.bz/cve/CVE-2024-35176?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-35176 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.2.7

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-vg3r-rm7w-2xghRubyGemsrexml<3.2.73.2.7

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian11ruby2.72.7.4-1+deb11u3DLA-4018-1
Debian12ruby3.1no fix listedDEBIAN-CVE-2024-35176
Ubuntu16.04:LTS, 18.04:LTS, 20.04:LTS and 5 morejrubyno fix listedUBUNTU-CVE-2024-35176
Ubuntu20.04:LTSruby2.72.7.0-5ubuntu1.16UBUNTU-CVE-2024-35176 USN-7091-2 USN-7418-1
Ubuntu22.04:LTSruby3.03.0.2-7ubuntu2.10UBUNTU-CVE-2024-35176 USN-7091-1 USN-7418-1 USN-7734-1
Ubuntu24.04:LTSruby3.23.2.3-1ubuntu0.24.04.5UBUNTU-CVE-2024-35176 USN-7091-1 USN-7418-1 USN-7734-1
UbuntuPro:16.04:LTSruby2.32.3.1-2~ubuntu16.04.16+esm11UBUNTU-CVE-2024-35176 USN-7840-1
UbuntuPro:18.04:LTSruby2.52.5.1-1ubuntu1.16+esm5UBUNTU-CVE-2024-35176 USN-7734-1 USN-7840-1
UbuntuPro:20.04:LTSruby2.72.7.0-5ubuntu1.18+esm1USN-7734-1
UbuntuPro:20.04:LTSruby2.72.7.0-5ubuntu1.18+esm3USN-7840-1
Red Hatenterprise_linux:8::appstreamruby, ruby-doc, ruby-irb and 5 more0:2.5.9-112.module+el8.10.0+22021+135c76a8RHSA-2024:4499
Red Hatenterprise_linux:8::appstreamrubygem-abrt, rubygem-abrt-doc0:0.3.0-4.module+el8.10.0+22021+135c76a8RHSA-2024:4499
Red Hatenterprise_linux:8::appstreamrubygem-bigdecimal, rubygem-bigdecimal-debuginfo0:1.3.4-112.module+el8.10.0+22021+135c76a8RHSA-2024:4499
Red Hatenterprise_linux:8::appstreamrubygem-bson, rubygem-bson-doc, rubygem-bson-debuginfo and 1 more0:4.3.0-2.module+el8.9.0+19193+435404aeRHSA-2024:4499
Red Hatenterprise_linux:8::appstreamrubygem-bundler, rubygem-bundler-doc0:1.16.1-4.module+el8.10.0+22021+135c76a8RHSA-2024:4499
Red Hatenterprise_linux:8::appstreamrubygem-did_you_mean0:1.2.0-112.module+el8.10.0+22021+135c76a8RHSA-2024:4499
Red Hatenterprise_linux:8::appstreamrubygem-io-console, rubygem-io-console-debuginfo0:0.4.6-112.module+el8.10.0+22021+135c76a8RHSA-2024:4499
Red Hatenterprise_linux:8::appstreamrubygem-json, rubygem-json-debuginfo0:2.1.0-112.module+el8.10.0+22021+135c76a8RHSA-2024:4499
Red Hatenterprise_linux:8::appstreamrubygem-minitest0:5.10.3-112.module+el8.10.0+22021+135c76a8RHSA-2024:4499
Red Hatenterprise_linux:8::appstreamrubygem-mongo, rubygem-mongo-doc0:2.5.1-2.module+el8.9.0+19193+435404aeRHSA-2024:4499
Red Hatenterprise_linux:8::appstreamrubygem-mysql2, rubygem-mysql2-doc, rubygem-mysql2-debuginfo and 1 more0:0.4.10-4.module+el8.9.0+19193+435404aeRHSA-2024:4499
Red Hatenterprise_linux:8::appstreamrubygem-net-telnet0:0.1.1-112.module+el8.10.0+22021+135c76a8RHSA-2024:4499
10 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.1ALSA-2024:5338
AlmaLinux8ruby, ruby-doc, ruby-irb and 2 more2.5.9-112.module_el8.10.0+3871+342e2c2fALSA-2024:4499
AlmaLinux8rubygem-abrt, rubygem-abrt-doc0.3.0-4.module_el8.10.0+3871+342e2c2fALSA-2024:4499
AlmaLinux8rubygem-bigdecimal1.3.4-112.module_el8.10.0+3871+342e2c2fALSA-2024:4499
AlmaLinux8rubygem-bson4.3.0-2.module_el8.5.0+259+8cec6917ALSA-2024:4499
AlmaLinux8rubygem-bson4.3.0-2.module_el8.6.0+3170+4b08f9d4ALSA-2024:4499
AlmaLinux8rubygem-bson, rubygem-bson-doc4.3.0-2.module_el8.5.0+2625+ec418553ALSA-2024:4499
AlmaLinux8rubygem-bundler, rubygem-bundler-doc1.16.1-4.module_el8.10.0+3871+342e2c2fALSA-2024:4499
AlmaLinux8rubygem-did_you_mean1.2.0-112.module_el8.10.0+3871+342e2c2fALSA-2024:4499
AlmaLinux8rubygem-io-console0.4.6-112.module_el8.10.0+3871+342e2c2fALSA-2024:4499
AlmaLinux8rubygem-json2.1.0-112.module_el8.10.0+3871+342e2c2fALSA-2024:4499
AlmaLinux8rubygem-minitest5.10.3-112.module_el8.10.0+3871+342e2c2fALSA-2024:4499
14 more for AlmaLinux in the JSON.
Rocky Linux8pcs0:0.10.18-2.el8_10.1RLSA-2024:5338
Rocky Linux8ruby0:2.5.9-112.module+el8.10.0+1839+f1f156aeRLSA-2024:4499
Rocky Linux8rubygem-abrt0:0.3.0-4.module+el8.5.0+738+032c9c02RLSA-2024:4499
Rocky Linux8rubygem-bson0:4.3.0-2.module+el8.9.0+1536+5f79634eRLSA-2024:4499
Rocky Linux8rubygem-bundler0:1.16.1-4.module+el8.9.0+1536+5f79634eRLSA-2024:4499
Rocky Linux8rubygem-mongo0:2.5.1-2.module+el8.9.0+1536+5f79634eRLSA-2024:4499
Rocky Linux8rubygem-mysql20:0.4.10-4.module+el8.9.0+1536+5f79634eRLSA-2024:4499
Rocky Linux8rubygem-pg0:1.0.0-3.module+el8.9.0+1536+5f79634eRLSA-2024:4499
Azure Linux2ruby3.1.4-6AZL-42070
Azure Linux2rubygem-rexml3.2.7-1AZL-42076
Azure Linux3ruby3.3.3-1AZL-42052
Azure Linux3rubygem-rexml3.2.8-1AZL-42064

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; 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.

Red Hat

Red Hat rates this Low.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 8ruby:2.5-8100020240627152904.489197e6Fixed 2024-07-11RHSA-2024:4499
Red Hat Enterprise Linux 8pcs-0:0.10.18-2.el8_10.1Fixed 2024-08-13RHSA-2024:5338
Red Hat Enterprise Linux 10rubyFix deferred
Red Hat Enterprise Linux 6rubyOut of support scope
Red Hat Enterprise Linux 7rubyFix deferred
Red Hat Enterprise Linux 8ruby:3.1/rubyFix deferred
Red Hat Enterprise Linux 8ruby:3.3/rubyFix deferred
Red Hat Enterprise Linux 9pcsFix deferred
Red Hat Enterprise Linux 9rubyFix deferred
Red Hat Enterprise Linux 9ruby:3.1/rubyFix deferred
Red Hat Enterprise Linux 9ruby:3.3/rubyFix deferred
Red Hat Storage 3rubyOut of support scope

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-35176.

Attack patterns (CAPEC)

  • CAPEC-147 XML Ping of the Death Likelihood: Low · Severity: Medium
  • CAPEC-227 Sustained Client Engagement
  • CAPEC-492 Regular Expression Exponential Blowup

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits. More on the page of CWE-770 (20).

References

Check your stackJSON