{"id":"CVE-2025-47906","published":"2025-09-18T18:41:11Z","modified":"2025-11-04T21:10:54Z","title":"Unexpected paths returned from LookPath in os/exec","vendor":"Go standard library","product":"os/exec","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.5,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:L","provenance":"source","from":"CISA ADP Vulnrichment"},"epss":{"score":0.00572,"percentile":0.4822,"provenance":"source"},"cwes":[],"references":[{"url":"https://go.dev/cl/691775","tags":[]},{"url":"https://go.dev/issue/74466","tags":[]},{"url":"https://groups.google.com/g/golang-announce/c/x5MKroML2yM","tags":[]},{"url":"https://pkg.go.dev/vuln/GO-2025-3956","tags":[]},{"url":"http://www.openwall.com/lists/oss-security/2025/08/06/1","tags":[]}],"priority":{"score":14.2,"factors":[{"name":"EPSS percentile","points":9.64},{"name":"CVSS severity","points":4.55}]},"vendorSlug":"go-standard-library","affectedVersions":[{"vendor":"Go standard library","product":"os/exec","versions":["< 1.23.12",">= 1.24.0, < 1.24.6"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2025-09-18T20:42:17.936162Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Go","package":"stdlib","vulnerableRanges":["<1.23.12",">=1.24.0, <1.24.6"],"patched":["1.23.12","1.24.6"],"from":["GO-2025-3956"],"provenance":"source"}],"summary":{"text":"The flaw is in the os/exec package of the Go standard library, where LookPath can return unexpected paths when the PATH environment variable contains executable files rather than only directories and certain inputs (\"\", \".\", or \"..\") are passed to it. An attacker with network access, requiring no authentication or user interaction, could exploit this by manipulating the conditions that lead LookPath to return binaries listed in PATH, which may cause unintended executables to be run.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:40:22Z"},"euvd":{"id":"EUVD-2025-30195","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2025-0913","published":"2025-06-11","fixed":"1.24.4","kev":false,"link":{"from":"CVE-2025-0913","to":"CVE-2025-47906","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Go:stdlib","fromFixed":"1.23.10","toFixed":"1.23.12","daysApart":99}]}},{"cve":"CVE-2025-22874","published":"2025-06-11","fixed":"1.24.4","kev":false},{"cve":"CVE-2025-4673","published":"2025-06-11","fixed":"1.24.4","kev":false},{"cve":"CVE-2025-47906","published":"2025-09-18","fixed":"1.24.6","kev":false},{"cve":"CVE-2025-47907","published":"2025-08-07","fixed":"1.24.6","kev":false},{"cve":"CVE-2025-47910","published":"2025-09-22","fixed":"1.25.1","kev":false},{"cve":"CVE-2025-47912","published":"2025-10-29","fixed":"1.25.2","kev":false}],"package":"Go:stdlib"}}