GitHub Advisoryadvisory · RubyGems

GHSA-c2f4-jgmc-q2r5 REXML has DoS condition when parsing malformed XML file

LOW Published 2025-09-17 Modified 2025-09-19 Official page ↗
Aliases
CVE-2025-58767
Ecosystem
RubyGems
Packages
rexml
Severity
Low
CVSS vector
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
Weaknesses
CWE-400, CWE-776
Reviewed
2025-09-17

Affected packages

• RubyGems rexml: >= 3.3.3, < 3.4.2 → fixed in 3.4.2

Description

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

Related

Alias · CVE (1)

Weakness · CWE (2)

  • CWE-400 Uncontrolled Resource Consumption weakness
  • CWE-776 Improper Restriction of Recursive Entity References in DTDs weakness

References