1.2low
REXML has a DoS condition when parsing malformed XML file
- Severity
- 1.2low CVSS:4.0 by GitHub_M
- Exploit likelihood
- 0.25% (higher than 17% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-c2f4-jgmc-q2r5
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| ruby rexml | >= 3.3.3, < 3.4.2 | CVE List |
| rexml (RubyGems) | from 3.3.3 before 3.4.2 | GitHub Advisory Database |
| ruby-lang rexml | from 3.3.3 before 3.4.2 | NVD |
All scores
| GitHub_M | 1.2low 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 |
| GitHub | low 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 | 5.3medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L |
Classification
What each source says
CVE List
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.
GitHub Advisory Database
Impact
The REXML gems from 3.3.3 to 3.4.1 have a DoS vulnerability when parsing XML containing multiple XML declarations. If you need to parse untrusted XMLs, you may be impacted to these vulnerabilities.
Patches
REXML gems 3.4.2 or later include the patches to fix these vulnerabilities.
Workarounds
Don't parse untrusted XMLs.
References
- https://www.ruby-lang.org/en/news/2025/09/18/dos-rexml-cve-2025-58767/ : An announcement on www.ruby-lang.org
NVD (es)
REXML es un kit de herramientas XML para Ruby. Las gemas REXML de la 3.3.3 a la 3.4.1 tienen una vulnerabilidad de DoS al analizar XML que contiene mĂșltiples declaraciones XML. Si necesita analizar XML no confiables, puede verse afectado por estas vulnerabilidades. La gema REXML 3.4.2 o posterior incluye los parches para corregir estas vulnerabilidades.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2025-58767 changed 2025-09-17 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-c2f4-jgmc-q2r5 changed 2026-09-10 | CC-BY-4.0 |
| NVD | CVE-2025-58767 changed 2026-06-17 | Public domain |