Live threats

All CVEs / Ruby-lang

CVE-2024-49761Ruby-lang Rexml

Medium 6.6 No auth needed

Priority
55
CVSS 4.0
6.6
EPSS
1.4%
probability of exploitation in 30 days · percentile 73
Auth required
No
Published
Oct 28, 2024
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-1333
SSVC (CISA)
Exploitation: none · Automatable: yes · Technical impact: partial
Vector
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:U/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X

What happens

REXML is an XML toolkit for Ruby. The REXML gem before 3.3.9 has a ReDoS vulnerability when it parses an XML that has many digits between &# and x...; in a hex numeric character reference (&#x...;). This does not happen with Ruby 3.2 or later. Ruby 3.1 is the only affected maintained Ruby. The REXML gem 3.3.9 or later include the patch to fix the vulnerability.

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.3.9 3.3.9 gem "rexml", ">= 3.3.9"

Per OSV / GitHub Advisories (GHSA-2rxp-v6pw-ch6m). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
ruby-langrexml< 3.3.9
netappontap_tools10

Official advisories

Vendor, CERT and distribution advisories that name this CVE. Original titles.

Official sources

References

Links published by the sources. Open them with care.