CVE-2022-28131
HIGH7.5EPSS 0.03%Stack exhaustion from deeply nested XML documents in encoding/xml
Published: 7/20/2022Modified: 4/28/2026
Description
Uncontrolled recursion in Decoder.Skip 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 a deeply nested XML document.
Affected packages (3)
- Bitnami/golangfrom 0, < 1.17.12, >= 1.18.0, < 1.18.4
- Debian/golang-1.15from 0
- 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-28131
- PATCHhttps://go.dev/cl/417062
- PATCHhttps://go.googlesource.com/go/+/08c46ed43d80bbb67cb904944ea3417989be4af3
- REPORThttps://go.dev/issue/53614
- WEBhttps://groups.google.com/g/golang-announce/c/nqrv9fbR0zE
- WEBhttps://nvd.nist.gov/vuln/detail/CVE-2022-28131
- WEBhttps://pkg.go.dev/vuln/GO-2022-0521