{"id":"CVE-2022-30633","published":"2022-08-09T20:16:19Z","modified":"2026-03-09T16:53:13Z","title":"Stack exhaustion when unmarshaling certain documents in encoding/xml","vendor":"Go standard library","product":"encoding/xml","tier":"tail","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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.5,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","provenance":"source","from":"CISA ADP Vulnrichment"},"epss":{"score":0.02208,"percentile":0.83014,"provenance":"source"},"cwes":[{"id":"CWE-674","name":"Uncontrolled Recursion"}],"references":[{"url":"https://go.dev/cl/417061","tags":[]},{"url":"https://go.googlesource.com/go/+/c4c1993fd2a5b26fe45c09592af6d3388a3b2e08","tags":[]},{"url":"https://go.dev/issue/53611","tags":[]},{"url":"https://groups.google.com/g/golang-announce/c/nqrv9fbR0zE","tags":[]},{"url":"https://pkg.go.dev/vuln/GO-2022-0523","tags":[]}],"priority":{"score":21.9,"factors":[{"name":"EPSS percentile","points":16.6},{"name":"CVSS severity","points":5.25}]},"vendorSlug":"go-standard-library","affectedVersions":[{"vendor":"Go standard library","product":"encoding/xml","versions":["< 1.17.12",">= 1.18.0-0, < 1.18.4"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2026-03-09T16:53:05.801155Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Go","package":"stdlib","vulnerableRanges":["<1.17.12",">=1.18.0-0, <1.18.4"],"patched":["1.17.12","1.18.4"],"from":["GO-2022-0523"],"provenance":"source"}],"summary":{"text":"The encoding/xml package in the Go standard library contains an uncontrolled recursion flaw in its Unmarshal function, present in versions before Go 1.17.12 and Go 1.18.4. An attacker can crash a program by supplying an XML document that is unmarshalled into a Go struct containing a nested field with the 'any' field tag, causing a panic from stack exhaustion; this requires no privileges, no user interaction, and is reachable over the network.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T07:01:26Z"},"euvd":{"id":"EUVD-2022-52464","exploited":false,"provenance":"source"}}