# CVE-2025-58767: REXML has a DoS condition when parsing malformed XML file

- Severity: Low 1.2 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.25%, higher than 17% of CVEs (2026-12-01)
- Published: 2025-09-17T17:45:58.118Z
- Modified: 2026-09-10T03:50:28.180Z
- Also known as: GHSA-c2f4-jgmc-q2r5
- Weaknesses: CWE-400, CWE-776
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- ruby rexml: >= 3.3.3, < 3.4.2
- rexml (RubyGems): from 3.3.3 before 3.4.2
- ruby-lang rexml: from 3.3.3 before 3.4.2

## Every score

- GitHub_M: CVSS:4.0 1.2 Low `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: CVSS:4.0 Low `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: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L`

## References

- <https://github.com/ruby/rexml/security/advisories/GHSA-c2f4-jgmc-q2r5> (vendor-advisory, web)
- <https://github.com/ruby/rexml/commit/5859bdeac792687eaf93d8e8f0b7e3c1e2ed5c23> (patch, 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)

## Sources

- CVE List: [CVE-2025-58767](https://www.cve.org/CVERecord?id=CVE-2025-58767), CVE Terms of Use, modified 2025-09-17
- GitHub Advisory Database: [GHSA-c2f4-jgmc-q2r5](https://github.com/advisories/GHSA-c2f4-jgmc-q2r5), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2025-58767](https://nvd.nist.gov/vuln/detail/CVE-2025-58767), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2025-58767 · Whole record: https://cve.day/CVE-2025-58767.json · Rebuilt by cve.day 2026-11-25T22:59:04.793Z
