CVE-2025-47906
6.5medium
Unexpected paths returned from LookPath in os/exec
- Severity
- 6.5medium CVSS:3.1 by CISA-ADP
- Exploit likelihood
- 0.57% (higher than 48% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- Go
- Also known as
- GO-2025-3956BIT-GOLANG-2025-47906
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
| Product or package | Versions | Reported by |
|---|---|---|
| os/exec | before 1.23.12, from 1.24.0 before 1.24.6 | CVE List |
| stdlib (Go) | before 1.23.12, from 1.24.0 before 1.24.6 | Go Vulnerability Database |
| golang go | before 1.23.12, from 1.24.0 before 1.24.6 | NVD |
| golang (Bitnami) | before 1.23.12, from 1.24.0 before 1.24.6 | Bitnami Vulnerability Database |
All scores
| CISA-ADP | 6.5medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:L |
| Bitnami Vulnerability Database | medium rating |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
References
| https://go.dev/cl/691775 | fix, patch | |
| https://go.dev/issue/74466 | advisory, exploit, issue-tracking, report, third-party-advisory | |
| https://groups.google.com/g/golang-announce/c/x5MKroML2yM | discussion, mailing-list, release-notes, web | |
| https://pkg.go.dev/vuln/GO-2025-3956 | advisory, vendor-advisory | |
| http://www.openwall.com/lists/oss-security/2025/08/06/1 | issue-tracking, mailing-list, report | |
| https://nvd.nist.gov/vuln/detail/CVE-2025-47906 | web | |
Related
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2025-47906 changed 2025-11-04 | CVE Terms of Use |
| Go Vulnerability Database | GO-2025-3956 changed 2026-10-14 | CC-BY-4.0 |
| NVD | CVE-2025-47906 changed 2026-06-17 | Public domain |
| Bitnami Vulnerability Database | BIT-GOLANG-2025-47906 changed 2026-09-08 | Apache-2.0 |