What’s Vulnerable › Vulnerabilities

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

How to fix

Upgrade to a fixed version: Go 1.23.12, 1.24.6. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2025-47906 or the next vulnerability affects your stack