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.
Metrics
CVSS 3.1 7.5/10
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:HWeakness enumeration
Affected software
| Vendor | Product | Versions |
|---|---|---|
| Go standard library | encoding/xml | < 1.17.12; >= 1.18.0-0, < 1.18.4 |
References
- https://go.dev/cl/417062
- https://go.dev/issue/53614
- https://go.googlesource.com/go/+/08c46ed43d80bbb67cb904944ea3417989be4af3
- https://groups.google.com/g/golang-announce/c/nqrv9fbR0zE
- https://pkg.go.dev/vuln/GO-2022-0521
- https://go.dev/cl/417062
- https://go.dev/issue/53614
- https://go.googlesource.com/go/+/08c46ed43d80bbb67cb904944ea3417989be4af3
- https://groups.google.com/g/golang-announce/c/nqrv9fbR0zE
- https://pkg.go.dev/vuln/GO-2022-0521
Timeline
- Published
- Aug 10, 2022
- Last modified
- Jun 17, 2026
- NVD status
- Modified