Medium severity · published Sep 18, 2025
CVE-2025-47906
Unexpected paths returned from LookPath in os/exec
6.5
CVSS
0.5%
EPSS
No
On KEV
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.
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:L
Attack vector
Network
Complexity
Low
Privileges
None
User interaction
None
Confidentiality
Low
Integrity
None
Availability
Low
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)0.5% · higher than 46% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
OS
os/exec · Go standard library
before 1.23.12; 1.24.0 before 1.24.6 · source: vendor
GO
GO · Golang
before 1.23.12; 1.24.0 before 1.24.6 · source: NVD
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2025-47906
CVE.org
https://www.cve.org/CVERecord?id=CVE-2025-47906
Patch
https://go.dev/cl/691775
Exploit
https://go.dev/issue/74466
Mailing List
https://groups.google.com/g/golang-announce/c/x5MKroML2yM
Vendor Advisory
https://pkg.go.dev/vuln/GO-2025-3956
Issue Tracking
http://www.openwall.com/lists/oss-security/2025/08/06/1
More from os/exec
7.8
CVE-2022-30580
Empty Cmd.Path can trigger unintended binary in os/exec on Windows
7.5
CVE-2022-41716
Unsanitized NUL in environment variables on Windows in syscall and os/exec
