Skip to content
Fencer Vulns
medium 5.3

CVE-2024-35176 json

REXML contains a denial of service vulnerability

published 2024-05-16 2 y ago modified 2026-09-10 1 mo ago also EUVD-2024-1802 , GHSA-vg3r-rm7w-2xgh

cvss
5.3
version 3.1, CNA
cisa kev
Not listed
not in CISA's catalog
epss
2.1%
EPSS 2.1% chance of exploitation in 30 days, percentile 81%
public exploits
0
none known

Summary

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.

Patch / fix

  • rubygems rexml 3.2.7
  • ruby-lang rexml 3.2.7
  • ruby2.7 Ubuntu 20.04 LTS 2.7.0-5ubuntu1.16
  • ruby3.0 Ubuntu 22.04 LTS 3.0.2-7ubuntu2.10
  • ruby3.2 Ubuntu 24.04 LTS 3.2.3-1ubuntu0.24.04.5
  • ruby2.3 Ubuntu Pro 16.04 LTS 2.3.1-2~ubuntu16.04.16+esm11
  • ruby2.5 Ubuntu Pro 18.04 LTS 2.5.1-1ubuntu1.16+esm5

ubuntu advisories UBUNTU-CVE-2024-35176

Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

  • ruby RHEL 8 2.5.9-112.module+el8.10.0+22021+135c76a8
  • ruby-irb RHEL 8 2.5.9-112.module+el8.10.0+22021+135c76a8
  • rubygems RHEL 8 2.7.6.3-112.module+el8.10.0+22021+135c76a8
  • ruby-libs RHEL 8 2.5.9-112.module+el8.10.0+22021+135c76a8
  • rubygem-pg RHEL 8 1.0.0-3.module+el8.9.0+19193+435404ae
  • rubygem-abrt RHEL 8 0.3.0-4.module+el8.10.0+22021+135c76a8
  • rubygem-bson RHEL 8 4.3.0-2.module+el8.9.0+19193+435404ae
  • rubygem-json RHEL 8 2.1.0-112.module+el8.10.0+22021+135c76a8

red hat advisories RHSA-2024:4499RHSA-2024:5338

  • ruby2.5 SLES for SAP 15 SP3, SLES for SAP 15 SP2, SLES 15 SP4-LTSS +9 more 2.5.9-150000.4.32.1

suse advisories SUSE-SU-2024:3874-1

  • rubygem-rexml Package Hub 15 SP6, openSUSE Leap 15.6 3.3.9-bp156.4.3.1

opensuse advisories openSUSE-SU-2025:0129-1

  • pcs AlmaLinux 8 0.10.18-2.el8_10.1
  • pcs-snmp AlmaLinux 8 0.10.18-2.el8_10.1
  • ruby AlmaLinux 8 2.5.9-112.module_el8.10.0+3871+342e2c2f
  • ruby-irb AlmaLinux 8 2.5.9-112.module_el8.10.0+3871+342e2c2f
  • rubygems AlmaLinux 8 2.7.6.3-112.module_el8.10.0+3871+342e2c2f
  • ruby-libs AlmaLinux 8 2.5.9-112.module_el8.10.0+3871+342e2c2f
  • rubygem-pg AlmaLinux 8 1.0.0-3.module_el8.9.0+3635+c6f99506
  • rubygem-abrt AlmaLinux 8 0.3.0-4.module_el8.10.0+3871+342e2c2f

almalinux advisories ALSA-2024:5338ALSA-2024:4499

  • pcs Rocky Linux 8 0.10.18-2.el8_10.1
  • ruby Rocky Linux 8 2.5.9-112.module+el8.10.0+1839+f1f156ae
  • rubygem-pg Rocky Linux 8 1.0.0-3.module+el8.9.0+1536+5f79634e
  • rubygem-abrt Rocky Linux 8 0.3.0-4.module+el8.5.0+738+032c9c02
  • rubygem-bson Rocky Linux 8 4.3.0-2.module+el8.9.0+1536+5f79634e
  • rubygem-mongo Rocky Linux 8 2.5.1-2.module+el8.9.0+1536+5f79634e
  • rubygem-mysql2 Rocky Linux 8 0.4.10-4.module+el8.9.0+1536+5f79634e
  • rubygem-bundler Rocky Linux 8 1.16.1-4.module+el8.9.0+1536+5f79634e

rocky linux advisories RLSA-2024:5338RLSA-2024:4499

  • ruby Azure Linux 3.0 3.3.3-1
  • rubygem-rexml Azure Linux 3.0 3.2.8-1
  • ruby CBL-Mariner 2.0 3.1.4-6
  • rubygem-rexml CBL-Mariner 2.0 3.2.7-1

azure linux advisories AZL-42052AZL-42064AZL-42070AZL-42076

Azure Linux vulnerability data, Copyright (c) Microsoft Corporation, from https://github.com/microsoft/AzureLinuxVulnerabilityData via OSV, under the MIT licence; changed: normalised to fixed package versions per release. MIT

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2024-35176 updated cvss 5.3

REXML: DoS parsing an XML with many `<`s in an attribute value

  • Red Hat Enterprise Linux 6 ruby, ruby-ri, ruby-irb, ruby-libs, ruby-rdoc, ruby-tcltk
    affected: no fix planned “Out of support scope”
  • Red Hat Enterprise Linux 7 ruby, ruby-irb, rubygems, ruby-libs, ruby-tcltk, rubygem-json, +6 more Red Hat Enterprise Linux 8 ruby, ruby-irb, rubygems, ruby-libs, rubygem-pg, rubygem-irb, +25 more Red Hat Enterprise Linux 9 pcs, ruby, pcs-snmp, rubygems, ruby-libs, rubygem-irb, +15 more Red Hat Enterprise Linux 10 ruby
    affected: no fix available “Fix deferred”
  • Red Hat Storage 3 ruby, ruby-irb, rubygems, ruby-libs, rubygem-json, rubygem-rake, +11 more
    affected: no fix planned “Out of support scope”
  • Red Hat Enterprise Linux AppStream (v. 8) ruby 2.5.9-112.module+el8.10.0+22021+135c76a8, rubygem-pg 1.0.0-3.module+el8.9.0+19193+435404ae, ruby-irb 2.5.9-112.module+el8.10.0+22021+135c76a8, ruby-libs 2.5.9-112.module+el8.10.0+22021+135c76a8, rubygem-bson 4.3.0-2.module+el8.9.0+19193+435404ae, rubygem-abrt 0.3.0-4.module+el8.10.0+22021+135c76a8, +17 more
    fixed: vendor fix RHSA-2024:4499
  • Red Hat Enterprise Linux HighAvailability (v. 8) pcs 0.10.18-2.el8_10.1, pcs-snmp 0.10.18-2.el8_10.1 Red Hat Enterprise Linux ResilientStorage (v. 8) pcs 0.10.18-2.el8_10.1, pcs-snmp 0.10.18-2.el8_10.1
    fixed: vendor fix RHSA-2024:5338

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

CISA SSVC

Exploitation
none
Automatable
yes
Technical impact
partial
Assessed
2 y ago

Exploit prediction

2.06% chance of exploitation in the next 30 days, higher than 81% of all scored CVEs (FIRST EPSS, 2026-11-08).

CVSS scores

assigned by version score vector
CNA 3.1 5.3 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
GitHub 3.1 5.3 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L

Affected packages

ecosystem package affected fixed in
rubygems rexml
<3.2.7
3.2.7

Affected products

  • ruby rexml
  • ruby-lang rexml

Classification

Weakness
  • CWE-400 Uncontrolled Resource Consumption
  • CWE-770 Allocation of Resources Without Limits or Throttling

References

Sources

Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.

CPEs and fixed versions use Anchore's correction of NVD's data: Added CPE configurations because not yet analyzed by NVD.