CVE-2025-47906
JSON

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 packageVersionsReported by
os/execbefore 1.23.12, from 1.24.0 before 1.24.6CVE List
stdlib (Go)before 1.23.12, from 1.24.0 before 1.24.6Go Vulnerability Database
golang gobefore 1.23.12, from 1.24.0 before 1.24.6NVD
golang (Bitnami)before 1.23.12, from 1.24.0 before 1.24.6Bitnami Vulnerability Database

All scores

CISA-ADP6.5medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:L
Bitnami Vulnerability Databasemedium rating

Classification

CWE-115

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

References

https://go.dev/cl/691775fix, patch
https://go.dev/issue/74466advisory, exploit, issue-tracking, report, third-party-advisory
https://groups.google.com/g/golang-announce/c/x5MKroML2yMdiscussion, mailing-list, release-notes, web
https://pkg.go.dev/vuln/GO-2025-3956advisory, vendor-advisory
http://www.openwall.com/lists/oss-security/2025/08/06/1issue-tracking, mailing-list, report
https://nvd.nist.gov/vuln/detail/CVE-2025-47906web

Related

Sources

SourceRecordLicence
CVE ListCVE-2025-47906 changed 2025-11-04CVE Terms of Use
Go Vulnerability DatabaseGO-2025-3956 changed 2026-10-14CC-BY-4.0
NVDCVE-2025-47906 changed 2026-06-17Public domain
Bitnami Vulnerability DatabaseBIT-GOLANG-2025-47906 changed 2026-09-08Apache-2.0