Vulnerabilities · 2022 · Golang
CVE-2022-30631
Golang Go vulnerability
Uncontrolled recursion in Reader.Read in compress/gzip before Go 1.17.12 and Go 1.18.4 allows an attacker to cause a panic due to stack exhaustion via an archive containing a large number of concatenated 0-length compressed files.
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.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- go.dev/cl/417067 · Patch
- go.dev/issue/53168 · Vendor Advisory
- go.googlesource.com/go/+/b2b8872c876201eac2d0707276c6999ff3eb185e · Patch
- groups.google.com/g/golang-announce/c/nqrv9fbR0zE · Vendor Advisory
- pkg.go.dev/vuln/GO-2022-0524 · Vendor Advisory
- nvd.nist.gov/vuln/detail/CVE-2022-30631
- cve.org/CVERecord?id=CVE-2022-30631
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.