CVE-2022-30633 Stack exhaustion when unmarshaling certain documents in encoding/xml
HighCVSS 7.5
EPSS 2.2%
- Published
- Updated
- Exploit status
- No public exploit known
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 products
| Product | Affected versions | Fixed in |
|---|---|---|
| stdlib(Go) | < 1.17.12 | 1.17.12 |
| stdlib(Go) | >= 1.18.0-0, < 1.18.4 | 1.18.4 |
| encoding/xml(Go) | < 1.17.12 | 1.17.12 |
| encoding/xml(Go) | >= 1.18.0-0, < 1.18.4 | 1.18.4 |
| ubuntu/golang-1.13(Ubuntu:22.04) | < 1.13.8-1ubuntu2.22.04.2 | 1.13.8-1ubuntu2.22.04.2 |
| ubuntu/golang-1.18(Ubuntu:22.04) | < 1.18.1-1ubuntu1.1 | 1.18.1-1ubuntu1.1 |
| golang go | < 1.17.12 | 1.17.12 |
| golang go | >= 1.18.0, < 1.18.4 | 1.18.4 |
| alpine/go(Alpine:v3.16) | >= 1.18.0, < 1.18.4-r0 | 1.18.4-r0 |
| alpine/go(Alpine:v3.17) | >= 1.18.0, < 1.18.4-r0 | 1.18.4-r0 |
| alpine/go(Alpine:v3.18) | >= 1.18.0, < 1.18.4-r0 | 1.18.4-r0 |
| alpine/go(Alpine:v3.19) | >= 1.18.0, < 1.18.4-r0 | 1.18.4-r0 |
| alpine/go(Alpine:v3.20) | >= 1.18.0, < 1.18.4-r0 | 1.18.4-r0 |
| alpine/go(Alpine:v3.21) | >= 1.18.0, < 1.18.4-r0 | 1.18.4-r0 |
| alpine/go(Alpine:v3.22) | >= 1.18.0, < 1.18.4-r0 | 1.18.4-r0 |
| alpine/go(Alpine:v3.23) | >= 1.18.0, < 1.18.4-r0 | 1.18.4-r0 |
| alpine/go(Alpine:v3.24) | >= 1.18.0, < 1.18.4-r0 | 1.18.4-r0 |
| debian/golang-1.19(Debian:12) | < 1.19~rc2-1 | 1.19~rc2-1 |
References
- go.dev patch vendor-advisory
- go.googlesource.com mailing-list patch vendor-advisory
- go.dev issue-tracking vendor-advisory
- groups.google.com mailing-list vendor-advisory
- Debian Security Tracker CVE-2022-30633 vendor-advisory
- pkg.go.dev vendor-advisory
- Ubuntu CVE tracker vendor-advisory
- USN-6038-1 vendor-advisory
- USN-6038-2 vendor-advisory
- www.cve.org
- security.alpinelinux.org vendor-advisory