Advisory

GHSA-c2f4-jgmc-q2r5

Also known as: CVE-2025-58767

Summary

REXML has DoS condition when parsing malformed XML file

Details

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

Severity

Low Basis: The source's own band: LOW

Dates

Published
2025-09-17 18:26 UTC
Modified
2026-09-10 03:50 UTC

Affected packages and fixes

rexml

RubyGems · All systems

Affected

  • introduced 3.3.3, fixed 3.4.2 (ecosystem)

Fixed versions

3.4.2

Fix

The export has no generic command for this ecosystem.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences