VDB
KO

GO-2025-3956

Unexpected paths returned from LookPath in os/exec

Quick fix

GO-2025-3956 — stdlib: upgrade to the fixed version with the command below.

go get stdlib@v1.23.12

Details

If the PATH environment variable contains paths which are executables (rather than just directories), passing certain strings to LookPath ("", ".", and ".."), can result in the binaries listed in the PATH being unexpectedly returned.

Are you affected?

Enter the version of the package you're using.

Affected packages

Go / stdlib
Introduced in: 0 Fixed in: 1.23.12
Fix go get stdlib@v1.23.12

References