GHSA-c2f4-jgmc-q2r5

Suggest an improvement
Source
https://github.com/advisories/GHSA-c2f4-jgmc-q2r5
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2025/09/GHSA-c2f4-jgmc-q2r5/GHSA-c2f4-jgmc-q2r5.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-c2f4-jgmc-q2r5
Aliases
Downstream
Related
Published
2025-09-17T18:26:48Z
Modified
2025-09-19T15:14:28.285079Z
Severity
  • 1.2 (Low) CVSS_V4 - 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 CVSS Calculator
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
Database specific
{
    "severity": "LOW",
    "github_reviewed_at": "2025-09-17T18:26:48Z",
    "cwe_ids": [
        "CWE-400",
        "CWE-776"
    ],
    "nvd_published_at": "2025-09-17T18:15:52Z",
    "github_reviewed": true
}
References

Affected packages

RubyGems / rexml

Package

Name
rexml
Purl
pkg:gem/rexml

Affected ranges

Type
ECOSYSTEM
Events
Introduced
3.3.3
Fixed
3.4.2

Affected versions

3.*

3.3.3
3.3.4
3.3.5
3.3.6
3.3.7
3.3.8
3.3.9
3.4.0
3.4.1

Database specific

{
    "last_known_affected_version_range": "<= 3.4.1"
}