Live threats

All CVEs / Ruby-lang

CVE-2024-35176Ruby-lang Rexml

Medium 5.3 No auth needed

Priority
47
CVSS 3.1
5.3
EPSS
2.1%
probability of exploitation in 30 days · percentile 82
Auth required
No
Published
May 16, 2024
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-400, CWE-770
SSVC (CISA)
Exploitation: none · Automatable: yes · Technical impact: partial
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Rexml.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
RubyGems rexml < 3.2.7 3.2.7 gem "rexml", ">= 3.2.7"

Per OSV / GitHub Advisories (GHSA-vg3r-rm7w-2xgh). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
ruby-langrexml< 3.2.7

Official sources

References

Links published by the sources. Open them with care.