CVE-2025-58767 REXML has a DoS condition when parsing malformed XML file
LowCVSS 1.2
EPSS 0.25%
PoC
- Published
- Updated
- Exploit status
- Proof-of-concept only
- CISA SSVC
- No known exploitation · automatable: no · technical impact: partial
- Technology
- UbuntuDebian
Description
REXML is an XML toolkit for Ruby. The REXML gems from 3.3.3 to 3.4.1 has a DoS vulnerability when parsing XML containing multiple XML declarations. If you need to parse untrusted XMLs, you may be impacted to these vulnerabilities. The REXML gem 3.4.2 or later include the patches to fix these vulnerabilities.
Upgrade path
15 packages: 7 fixed, 7 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| azure linux ruby(Azure Linux 3.0) | All versions | No fix listed | No fix yet |
| cbl-mariner ruby(CBL-Mariner 2.0) | All versions | No fix listed | No fix yet |
| debian/ruby3.3(Debian 14) | = 3.3.8-2; = 3.3.8-2.1; = 3.3.8-2.2; All versions | No fix listed | No fix yet |
| ubuntu/ruby3.0(Ubuntu 22.04) | All versions | No fix listed | No fix yet |
| ubuntu/ruby3.2(Ubuntu 24.04) | All versions | No fix listed | No fix yet |
| ubuntu/ruby3.3(Ubuntu 26.04) | All versions | No fix listed | No fix yet |
| ubuntu/ruby3.3(Ubuntu 26.10) | All versions | No fix listed | No fix yet |
| alpine/ruby-rexml(Alpine v3.22) | >= 3.3.3, < 3.4.4-r0 | 3.4.4-r0 | Fixed |
| alpine/ruby-rexml(Alpine v3.23) | >= 3.3.3, < 3.4.4-r0 | 3.4.4-r0 | Fixed |
| alpine/ruby-rexml(Alpine v3.24) | >= 3.3.3, < 3.4.4-r0 | 3.4.4-r0 | Fixed |
| azure linux rubygem-rexml(Azure Linux 3.0) | < 3.3.9-2 | 3.3.9-2 | Fixed |
| debian/ruby3.3(Debian 13) | < 3.3.13-0+deb13u1; = 3.3.8-2; = 3.3.8-2.1; = 3.3.8-2.2 | 3.3.13-0+deb13u1 | Fixed |
| ruby-lang rexml | >= 3.3.3, < 3.4.2 | 3.4.2 | Fixed |
| rubygems rexml(RubyGems) | = 3.3.3; = 3.3.4; = 3.3.5; = 3.3.6 +7 more | 3.4.2 | Fixed |
| ruby rexml | = >= 3.3.3, < 3.4.2 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| azure linux ruby(Azure Linux:3.0) | All versions | No fix listed |
| azure linux rubygem-rexml(Azure Linux:3.0) | < 3.3.9-2 | 3.3.9-2 |
| cbl-mariner ruby(CBL-Mariner:2.0) | All versions | No fix listed |
| rubygems rexml(RubyGems) | >= 3.3.3, < 3.4.2 | 3.4.2 |
| rubygems rexml(RubyGems) | = 3.3.3 | No fix listed |
| rubygems rexml(RubyGems) | = 3.3.4 | No fix listed |
| rubygems rexml(RubyGems) | = 3.3.5 | No fix listed |
| rubygems rexml(RubyGems) | = 3.3.6 | No fix listed |
| rubygems rexml(RubyGems) | = 3.3.7 | No fix listed |
| rubygems rexml(RubyGems) | = 3.3.8 | No fix listed |
| rubygems rexml(RubyGems) | = 3.3.9 | No fix listed |
| rubygems rexml(RubyGems) | = 3.4.0 | No fix listed |
| rubygems rexml(RubyGems) | = 3.4.1 | No fix listed |
| debian/ruby3.3(Debian:13) | < 3.3.13-0+deb13u1 | 3.3.13-0+deb13u1 |
| debian/ruby3.3(Debian:13) | = 3.3.8-2 | No fix listed |
| debian/ruby3.3(Debian:13) | = 3.3.8-2.1 | No fix listed |
| debian/ruby3.3(Debian:13) | = 3.3.8-2.2 | No fix listed |
| debian/ruby3.3(Debian:14) | All versions | No fix listed |
| debian/ruby3.3(Debian:14) | = 3.3.8-2 | No fix listed |
| debian/ruby3.3(Debian:14) | = 3.3.8-2.1 | No fix listed |
| debian/ruby3.3(Debian:14) | = 3.3.8-2.2 | No fix listed |
| rubygems rexml(RubyGems) | >= 3.3.3, <= 3.4.1 | No fix listed |
| ruby rexml | = >= 3.3.3, < 3.4.2 | No fix listed |
| ubuntu/ruby3.0(Ubuntu:22.04) | All versions | No fix listed |
| alpine/ruby-rexml(Alpine:v3.22) | >= 3.3.3, < 3.4.4-r0 | 3.4.4-r0 |
Show 6 more
| Product | Affected versions | Fixed in |
|---|---|---|
| alpine/ruby-rexml(Alpine:v3.23) | >= 3.3.3, < 3.4.4-r0 | 3.4.4-r0 |
| alpine/ruby-rexml(Alpine:v3.24) | >= 3.3.3, < 3.4.4-r0 | 3.4.4-r0 |
| ubuntu/ruby3.2(Ubuntu:24.04) | All versions | No fix listed |
| ubuntu/ruby3.3(Ubuntu:26.04) | All versions | No fix listed |
| ubuntu/ruby3.3(Ubuntu:26.10) | All versions | No fix listed |
| ruby-lang rexml | >= 3.3.3, < 3.4.2 | 3.4.2 |
References
- MSRC Security Update Guide vendor-advisory
- CBL-Mariner Releases vendor-advisory
- https://github.com/ruby/rexml/security/advisories/GHSA-c2f4-jgmc-q2r5 vendor-advisory
- nvd.nist.gov third-party-advisory vendor-advisory
- https://github.com/ruby/rexml/commit/5859bdeac792687eaf93d8e8f0b7e3c1e2ed5c23 patch
- github.com product
- github.com exploit
- www.ruby-lang.org
- Debian Security Tracker CVE-2025-58767 vendor-advisory
- github.com
- Ubuntu CVE tracker vendor-advisory
- www.cve.org
- security.alpinelinux.org vendor-advisory
- bugs.debian.org issue-tracking