CVE-2025-58767
JSON

1.2low

REXML has a DoS condition when parsing malformed XML file

Severity
1.2low CVSS:4.0 by GitHub_M
Exploit likelihood
0.25% (higher than 17% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-c2f4-jgmc-q2r5

Description

REXML is an XML toolkit for Ruby. 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. The REXML gem 3.4.2 or later include the patches to fix these vulnerabilities.

Affected

Product or packageVersionsReported by
ruby rexml>= 3.3.3, < 3.4.2CVE List
rexml (RubyGems)from 3.3.3 before 3.4.2GitHub Advisory Database
ruby-lang rexmlfrom 3.3.3 before 3.4.2NVD

All scores

GitHub_M1.2low CVSS:4.0CVSS: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
GitHublow CVSS:4.0CVSS: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
NVD5.3medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L

Classification

CWE-400CWE-776

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

REXML is an XML toolkit for Ruby. 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. The REXML gem 3.4.2 or later include the patches to fix these vulnerabilities.

GitHub Advisory Database
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
NVD (es)

REXML es un kit de herramientas XML para Ruby. Las gemas REXML de la 3.3.3 a la 3.4.1 tienen una vulnerabilidad de DoS al analizar XML que contiene mĂșltiples declaraciones XML. Si necesita analizar XML no confiables, puede verse afectado por estas vulnerabilidades. La gema REXML 3.4.2 o posterior incluye los parches para corregir estas vulnerabilidades.

References

Sources

SourceRecordLicence
CVE ListCVE-2025-58767 changed 2025-09-17CVE Terms of Use
GitHub Advisory DatabaseGHSA-c2f4-jgmc-q2r5 changed 2026-09-10CC-BY-4.0
NVDCVE-2025-58767 changed 2026-06-17Public domain