Skip to content
7.8 High

CVE-2022-30580 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…

Description

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 and versions

Product Affected versions Fixed in
os/exec 1.18 1.18.0-0 → < 1.18.3 1.18.3
os/exec 1.17 earliest → < 1.17.11 1.17.11
The 3 CVEs of os/exec →
Track this CVE