High severity · published Aug 9, 2022
CVE-2022-28131
Stack exhaustion from deeply nested XML documents in encoding/xml
7.5
CVSS
2.6%
EPSS
No
On KEV
Description
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.
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Attack vector
Network
Complexity
Low
Privileges
None
User interaction
None
Confidentiality
None
Integrity
None
Availability
High
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)2.6% · higher than 85% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
EN
encoding/xml · Go standard library
before 1.17.12; 1.18.0-0 before 1.18.4 · source: vendor
CI
Cloud Insights Telegraf · Netapp
All versions, or not specified · source: NVD
FE
Fedora · Fedoraproject
35 · source: NVD
GO
GO · Golang
before 1.17.12; 1.18.0 before 1.18.4 · source: NVD
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2022-28131
CVE.org
https://www.cve.org/CVERecord?id=CVE-2022-28131
go.dev
https://go.dev/cl/417062
go.dev
https://go.dev/issue/53614
go.googlesource.com
https://go.googlesource.com/go/+/08c46ed43d80bbb67cb904944ea3417989be4af3
groups.google.com
https://groups.google.com/g/golang-announce/c/nqrv9fbR0zE
pkg.go.dev
https://pkg.go.dev/vuln/GO-2022-0521
More from encoding/xml
7.5
CVE-2026-56859
Add recursion depth guard during decode in encoding/xml
7.5
CVE-2022-30633
Stack exhaustion when unmarshaling certain documents in encoding/xml
