Affected versions
Ubuntu20.04:LTS/ruby2.7
- Affected versions
- <2.7.0-5ubuntu1.15
- Fixed version
- 2.7.0-5ubuntu1.15
Ubuntu22.04:LTS/ruby3.0
- Affected versions
- <3.0.2-7ubuntu2.8
- Fixed version
- 3.0.2-7ubuntu2.8
Ubuntu24.04:LTS/ruby3.2
- Affected versions
- <3.2.3-1ubuntu0.24.04.3
- Fixed version
- 3.2.3-1ubuntu0.24.04.3
UbuntuPro:16.04:LTS/ruby2.3
- Affected versions
- <2.3.1-2~ubuntu16.04.16+esm10
- Fixed version
- 2.3.1-2~ubuntu16.04.16+esm10
UbuntuPro:18.04:LTS/ruby2.5
- Affected versions
- <2.5.1-1ubuntu1.16+esm4
- Fixed version
- 2.5.1-1ubuntu1.16+esm4
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.
Links
- https://github.com/ruby/rexml/commit/ce59f2eb1aeb371fe1643414f06618dbe031979f
- https://github.com/ruby/rexml/security/advisories/GHSA-2rxp-v6pw-ch6m
- https://ubuntu.com/security/CVE-2024-49761
- https://ubuntu.com/security/notices/USN-7091-1
- https://ubuntu.com/security/notices/USN-7091-2
- https://ubuntu.com/security/notices/USN-7442-1
- https://www.cve.org/CVERecord?id=CVE-2024-49761
- https://www.ruby-lang.org/en/news/2024/10/28/redos-rexml-cve-2024-49761
- https://www.ruby-lang.org/en/news/2024/10/28/redos-rexml-cve-2024-49761/

