CVE-2025-47906: Go standard library os/exec · Misinterpretation of Input
Affects Go standard library os/execSource CVE Database V5
Not known to be exploited · CVSS 6.5 Medium.
Data as of 25 Oct 2026, 19:02 UTC
- EPSS
- 0.5% chance of exploitation in 30 days – higher than 45% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:LExploitation evidence
Disclosed: evidence found.
CVE published 18 Sep 2025
Detectable: no evidence on record.
No public nuclei template indexed
Weaponised: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 2026-10-25.
What to do
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| Go standard library os/exec | Affected
| Fixed in– |
AI-suggested
European organizations should immediately audit their PATH environment variables to ensure they contain only directories and not executable files. Developers and system administrators should update Go to versions beyond 1.24.0 once patches are released. Until patches are available, avoid passing empty strings or dot-related inputs to LookPath in custom code. Implement strict environment sanitation in CI/CD pipelines and container environments to prevent PATH pollution. Use container security best practices to limit executable paths and employ runtime monitoring to detect unexpected binary executions. Additionally, conduct code reviews focusing on the use of os/exec and LookPath to identify and remediate unsafe usage patterns. Employ application whitelisting and integrity monitoring to detect unauthorized binaries. Finally, maintain awareness of updates from the Go project regarding patches or workarounds.
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.