CVE-2024-49761 REXML ReDoS vulnerability
MediumCVSS 6.6
EPSS 1.4%
PoC
- Published
- Updated
- Exploit status
- Proof-of-concept only
- CISA SSVC
- No known exploitation · automatable: yes · technical impact: partial
- Technology
- UbuntuDebian
Description
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.
Upgrade path
16 packages: 14 fixed, 1 partially fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| debian/ruby3.1(Debian 12) | < 3.1.7-1~deb12u2; = 3.1.2-7; = 3.1.2-7+deb12u1; = 3.1.2-7+hurd.1 +8 more | 3.1.7-1~deb12u2 | Partially fixed |
| alpine/ruby-rexml(Alpine v3.19) | < 3.3.9-r0 | 3.3.9-r0 | Fixed |
| alpine/ruby-rexml(Alpine v3.20) | < 3.3.9-r0 | 3.3.9-r0 | Fixed |
| alpine/ruby-rexml(Alpine v3.21) | < 3.3.9-r0 | 3.3.9-r0 | Fixed |
| alpine/ruby-rexml(Alpine v3.22) | < 3.3.9-r0 | 3.3.9-r0 | Fixed |
| alpine/ruby-rexml(Alpine v3.23) | < 3.3.9-r0 | 3.3.9-r0 | Fixed |
| alpine/ruby-rexml(Alpine v3.24) | < 3.3.9-r0 | 3.3.9-r0 | Fixed |
| debian/ruby3.3(Debian 13) | < 3.3.6-1 | 3.3.6-1 | Fixed |
| debian/ruby3.3(Debian 14) | < 3.3.6-1 | 3.3.6-1 | Fixed |
| Microsoft cbl mariner | < 3.1.4-8; < 3.2.7-3 | 3.1.4-8, 3.2.7-3 | Fixed |
| ruby rexml | < 3.3.9; = < 3.3.9 | 3.3.9 | Fixed |
| ruby-lang rexml | < 3.3.9 | 3.3.9 | Fixed |
| rubygems rexml(RubyGems) | < 3.3.9 | 3.3.9 | Fixed |
| ubuntu/ruby3.0(Ubuntu 22.04) | < 3.0.2-7ubuntu2.8 | 3.0.2-7ubuntu2.8 | Fixed |
| ubuntu/ruby3.2(Ubuntu 24.04) | < 3.2.3-1ubuntu0.24.04.3 | 3.2.3-1ubuntu0.24.04.3 | Fixed |
| netapp ontap tools | = 10 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| Microsoft cbl mariner | < 3.1.4-8 | 3.1.4-8 |
| Microsoft cbl mariner | < 3.2.7-3 | 3.2.7-3 |
| rubygems rexml(RubyGems) | < 3.3.9 | 3.3.9 |
| ubuntu/ruby3.0(Ubuntu:22.04) | < 3.0.2-7ubuntu2.8 | 3.0.2-7ubuntu2.8 |
| ruby rexml | = < 3.3.9 | No fix listed |
| ruby rexml | < 3.3.9 | 3.3.9 |
| alpine/ruby-rexml(Alpine:v3.19) | < 3.3.9-r0 | 3.3.9-r0 |
| alpine/ruby-rexml(Alpine:v3.20) | < 3.3.9-r0 | 3.3.9-r0 |
| alpine/ruby-rexml(Alpine:v3.21) | < 3.3.9-r0 | 3.3.9-r0 |
| alpine/ruby-rexml(Alpine:v3.22) | < 3.3.9-r0 | 3.3.9-r0 |
| alpine/ruby-rexml(Alpine:v3.23) | < 3.3.9-r0 | 3.3.9-r0 |
| alpine/ruby-rexml(Alpine:v3.24) | < 3.3.9-r0 | 3.3.9-r0 |
| ubuntu/ruby3.2(Ubuntu:24.04) | < 3.2.3-1ubuntu0.24.04.3 | 3.2.3-1ubuntu0.24.04.3 |
| ruby-lang rexml | < 3.3.9 | 3.3.9 |
| netapp ontap tools | = 10 | No fix listed |
| debian/ruby3.1(Debian:12) | < 3.1.7-1~deb12u2 | 3.1.7-1~deb12u2 |
| debian/ruby3.3(Debian:14) | < 3.3.6-1 | 3.3.6-1 |
| debian/ruby3.3(Debian:13) | < 3.3.6-1 | 3.3.6-1 |
| debian/ruby3.1(Debian:12) | All versions | No fix listed |
| debian/ruby3.1(Debian:12) | = 3.1.2-7 | No fix listed |
| debian/ruby3.1(Debian:12) | = 3.1.2-7+deb12u1 | No fix listed |
| debian/ruby3.1(Debian:12) | = 3.1.2-7+hurd.1 | No fix listed |
| debian/ruby3.1(Debian:12) | = 3.1.2-8 | No fix listed |
| debian/ruby3.1(Debian:12) | = 3.1.2-8.1~exp1 | No fix listed |
| debian/ruby3.1(Debian:12) | = 3.1.2-8.3 | No fix listed |
Show 4 more
| Product | Affected versions | Fixed in |
|---|---|---|
| debian/ruby3.1(Debian:12) | = 3.1.2-8.4 | No fix listed |
| debian/ruby3.1(Debian:12) | = 3.1.2-8.5 | No fix listed |
| debian/ruby3.1(Debian:12) | = 3.1.7+really3.1.2-0+deb12u1 | No fix listed |
| debian/ruby3.1(Debian:12) | = 3.1.7-1~deb12u2 | No fix listed |
References
- MSRC Security Update Guide vendor-advisory
- ruby third-party-advisory vendor-advisory
- Debian Security Tracker CVE-2024-49761 vendor-advisory
- https://github.com/ruby/rexml/security/advisories/GHSA-2rxp-v6pw-ch6m third-party-advisory vendor-advisory
- https://github.com/ruby/rexml/commit/ce59f2eb1aeb371fe1643414f06618dbe031979f patch
- https://www.ruby-lang.org/en/news/2024/10/28/redos-rexml-cve-2024-49761 vendor-advisory
- github.com exploit
- security.netapp.com third-party-advisory
- lists.debian.org
- github.com
- Ubuntu CVE tracker vendor-advisory
- USN-7091-1 vendor-advisory
- USN-7091-2 vendor-advisory
- USN-7442-1 vendor-advisory
- www.cve.org
- security.alpinelinux.org vendor-advisory
- bugs.debian.org issue-tracking