7.5high
CVE-2022-28131
Stack exhaustion from deeply nested XML documents in encoding/xml
Also known as GO-2022-0521
Published 4 y ago · modified 4 mo ago · JSON
CVSS
7.5
v3.1 · NVD
CISA KEV
No
not known exploited
EPSS
2.6%
percentile 85%
Public exploits
0
none known
Summary
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.
Exploit prediction (EPSS)
2.56% probability of exploitation in the next 30 days, higher than 85% of all scored CVEs.
CVSS scores
| Assigned by | Version | Score | Vector |
|---|---|---|---|
| NVD | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
Affected packages
| Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|
| go | stdlib | <1.17.12 >=1.18.0-0, <1.18.4 | 1.17.12 1.18.4 |
Affected products
- Go standard library encoding/xml
Classification
- Weakness
- CWE-674 Uncontrolled Recursion
References
- go.dev /cl/417062 · x_transferred
- go.googlesource.com /go/+/08c46ed43d80bbb67cb904944ea3417989be4af3 · x_transferred
- go.dev /issue/53614 · x_transferred
- groups.google.com /g/golang-announce/c/nqrv9fbR0zE · x_transferred
- pkg.go.dev /vuln/GO-2022-0521 · x_transferred
Sources
- CVE List: CVE-2022-28131
- NVD: CVE-2022-28131
- OSV: GO-2022-0521
vulnwire keeps one entry per vulnerability: the CVE id wins, then GHSA; records that alias each other are merged. Machine-readable: JSON.