VDB
Sign up
HIGH7.8

GO-2022-0532

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

Quick fix

GO-2022-0532 — stdlib: upgrade to the fixed version with the command below.

go get stdlib@v1.17.11

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".

Are you affected?

Enter the version of the package you're using.

Affected packages

Go/stdlib
Introduced in: 0Fixed in: 1.17.11
Fixgo get stdlib@v1.17.11

References