ADVISORIES

Go Vulnerability Database

GO-2022-0532

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

Details

On Windows, executing Cmd.Run, Cmd.Start, Cmd.Output, or Cmd.CombinedOutput when Cmd.Path is unset will unintentionally trigger execution of any binaries in the working directory named either "..com" or "..exe".

Affected packages

EcosystemPackageAffected versions
Gostdlib
All versions before 1.17.11 (fixed in 1.17.11)
From 1.18.0-0 before 1.18.3 (fixed in 1.18.3)

References