CVE-2025-58767
LOW 1.2CVSS 4.0REXML has DoS condition when parsing malformed XML file
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.
- Published
- 17 Sep 2025
- Last modified
- 10 Sep 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Analyzed
- Weakness
- CWE-400CWE-776
- Also known as
- GHSA-c2f4-jgmc-q2r5
- Sources
- NVDJSONOSV GHSA-c2f4-jgmc-q2r5JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 4.0 | LOW 1.2 | CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:U/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X |
| OSV | GitHub | CVSS 4.0 | CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:U | |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | ruby-lang | rexmlcpe:2.3:a:ruby-lang:rexml:*:*:*:*:*:ruby:*:* |
>= 3.3.3, < 3.4.2 | 3.4.2 |
| OSV | RubyGems | rexml | >= 3.3.3, < 3.4.2 | 3.4.2 |
References
- https://github.com/ruby/rexml/commit/5859bdeac792687eaf93d8e8f0b7e3c1e2ed5c23 · Patch, WEB
- https://github.com/ruby/rexml/security/advisories/GHSA-c2f4-jgmc-q2r5 · Vendor Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2025-58767 · ADVISORY
- https://github.com/ruby/rexml · PACKAGE
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/rexml/CVE-2025-58767.yml · WEB
- https://www.ruby-lang.org/en/news/2025/09/18/dos-rexml-cve-2025-58767 · WEB
History
- 25 Nov 2026 20:59 UTC · NVD: first stored (published 17 Sep 2025)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 17 Sep 2025)