Name | CVE-2024-49761 |
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. |
Source | CVE (at NVD; CERT, LWN, oss-sec, fulldisc, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more) |
Vulnerable and fixed packages
The table below lists information on source packages.
Source Package | Release | Version | Status |
---|
ruby2.7 (PTS) | bullseye | 2.7.4-1+deb11u1 | fixed |
| bullseye (security) | 2.7.4-1+deb11u2 | fixed |
ruby3.1 (PTS) | bookworm (security), bookworm | 3.1.2-7+deb12u1 | vulnerable |
| sid, trixie | 3.1.2-8.4 | vulnerable |
ruby3.2 (PTS) | sid | 3.2.3-1 | vulnerable |
ruby3.3 (PTS) | sid, trixie | 3.3.5-2 | vulnerable |
The information below is based on the following data on fixed versions.
Package | Type | Release | Fixed Version | Urgency | Origin | Debian Bugs |
---|
ruby2.7 | source | (unstable) | (not affected) | | | |
ruby3.1 | source | (unstable) | (unfixed) | | | |
ruby3.2 | source | (unstable) | (unfixed) | | | |
ruby3.3 | source | (unstable) | (unfixed) | | | |
Notes
- ruby2.7 <not-affected> (Vulnerable code introduced later)
https://github.com/ruby/rexml/security/advisories/GHSA-2rxp-v6pw-ch6m
https://github.com/ruby/rexml/commit/ce59f2eb1aeb371fe1643414f06618dbe031979f (v3.3.9)
https://www.ruby-lang.org/en/news/2024/10/28/redos-rexml-cve-2024-49761/
double-check, advisory claims ruby 3.2 and above are not affected, but current versions in unstable do not include rexml 3.3.9 yet but earlier versions