Skip to content
CVE PROGRAM SOURCE RECORD6.5 Medium

CVE-2025-47906

Unexpected paths returned from LookPath in os/exec

Description

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.

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.23.12affected
  • 1.24.0 to < 1.24.6affected

References