VDB

CVE-2022-30633

CVE-2022-30633 PUBLISHED CVSS 7.5 HIGH

Stack exhaustion when unmarshaling certain documents in encoding/xml

Reported by go · Published August 9, 2022

encoding/xml is fixed in 1.18.4 and 1.17.12 (Go Modules)

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.

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
encoding/xmlGo Modules1.18.4, 1.17.12
stdlibGo Modules1.18.4, 1.17.12
golang-srcAmazon Linux1.19.3-2.amzn2023.0.2, 1.18.5-1.amzn2
golistAmazon Linux0.10.1-11.amzn2023.0.3, 0.10.1-10.amzn2.0.1
golang-sharedAmazon Linux1.19.3-2.amzn2023.0.2, 1.18.5-1.amzn2
golang-miscAmazon Linux1.19.3-2.amzn2023.0.2, 1.18.5-1.amzn2
golang-binAmazon Linux1.19.3-2.amzn2023.0.2, 1.18.5-1.amzn2
golang-github-gorilla-mux-develAmazon Linux0-0.16.git136d54f.amzn2.0.2
golang-github-syndtr-gocapability-develAmazon Linux0-0.5.git3454319.amzn2.0.3
golang-testsAmazon Linux1.19.3-2.amzn2023.0.2, 1.18.5-1.amzn2
golang-github-godbus-dbus-develAmazon Linux0-0.1.gitcb98efb.amzn2.0.2
golang-github-gorilla-context-develAmazon Linux0-0.24.gitb06ed15.amzn2.0.4

17 more packages have a fixed version. See every fix in Lookup.

Risk scores

CVSS 3.1
7.5
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Affected products

VendorProductVersions
Go standard libraryencoding/xml0, 1.18.0-0
amazon:2golang-src0
amazon:2023golist0
amazon:2golang-shared0
amazon:2023golang-misc0
amazon:2023golang-bin0
amazon:2golang-github-gorilla-mux-devel0
amazon:2golang-github-syndtr-gocapability-devel0
amazon:2023golang-tests0
amazon:2golang-github-godbus-dbus-devel0
amazon:2golang-github-gorilla-context-devel0
amazon:2023golang-github-cpuguy83-md2man-devel0
amazon:2023golang-src0
amazon:2023compat-golang-github-cpuguy83-md2man-2-devel0
amazon:2023golang-race0
amazon:2golang-bin0
amazon:2golang-race0
amazon:2golang-googlecode-sqlite-devel0
amazon:2golang-misc0
amazon:2golang-googlecode-net-devel0

…and 15 more

Timeline

  • Jul 20, 2022 CVE Published
  • Aug 10, 2022 EPSS Score (30 in total, the first dated here)
  • Mar 21, 2026 Security Advisory (84 in total, the first dated here)
  • Jun 25, 2026 Coalition ESS Score
  • Jul 2, 2026 Distribution Patch (81 in total, the first dated here)

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2022-30633
vulnetix vdb fixes CVE-2022-30633

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2022-30633/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

References

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›