CVE-2022-30633
golang: encoding/xml: stack exhaustion in Unmarshal
Loading…
Severity
ModerateRed Hat Product Security
CVSS 3.1
Review impact separately from score.
Published · July 12, 2022
Updated · October 23, 2026
Description
A flaw was found in golang. Calling Unmarshal on an XML document into a Go struct, which has a nested field that uses the "any" field tag, can cause a panic due to stack exhaustion.
Statement
Red Hat has marked this as moderate impact for two primary reasons
- Though the vulnerability exists, it is hard to exploit in real scenarios (e.g., the attacker must be able to feed crafted XML documents into specific code paths).
- The vulnerability is a denial of service (DoS) due to stack exhaustion rather than code execution or data breach. Since it doesn’t compromise confidentiality or integrity.
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
No mitigation is specified in collected source.
CVSS / CWE
CVSS 3.1 · 7.5CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
CWE-1325 · Improperly Controlled Sequential Memory Allocation