CVE-2022-30633
HIGH7.5EPSS 0.13%Stack exhaustion when unmarshaling certain documents in encoding/xml
Published: 7/20/2022Modified: 4/28/2026
Description
Uncontrolled recursion in Unmarshal in encoding/xml before Go 1.17.12 and Go 1.18.4 allows an attacker to cause a panic due to stack exhaustion via unmarshalling an XML document into a Go struct which has a nested field that uses the 'any' field tag.
Affected packages (4)
- Bitnami/golangfrom 0, < 1.17.12, >= 1.18.0, < 1.18.4
- Debian/golang-1.15from 0
- Debian/golang-1.19from 0, < 1.19~rc2-1
- Go/stdlibfrom 0, < 1.17.12, >= 1.18.0-0, < 1.18.4
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 3.1 | HIGH7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
References (7)
- ADVISORYhttps://security-tracker.debian.org/tracker/CVE-2022-30633
- PATCHhttps://go.dev/cl/417061
- PATCHhttps://go.googlesource.com/go/+/c4c1993fd2a5b26fe45c09592af6d3388a3b2e08
- REPORThttps://go.dev/issue/53611
- WEBhttps://groups.google.com/g/golang-announce/c/nqrv9fbR0zE
- WEBhttps://nvd.nist.gov/vuln/detail/CVE-2022-30633
- WEBhttps://pkg.go.dev/vuln/GO-2022-0523