CVE-2022-25313
expat: Stack exhaustion in doctype parsing
Severity
ModerateRed Hat Product Security
CVSS 3.1
Review impact separately from score.
Published · February 19, 2022
Updated · November 2, 2026
Description
A flaw was found in expat. A stack exhaustion in doctype parsing could be triggered by a file with a large number of opening braces, resulting in a denial of service.
Statement
This flaw affects applications that leverage expat to parse untrusted XML files. Applications which only parse trusted XML files or do not process XML files at all are not affected by this flaw.
CVSS score applicability
The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.
Mitigation
There is no known mitigation other than restricting applications using the expat library from processing untrusted XML content.
CVSS / CWE
CVSS 3.1 · 6.5CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
CWE-776 · Improper Restriction of Recursive Entity References in DTDs