Vulnerability in Golang Go
CVE-2025-47906
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.
Published · last modified .
CVSS v3 metric
CVSS v3 base score 6.5 (Medium). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:L.
EPSS exploit prediction
EPSS 0.005, 46.6th percentile (scored ); unchanged over 30 days. About EPSS.
Affected products
- Golang Go
- Go Standard Library Os/exec — versions 0, 1.24.0
Public exploits and proof-of-concept code
Also mentioned in 2 other repositories (fkie-cad/nvd-json-data-feeds, runwhen-contrib/helm-charts). These reference the CVE in a list, notes or a scanner and are not exploit code for it.
References
- go.dev/cl/691775 (Patch)
- go.dev/issue/74466 (Exploit, Third Party Advisory, Issue Tracking)
- groups.google.com/g/golang-announce/c/x5MKroML2yM (Mailing List, Release Notes)
- pkg.go.dev/vuln/GO-2025-3956 (Vendor Advisory)
- www.openwall.com/lists/oss-security/2025/08/06/1 (Issue Tracking, Mailing List)