CVE-2022-30580Golang Go
High 7.8
Follow: this CVE · Golang · Golang Go We alert you by email or Slack (account required).
- Priority
- 47
- CVSS 3.1
- 7.8
- EPSS
- 0.7% probability of exploitation in 30 days · percentile 51
- Auth required
- Yes
- Published
- Aug 10, 2022
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-94
- SSVC (CISA)
- Exploitation: none · Automatable: no · Technical impact: total
- Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
What happens
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.
What to do
- Apply the vendor's security update for Go.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| Go | stdlib |
< 1.17.11 |
1.17.11 |
go get stdlib@v1.17.11 |
| Go | stdlib |
≥ 1.18.0-0 < 1.18.3 |
1.18.3 |
go get stdlib@v1.18.3 |
Per OSV / GitHub Advisories (GO-2022-0532). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| golang | go | < 1.17.11 |
| golang | go | ≥ 1.18.0 < 1.18.3 |
Official sources
References
Links published by the sources. Open them with care.
- go.dev Vendor Advisory
- go.dev Issue Tracking Third Party Advisory
- go.googlesource.com Mailing List Patch Vendor Advisory
- groups.google.com Mailing List Third Party Advisory
- pkg.go.dev Vendor Advisory