# CVE-2022-30633: Stack exhaustion when unmarshaling certain documents in encoding/xml

- Priority: **Prioritise**
- Reason: Severe, CVSS 7.5 (CVE.org); no exploitation reported by the 5 checked sources; EPSS 2% (FIRST, 04-12-2026)
- Next step: Check applicability and the vendor advisory: no fix release is recorded here
- Status: published
- Published: 2022-08-09 · Modified: 2026-03-09
- Aliases: UBUNTU-CVE-2022-30633, DEBIAN-CVE-2022-30633, GO-2022-0523, BIT-golang-2022-30633, ALPINE-CVE-2022-30633
- Record: https://cvemate.com/vulnerability/CVE-2022-30633 · JSON: https://cvemate.com/vulnerability/CVE-2022-30633/json

## Description

```text
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.
```

## Signals

- CVSS: 7.5 high (v3.1, CVE.org) CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- EPSS: 2.19%, percentile 83.043%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- alpine go (Alpine Linux): ≥ 1.18.0, \< 1.18.4-r0
- debian golang-1.19 (Debian): \< 1.19~rc2-1
- ubuntu golang-1.13 (Ubuntu): \< 1.13.8-1ubuntu1~16.04.3+esm3 \| \< 1.13.8-1ubuntu1~18.04.4+esm1 \| \< 1.13.8-1ubuntu1.2 \| \< 1.13.8-1ubuntu2.22.04.2
- ubuntu golang-1.16 (Ubuntu): \< 1.16.2-0ubuntu1~18.04.2+esm1 \| \< 1.16.2-0ubuntu1~20.04.1
- ubuntu golang-1.18 (Ubuntu): \< 1.18.1-1ubuntu1~18.04.4 \| \< 1.18.1-1ubuntu1~20.04.2 \| \< 1.18.1-1ubuntu1.1
- go standard library encoding/xml: \< 1.17.12 \| ≥ 1.18.0-0, \< 1.18.4
- golang go: \< 1.17.12 \| ≥ 1.18.0, \< 1.18.4
- Go stdlib (Go): ≥ 1.18.0-0, \< 1.18.4

## References

- <https://go.dev/cl/417061>
- <https://go.googlesource.com/go/+/c4c1993fd2a5b26fe45c09592af6d3388a3b2e08>
- <https://go.dev/issue/53611>
- <https://groups.google.com/g/golang-announce/c/nqrv9fbR0zE>
- <https://pkg.go.dev/vuln/GO-2022-0523>
- <https://ubuntu.com/security/CVE-2022-30633>
- <https://github.com/golang/go/commit/2924ced71d16297320e8ff18829c2038e6ad8d9b>
- <https://ubuntu.com/security/notices/USN-6038-1>
- <https://ubuntu.com/security/notices/USN-6038-2>
- <https://www.cve.org/CVERecord?id=CVE-2022-30633>
- <https://security-tracker.debian.org/tracker/CVE-2022-30633>
- <https://nvd.nist.gov/vuln/detail/CVE-2022-30633>
- <https://security.alpinelinux.org/vuln/CVE-2022-30633>

---

Data as of 2026-12-05T07:37:11.018Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
