CVE-2022-30580

published 9 Aug 2022 · updated 16 Nov 2026

Empty Cmd.Path can trigger unintended binary in os/exec on Windows

7.8HighCVSS 7.8EPSS 1%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 1%. Fixed in 1.17.11 and 1.18.3.

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

Vendors, products and packages with version ranges

VendorProductVersionsFixed
Go standard library<1.17.11, >=1.18.0-0 <1.18.31.17.11, 1.18.3

Timeline

Every event on this vulnerability

Embed

A live severity badge for an advisory, README or ticket

CVE-2022-30580 severity on Zeptric[![CVE-2022-30580](https://zeptric.io/badge/cve/CVE-2022-30580.svg)](https://zeptric.io/cve/CVE-2022-30580)