High severity · published Aug 9, 2022
CVE-2022-30635
Stack exhaustion when decoding certain messages in encoding/gob
7.5
CVSS
1.9%
EPSS
No
On KEV
Description
Uncontrolled recursion in Decoder.Decode in encoding/gob before Go 1.17.12 and Go 1.18.4 allows an attacker to cause a panic due to stack exhaustion via a message which contains deeply nested structures.
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)1.9% · higher than 80% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
EN
encoding/gob · Go standard library
before 1.17.12; 1.18.0-0 before 1.18.4 · source: vendor
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-30635
CVE.org
https://www.cve.org/CVERecord?id=CVE-2022-30635
Patch
https://go.dev/cl/417064
Issue Tracking
https://go.dev/issue/53615
Mailing List
https://go.googlesource.com/go/+/6fa37e98ea4382bf881428ee0c150ce591500eb7
Mailing List
https://groups.google.com/g/golang-announce/c/nqrv9fbR0zE
Vendor Advisory
https://pkg.go.dev/vuln/GO-2022-0526
More from encoding/gob
7.5
CVE-2024-34156
Stack exhaustion in Decoder.Decode in encoding/gob
