Advisory Database
  • Advisories
  • Dependency Scanning
  1. gem
  2. ›
  3. rexml
  4. ›
  5. CVE-2025-58767

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

September 17, 2025 (updated November 10, 2025)

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.

References

  • github.com/advisories/GHSA-c2f4-jgmc-q2r5
  • github.com/ruby/rexml
  • github.com/ruby/rexml/commit/5859bdeac792687eaf93d8e8f0b7e3c1e2ed5c23
  • github.com/ruby/rexml/security/advisories/GHSA-c2f4-jgmc-q2r5
  • github.com/rubysec/ruby-advisory-db/blob/master/gems/rexml/CVE-2025-58767.yml
  • nvd.nist.gov/vuln/detail/CVE-2025-58767
  • www.ruby-lang.org/en/news/2025/09/18/dos-rexml-cve-2025-58767

Code Behaviors & Features

Detect and mitigate CVE-2025-58767 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions starting from 3.3.3 before 3.4.2

Fixed versions

  • 3.4.2

Solution

Upgrade to version 3.4.2 or above.

Impact 5.3 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L

Learn more about CVSS

Weakness

  • CWE-400: Uncontrolled Resource Consumption
  • CWE-776: Improper Restriction of Recursive Entity References in DTDs ('XML Entity Expansion')

Source file

gem/rexml/CVE-2025-58767.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:15:19 +0000.