Vulnerabilities · 2022 · Golang
CVE-2022-30580
Golang Go vulnerability
Code injection in Cmd.Start in os/exec before Go 1.17.11 and Go 1.18.3 allows execution of any binaries in the working directory named either "..com" or "..exe" by calling Cmd.Run, Cmd.Start, Cmd.Output, or Cmd.CombinedOutput when Cmd.Path is unset.
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/403759 · Vendor Advisory
- go.googlesource.com/go/+/960ffa98ce73ef2c2060c84c7ac28d37a83f345e · Patch
- pkg.go.dev/vuln/GO-2022-0532 · Vendor Advisory
- go.dev/issue/52574 · Third Party Advisory
- groups.google.com/g/golang-announce/c/TzIC9-t8Ytg/m/IWz5T6x7AAAJ · Third Party Advisory
- nvd.nist.gov/vuln/detail/CVE-2022-30580
- cve.org/CVERecord?id=CVE-2022-30580
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.