REXML has a DoS condition when parsing malformed XML file
ruby rexml
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| rexml RubyGems |
|
|
Original 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.
From the CVE record · GitHub_M
References
- github.com/ruby/rexml/security/advisories/GHSA-c2f4-jgmc-q2r5Vendor advisory
- github.com/ruby/rexml/commit/5859bdeac792687eaf93d8e8f0b7e3c1e2ed5c23Patch
- github.com/CVEProject/cvelistV5/tree/main/cves/2025/58xxx/CVE-2025-58767.json
- nvd.nist.gov/vuln/detail/CVE-2025-58767
- github.com/ruby/rexml
- github.com/rubysec/ruby-advisory-db/blob/master/gems/rexml/CVE-2025-58767.yml
- ruby-lang.org/en/news/2025/09/18/dos-rexml-cve-2025-58767