Skip to content
CVE PROGRAM SOURCE RECORD7.8 High

CVE-2022-30580

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

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

Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.

Go standard library os/exec

Default version status: unaffected

  • 0 to < 1.17.11affected
  • 1.18.0-0 to < 1.18.3affected

References