Skip to content

DoS condition when parsing malformed XML file

Low
naitoh published GHSA-c2f4-jgmc-q2r5 Sep 17, 2025

Package

bundler rexml (RubyGems)

Affected versions

>= 3.3.3, <= 3.4.1

Patched versions

3.4.2

Description

Impact

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.

Patches

The REXML gem 3.4.2 or later include the patches to fix these vulnerabilities.

Workarounds

Don't parse untrusted XMLs.

References

Severity

Low

CVE ID

CVE-2025-58767

Weaknesses

No CWEs

Credits