Vulnerabilities · 2022 · Golang
CVE-2022-1962
Golang Go vulnerability
Uncontrolled recursion in the Parse functions in go/parser before Go 1.17.12 and Go 1.18.4 allow an attacker to cause a panic due to stack exhaustion via deeply nested types or declarations.
Affected products
Go. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Golang Go runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Set the orderSystems that can be reached from the internet come first, then the rest.
References
- go.dev/cl/417063 · Patch
- go.dev/issue/53616 · Exploit
- go.googlesource.com/go/+/695be961d57508da5a82217f7415200a11845879 · Patch
- groups.google.com/g/golang-announce/c/nqrv9fbR0zE · Vendor Advisory
- pkg.go.dev/vuln/GO-2022-0515 · Vendor Advisory
- nvd.nist.gov/vuln/detail/CVE-2022-1962
- cve.org/CVERecord?id=CVE-2022-1962
More vulnerabilities in Golang products
CVE-2026-42506CVE-2026-42502CVE-2026-27136CVE-2026-25681CVE-2026-25680CVE-2025-68121CVE-2025-68119CVE-2025-61732All 172
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.