CVE-2024-49761 json
REXML ReDoS vulnerability
published 2024-10-28 2 y ago modified 2026-09-10 1 mo ago also CVE-2025-10990 , EUVD-2024-2910 , GHSA-2rxp-v6pw-ch6m
- cvss
- 7.5
- version 3.1, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 1.4%
- EPSS 1.4% chance of exploitation in 30 days, percentile 73%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- rubygems rexml 3.3.9
- ruby rexml 3.3.9
- ruby3.3 Debian 14, Debian 13 3.3.6-1
debian advisories DEBIAN-CVE-2024-49761
- ruby2.7 Ubuntu 20.04 LTS 2.7.0-5ubuntu1.15
- ruby3.0 Ubuntu 22.04 LTS 3.0.2-7ubuntu2.8
- ruby3.2 Ubuntu 24.04 LTS 3.2.3-1ubuntu0.24.04.3
- ruby2.3 Ubuntu Pro 16.04 LTS 2.3.1-2~ubuntu16.04.16+esm10
- ruby2.5 Ubuntu Pro 18.04 LTS 2.5.1-1ubuntu1.16+esm4
ubuntu advisories UBUNTU-CVE-2024-49761
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
- cjson satellite capsule 6.15, satellite 6.15 1.7.18-2.el8sat
- puppet-agent satellite capsule 6.15, satellite 6.15 7.34.0-4.el8sat
- python-django satellite capsule 6.15, satellite 6.15 4.2.24-0.1.el8pc
- python3.11-django satellite capsule 6.15, satellite 6.15 4.2.24-0.1.el8pc
- puppet-agent RHEL 6 SATELLITE_CLIENT 7.34.0-3.el8sat
- puppet-agent RHEL 6 SATELLITE_CLIENT 7.34.0-3.el9sat
- satellite satellite utils 6.16, satellite capsule 6.16, satellite 6.16 6.16.5.3-1.el8sat
- satellite satellite utils 6.16, satellite capsule 6.16, satellite 6.16 6.16.5.3-1.el9sat
red hat advisories RHSA-2025:17614RHSA-2025:15371RHSA-2025:15124RHSA-2025:13269RHSA-2025:13307RHSA-2025:12499
- ruby2.5 SLE Module for Basesystem 15 SP7 2.5.9-150700.24.6.1
- ruby2.5 SLE Module for Basesystem 15 SP7 2.5.9-150700.24.3.1
- ruby2.5 SLES for SAP 15 SP5, SLES for SAP 15 SP4, SLES for SAP 15 SP3 +13 more 2.5.9-150000.4.36.1
suse advisories SUSE-SU-2026:1066-1SUSE-SU-2025:4264-1SUSE-SU-2025:0736-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.6.alma.1
- pcs-snmp AlmaLinux 8 0.10.18-2.el8_10.6.alma.1
- ruby AlmaLinux 8 3.1.5-144.module_el8.10.0+3933+43481280
- rubygems AlmaLinux 8 3.3.27-144.module_el8.10.0+3933+43481280
- ruby-libs AlmaLinux 8 3.1.5-144.module_el8.10.0+3933+43481280
- rubygem-pg AlmaLinux 8 1.3.2-1.module_el8.10.0+3854+02eaa59a
- rubygem-pg AlmaLinux 8 1.3.2-1.module_el8.9.0+3746+91b8233a
- rubygem-irb AlmaLinux 8 1.4.1-144.module_el8.10.0+3933+43481280
almalinux advisories ALSA-2025:11047ALSA-2024:10834ALSA-2024:10850ALSA-2024:10858ALSA-2024:10860
- pcs Rocky Linux 8 0.10.18-2.el8_10.6
- ruby Rocky Linux 9 3.0.7-163.el9_5
- rubygem-pg Rocky Linux 9 1.3.5-1.module+el9.6.0+31865+0893c253
- rubygem-mysql2 Rocky Linux 9 0.5.4-1.module+el9.6.0+31865+0893c253
- ruby Rocky Linux 8 3.1.5-144.module+el8.10.0+1903+95c5d658
- rubygem-pg Rocky Linux 8 1.3.2-1.module+el8.10.0+1741+bdb5b6ca
- rubygem-abrt Rocky Linux 8 0.4.0-1.module+el8.10.0+1679+61871737
- rubygem-mysql2 Rocky Linux 8 0.5.3-3.module+el8.10.0+1744+6c504228
rocky linux advisories RLSA-2025:11047RLSA-2024:10858RLSA-2024:10860RLSA-2024:10834RLSA-2024:10850
- ruby-rexml Alpine 3.24, Alpine 3.23, Alpine 3.22 +3 more 3.3.9-r0
alpine advisories ALPINE-CVE-2024-49761
Alpine secdb © Alpine Linux, from https://secdb.alpinelinux.org via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- ruby CBL-Mariner 2.0 3.1.4-8
- rubygem-rexml CBL-Mariner 2.0 3.2.7-3
- ruby Azure Linux 3.0 3.3.5-1
- rubygem-rexml Azure Linux 3.0 3.3.9-1
azure linux advisories AZL-51876AZL-51894AZL-51904AZL-51908
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-49761 updated cvss 7.5
rexml: REXML ReDoS vulnerability
-
Red Hat 3scale API Management Platform 2 3scale-amp2/zync-rhel8, 3scale-amp2/zync-rhel9affected: no fix planned “Will not fix”
-
Red Hat Enterprise Linux 6 ruby, ruby-ri, ruby-irb, ruby-libs, ruby-rdoc, ruby-tcltk Red Hat Enterprise Linux 7 ruby, ruby-irb, rubygems, ruby-libs, ruby-tcltk, rubygem-json, +6 moreaffected: no fix planned “Out of support scope”
-
Red Hat Enterprise Linux 9 pcs, pcs-snmpaffected: no fix available
-
Red Hat Storage 3 ruby, ruby-irb, rubygems, ruby-libs, rubygem-json, rubygem-rake, +11 moreaffected: no fix planned “Out of support scope”
-
Red Hat CodeReady Linux Builder (v. 9) ruby-doc 3.0.7-163.el9_5fixed: vendor fix RHSA-2024:10858
-
Red Hat CodeReady Linux Builder EUS (v.9.2) ruby-doc 3.0.4-161.el9_2.2fixed: vendor fix RHSA-2024:10964
-
Red Hat CodeReady Linux Builder EUS (v.9.4) ruby-doc 3.0.7-162.el9_4.1fixed: vendor fix RHSA-2024:10961
-
Red Hat Enterprise Linux AppStream (v. 8) ruby 2.5.9-113.module+el8.10.0+22581+23fc9c9e, ruby 3.1.5-144.module+el8.10.0+22580+b97d9670, rubygem-pg 1.0.0-3.module+el8.9.0+19193+435404ae, ruby-irb 2.5.9-113.module+el8.10.0+22581+23fc9c9e, rubygem-pg 1.3.2-1.module+el8.10.0+21470+43ec8058, ruby-libs 2.5.9-113.module+el8.10.0+22581+23fc9c9e, +40 morefixed: vendor fix RHSA-2024:10850
show 24 moreshow fewer
-
Red Hat Enterprise Linux AppStream (v. 9) ruby 3.0.7-163.el9_5, ruby-libs 3.0.7-163.el9_5, rubygems 3.2.33-163.el9_5, rubygem-irb 1.3.5-163.el9_5, rubygem-rbs 1.4.0-163.el9_5, rubygem-rss 0.2.9-163.el9_5, +35 morefixed: vendor fix RHSA-2024:10858
-
Red Hat Enterprise Linux AppStream AUS (v. 8.2) ruby 2.5.5-106.module+el8.2.0+22646+0b11b626, rubygem-pg 1.0.0-2.module+el8.1.0+3656+f80bfa1d, ruby-irb 2.5.5-106.module+el8.2.0+22646+0b11b626, ruby-libs 2.5.5-106.module+el8.2.0+22646+0b11b626, rubygem-abrt 0.3.0-4.module+el8.1.0+3656+f80bfa1d, rubygem-bson 4.3.0-2.module+el8.1.0+3656+f80bfa1d, +17 morefixed: vendor fix RHSA-2024:11027
-
Red Hat Enterprise Linux AppStream AUS (v.8.4) ruby 2.5.9-108.module+el8.4.0+22645+8a608fad, rubygem-pg 1.0.0-2.module+el8.1.0+3656+f80bfa1d, ruby-irb 2.5.9-108.module+el8.4.0+22645+8a608fad, ruby-libs 2.5.9-108.module+el8.4.0+22645+8a608fad, rubygem-abrt 0.3.0-4.module+el8.1.0+3656+f80bfa1d, rubygem-bson 4.3.0-2.module+el8.1.0+3656+f80bfa1d, +17 morefixed: vendor fix RHSA-2024:11028
-
Red Hat Enterprise Linux AppStream AUS (v.8.6) ruby 2.5.9-111.module+el8.6.0+22644+99a75427, rubygem-pg 1.0.0-2.module+el8.1.0+3656+f80bfa1d, ruby-irb 2.5.9-111.module+el8.6.0+22644+99a75427, ruby-libs 2.5.9-111.module+el8.6.0+22644+99a75427, rubygem-abrt 0.3.0-4.module+el8.1.0+3656+f80bfa1d, rubygem-bson 4.3.0-2.module+el8.1.0+3656+f80bfa1d, +17 morefixed: vendor fix RHSA-2024:11029
-
Red Hat Enterprise Linux AppStream E4S (v.8.4) ruby 2.5.9-108.module+el8.4.0+22645+8a608fad, rubygem-pg 1.0.0-2.module+el8.1.0+3656+f80bfa1d, ruby-irb 2.5.9-108.module+el8.4.0+22645+8a608fad, ruby-libs 2.5.9-108.module+el8.4.0+22645+8a608fad, rubygem-abrt 0.3.0-4.module+el8.1.0+3656+f80bfa1d, rubygem-bson 4.3.0-2.module+el8.1.0+3656+f80bfa1d, +17 morefixed: vendor fix RHSA-2024:11028
-
Red Hat Enterprise Linux AppStream E4S (v.8.6) ruby 2.5.9-111.module+el8.6.0+22644+99a75427, rubygem-pg 1.0.0-2.module+el8.1.0+3656+f80bfa1d, ruby-irb 2.5.9-111.module+el8.6.0+22644+99a75427, ruby-libs 2.5.9-111.module+el8.6.0+22644+99a75427, rubygem-abrt 0.3.0-4.module+el8.1.0+3656+f80bfa1d, rubygem-bson 4.3.0-2.module+el8.1.0+3656+f80bfa1d, +17 morefixed: vendor fix RHSA-2024:11029
-
Red Hat Enterprise Linux AppStream E4S (v.9.0) ruby 3.0.4-160.1.el9_0, ruby-libs 3.0.4-160.1.el9_0, rubygems 3.2.33-160.1.el9_0, rubygem-irb 1.3.5-160.1.el9_0, rubygem-rbs 1.4.0-160.1.el9_0, rubygem-rss 0.2.9-160.1.el9_0, +13 morefixed: vendor fix RHSA-2024:10977
-
Red Hat Enterprise Linux AppStream EUS (v.8.8) ruby 2.5.9-111.module+el8.8.0+22642+d0d7978a, ruby 3.1.2-142.module+el8.8.0+22637+76cde83a, rubygem-pg 1.0.0-2.module+el8.1.0+3656+f80bfa1d, ruby-irb 2.5.9-111.module+el8.8.0+22642+d0d7978a, rubygem-pg 1.3.2-1.module+el8.7.0+15125+b11ff321, rubygems 3.3.7-142.module+el8.8.0+22637+76cde83a, +40 morefixed: vendor fix RHSA-2024:11001
-
Red Hat Enterprise Linux AppStream EUS (v.9.2) ruby 3.0.4-161.el9_2.2, ruby-libs 3.0.4-161.el9_2.2, rubygems 3.2.33-161.el9_2.2, rubygem-irb 1.3.5-161.el9_2.2, rubygem-rbs 1.4.0-161.el9_2.2, rubygem-rss 0.2.9-161.el9_2.2, +35 morefixed: vendor fix RHSA-2024:10964
-
Red Hat Enterprise Linux AppStream EUS (v.9.4) ruby 3.0.7-162.el9_4.1, ruby-libs 3.0.7-162.el9_4.1, rubygems 3.2.33-162.el9_4.1, rubygem-irb 1.3.5-162.el9_4.1, rubygem-rbs 1.4.0-162.el9_4.1, rubygem-rss 0.2.9-162.el9_4.1, +35 morefixed: vendor fix RHSA-2024:10961
-
Red Hat Enterprise Linux AppStream TUS (v.8.4) ruby 2.5.9-108.module+el8.4.0+22645+8a608fad, rubygem-pg 1.0.0-2.module+el8.1.0+3656+f80bfa1d, ruby-irb 2.5.9-108.module+el8.4.0+22645+8a608fad, ruby-libs 2.5.9-108.module+el8.4.0+22645+8a608fad, rubygem-abrt 0.3.0-4.module+el8.1.0+3656+f80bfa1d, rubygem-bson 4.3.0-2.module+el8.1.0+3656+f80bfa1d, +17 morefixed: vendor fix RHSA-2024:11028
-
Red Hat Enterprise Linux AppStream TUS (v.8.6) ruby 2.5.9-111.module+el8.6.0+22644+99a75427, rubygem-pg 1.0.0-2.module+el8.1.0+3656+f80bfa1d, ruby-irb 2.5.9-111.module+el8.6.0+22644+99a75427, ruby-libs 2.5.9-111.module+el8.6.0+22644+99a75427, rubygem-abrt 0.3.0-4.module+el8.1.0+3656+f80bfa1d, rubygem-bson 4.3.0-2.module+el8.1.0+3656+f80bfa1d, +17 morefixed: vendor fix RHSA-2024:11029
-
Red Hat Enterprise Linux High Availability E4S (v.8.6) pcs 0.10.12-6.el8_6.9, pcs-snmp 0.10.12-6.el8_6.9fixed: vendor fix RHSA-2025:13307
-
Red Hat Enterprise Linux High Availability E4S (v.8.8) pcs 0.10.15-4.el8_8.8, pcs-snmp 0.10.15-4.el8_8.8fixed: vendor fix RHSA-2025:12499
-
Red Hat Enterprise Linux High Availability E4S (v.9.0) pcs 0.11.1-10.el9_0.6, pcs-snmp 0.11.1-10.el9_0.6fixed: vendor fix RHSA-2024:10777
-
Red Hat Enterprise Linux High Availability TUS (v.8.6) pcs 0.10.12-6.el8_6.9, pcs-snmp 0.10.12-6.el8_6.9fixed: vendor fix RHSA-2025:13307
-
Red Hat Enterprise Linux High Availability TUS (v.8.8) pcs 0.10.15-4.el8_8.8, pcs-snmp 0.10.15-4.el8_8.8fixed: vendor fix RHSA-2025:12499
-
Red Hat Enterprise Linux HighAvailability (v. 8) pcs 0.10.18-2.el8_10.6, pcs-snmp 0.10.18-2.el8_10.6 Red Hat Enterprise Linux ResilientStorage (v. 8) pcs 0.10.18-2.el8_10.6, pcs-snmp 0.10.18-2.el8_10.6fixed: vendor fix RHSA-2025:11047
-
Red Hat Enterprise Linux ResilientStorage E4S (v.9.0) pcs 0.11.1-10.el9_0.6, pcs-snmp 0.11.1-10.el9_0.6fixed: vendor fix RHSA-2024:10777
-
Red Hat Satellite 6.15 for RHEL 8 puppet-agent 7.34.0-4.el8satfixed: vendor fix RHSA-2025:17614
-
Red Hat Satellite 6.16 for RHEL 8 puppet-agent 8.8.1-2.el8sat, puppetserver 8.6.2-3.el8sat, satellite 6.16.5.3-1.el8sat, satellite-cli 6.16.5.3-1.el8sat, satellite-common 6.16.5.3-1.el8sat, satellite-capsule 6.16.5.3-1.el8sat, +2 more Red Hat Satellite 6.16 for RHEL 9 puppet-agent 8.8.1-2.el9sat, puppetserver 8.6.2-3.el9sat, satellite 6.16.5.3-1.el9sat, satellite-cli 6.16.5.3-1.el9sat, satellite-common 6.16.5.3-1.el9sat, satellite-capsule 6.16.5.3-1.el9sat, +2 morefixed: vendor fix RHSA-2025:15124
-
Red Hat Satellite 6.17 for RHEL 9 puppet-agent 8.8.1-2.el9sat, puppetserver 8.6.2-3.el9satfixed: vendor fix RHSA-2025:13269
-
Red Hat Satellite Client 6 for RHEL 8 puppet-agent 7.34.0-3.el8sat Red Hat Satellite Client 6 for RHEL 9 puppet-agent 7.34.0-3.el9satfixed: vendor fix RHSA-2025:15371
-
Red Hat 3scale API Management Platform 2 3scale-amp2/system-rhel7, 3scale-amp2/backend-rhel7, 3scale-amp2/toolbox-rhel7 Red Hat Enterprise Linux 8 ruby, ruby-irb, rubygems, ruby-libs, rubygem-pg, rubygem-irb, +25 more Red Hat Enterprise Linux 9 ruby, rubygems, ruby-libs, rubygem-irb, rubygem-rbs, rubygem-rss, +13 more Red Hat Enterprise Linux 10 ruby Red Hat Satellite 6.15 for RHEL 8 cjson 1.7.18-2.el8sat, satellite 6.15.5.5-1.el8sat, python-django 4.2.24-0.1.el8pc, satellite-cli 6.15.5.5-1.el8sat, python3.11-django 4.2.24-0.1.el8pc, satellite-common 6.15.5.5-1.el8sat, +1 morenot affected: vulnerable code not present
1 more not affected in the full advisory
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
1.42% chance of exploitation in the next 30 days, higher than 73% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 4.0 | 6.6 | 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 |
| GitHub | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| CNA | 4.0 | 6.6 | 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 |
| NVD | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| rubygems | rexml | <3.3.9 |
3.3.9 |
Affected products
- ruby rexml
Classification
- Weakness
-
- CWE-1333 Inefficient Regular Expression Complexity
References
-
github.com
/ruby/rexml/commit/ce59f2eb1aeb371fe1643414f06618dbe031979f
web, patch
-
ruby-lang.org
/en/news/2024/10/28/redos-rexml-cve-2024-49761
web, vendor-advisory
-
github.com
/ruby/rexml/security/advisories/GHSA-2rxp-v6pw-ch6m
web, third-party-advisory
-
security.netapp.com
/advisory/ntap-20241227-0004/
third-party-advisory
-
lists.debian.org
/debian-lts-announce/2025/01/msg00011.html
web
-
nvd.nist.gov
/vuln/detail/CVE-2024-49761
advisory
-
github.com
/ruby/rexml
package
-
github.com
/rubysec/ruby-advisory-db/blob/master/gems/rexml/CVE-2024-49761.yml
web
-
security.netapp.com
/advisory/ntap-20241227-0004
web
Sources
- CVE List CVE-2024-49761
- GitHub Advisory GHSA-2rxp-v6pw-ch6m
- NVD CVE-2024-49761
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.