What’s Vulnerable › Vulnerabilities
CVE-2025-47906: Unexpected paths returned from LookPath in os/exec
- Severity: medium (CVSS 6.5 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.5% probability of exploitation in the next 30 days
- Public exploit or detection template: yes
- Published: 2025-09-18 · updated 2026-06-17
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
- Go: before 1.23.12; from 1.24.0 before 1.24.6 — fixed in 1.23.12, 1.24.6
How to fix
Upgrade to a fixed version: Go 1.23.12, 1.24.6. Check the vendor advisory for mitigations.
References
- https://go.dev/cl/691775
- https://go.dev/issue/74466
- https://groups.google.com/g/golang-announce/c/x5MKroML2yM
- https://pkg.go.dev/vuln/GO-2025-3956
- http://www.openwall.com/lists/oss-security/2025/08/06/1
Get alerted when CVE-2025-47906 or the next vulnerability affects your stack