CVE-2022-28131
Stack exhaustion from deeply nested XML 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 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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| stdlib | Go Modules | 1.18.4, 1.17.12 |
| encoding/xml | Go Modules | 1.18.4, 1.17.12 |
| golang-src | Amazon Linux | 1.19.3-2.amzn2023.0.2, 1.18.5-1.amzn2 |
| golang-race | Amazon Linux | 1.19.3-2.amzn2023.0.2, 1.18.5-1.amzn2 |
| golang-tests | Amazon Linux | 1.19.3-2.amzn2023.0.2, 1.18.5-1.amzn2 |
| go-srpm-macros | Amazon Linux | 3.0.15-23.amzn2.0.2 |
| golang-bin | Amazon Linux | 1.19.3-2.amzn2023.0.2, 1.18.5-1.amzn2 |
| golang-shared | Amazon Linux | 1.19.3-2.amzn2023.0.2, 1.18.5-1.amzn2 |
| golang-googlecode-sqlite-devel | Amazon Linux | 0-0.9.hg74691fb6f837.amzn2.0.4 |
| golang-github-cpuguy83-md2man | Amazon Linux | 2.0.2-22.amzn2023.0.2 |
| golang-misc | Amazon Linux | 1.19.3-2.amzn2023.0.2, 1.18.5-1.amzn2 |
| golang-docs | Amazon Linux | 1.19.3-2.amzn2023.0.2, 1.18.5-1.amzn2 |
17 more packages have a fixed version. See every fix in Lookup.
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Go standard library | encoding/xml | 0, 1.18.0-0 |
| amazon:2023 | golang-src | 0 |
| amazon:2023 | golang-race | 0 |
| amazon:2023 | golang-tests | 0 |
| amazon:2 | go-srpm-macros | 0 |
| amazon:2023 | golang-bin | 0 |
| amazon:2 | golang-shared | 0 |
| amazon:2 | golang-googlecode-sqlite-devel | 0 |
| amazon:2023 | golang-github-cpuguy83-md2man | 0 |
| amazon:2 | golang-tests | 0 |
| amazon:2 | golang-misc | 0 |
| amazon:2 | golang-docs | 0 |
| amazon:2 | go-rpm-templates | 0 |
| amazon:2 | golang-github-gorilla-mux-devel | 0 |
| amazon:2023 | golang-docs | 0 |
| amazon:2 | go-rpm-macros | 0 |
| Go standard library | encoding/xml | 0, 1.18.0-0 |
| amazon:2 | golang-bin | 0 |
| amazon:2023 | golist | 0 |
| amazon:2 | golang-github-godbus-dbus-devel | 0 |
…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 17, 2026 CVE Updated
- Jun 28, 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-28131
vulnetix vdb fixes CVE-2022-28131
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-28131/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart