CVE-2025-47906
MEDIUM6.5EPSS 0.03%Unexpected paths returned from LookPath in os/exec
Published: 9/18/2025Modified: 4/28/2026
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 packages (5)
- Bitnami/golangfrom 0, < 1.23.12, >= 1.24.0, < 1.24.6
- Debian/golang-1.15from 0
- Debian/golang-1.19from 0
- Debian/golang-1.24from 0
- Go/stdlibfrom 0, < 1.23.12, >= 1.24.0, < 1.24.6
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 3.1 | MEDIUM6.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:L |
References (7)
- ADVISORYhttps://security-tracker.debian.org/tracker/CVE-2025-47906
- PATCHhttps://go.dev/cl/691775
- REPORThttps://go.dev/issue/74466
- WEBhttps://groups.google.com/g/golang-announce/c/x5MKroML2yM
- WEBhttps://nvd.nist.gov/vuln/detail/CVE-2025-47906
- WEBhttps://pkg.go.dev/vuln/GO-2025-3956
- WEBhttp://www.openwall.com/lists/oss-security/2025/08/06/1