Vulnerability · Published Sep 18, 2025 · Assigned by Go
CVE-2025-47906Unexpected paths returned from LookPath in os/exec
Medium 6.5
In plain English
A medium-severity security flaw in os/exec from Go standard library. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.5% (higher than 46% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Severity (CVSS 3.1)6.5Medium
Exploit odds (30 days)0.5%top 53.8% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known
Official 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 & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| AlmaLinux:8 | delve | 1.25.2-1.module_el8.10.0+4074+24330916 | ALSA-2025:22668 |
| AlmaLinux:9 | git-lfs | 3.7.1-4.el9_8 | ALSA-2026:19350 |
| AlmaLinux:9 | go-filesystem | 3.6.0-12.el9_7 | ALSA-2025:22005 |
| AlmaLinux:9 | go-rpm-macros | 3.6.0-12.el9_7 | ALSA-2025:22005 |
| AlmaLinux:9 | go-rpm-templates | 3.6.0-12.el9_7 | ALSA-2025:22005 |
| AlmaLinux:9 | go-srpm-macros | 3.6.0-12.el9_7 | ALSA-2025:22005 |
| AlmaLinux:8 | go-toolset | 1.25.3-2.module_el8.10.0+4074+24330916 | ALSA-2025:22668 |
| AlmaLinux:8 | golang | 1.25.3-2.module_el8.10.0+4074+24330916 | ALSA-2025:22668 |
| AlmaLinux:8 | golang-bin | 1.25.3-2.module_el8.10.0+4074+24330916 | ALSA-2025:22668 |
| AlmaLinux:8 | golang-docs | 1.25.3-2.module_el8.10.0+4074+24330916 | ALSA-2025:22668 |
| AlmaLinux:8 | golang-misc | 1.25.3-2.module_el8.10.0+4074+24330916 | ALSA-2025:22668 |
| AlmaLinux:8 | golang-race | 1.25.3-2.module_el8.10.0+4074+24330916 | ALSA-2025:22668 |
| AlmaLinux:8 | golang-src | 1.25.3-2.module_el8.10.0+4074+24330916 | ALSA-2025:22668 |
| AlmaLinux:8 | golang-tests | 1.25.3-2.module_el8.10.0+4074+24330916 | ALSA-2025:22668 |
| Alpine:v3.22 | go | 1.24.6-r0 | ALPINE-CVE-2025-47906 |
| Alpine:v3.23 | go | 1.24.6-r0 | ALPINE-CVE-2025-47906 |
| Alpine:v3.24 | go | 1.24.6-r0 | ALPINE-CVE-2025-47906 |
| Debian:12 | golang-1.19 | no fix listed | DEBIAN-CVE-2025-47906 |
| Debian:13 | golang-1.24 | no fix listed | DEBIAN-CVE-2025-47906 |
| Go | stdlib | 1.23.12, 1.24.6 | GO-2025-3956 |
| Rocky Linux:8 | delve | 0:1.25.2-1.module+el8.10.0+40035+ee0a7047 | RLSA-2025:22668 |
| Rocky Linux:9 | go-rpm-macros | 0:3.6.0-12.el9_7 | RLSA-2025:22005 |
| Rocky Linux:8 | golang | 0:1.25.3-2.module+el8.10.0+40037+cec252d2 | RLSA-2025:22668 |
| Ubuntu:22.04:LTS | golang-1.17 | no fix listed | UBUNTU-CVE-2025-47906 |
| Ubuntu:22.04:LTS | golang-1.18 | no fix listed | UBUNTU-CVE-2025-47906 |
| Ubuntu:22.04:LTS | golang-1.20 | no fix listed | UBUNTU-CVE-2025-47906 |
| Ubuntu:22.04:LTS | golang-1.21 | no fix listed | UBUNTU-CVE-2025-47906 |
| Ubuntu:24.04:LTS | golang-1.21 | no fix listed | UBUNTU-CVE-2025-47906 |
| Ubuntu:22.04:LTS | golang-1.22 | no fix listed | UBUNTU-CVE-2025-47906 |
| Ubuntu:24.04:LTS | golang-1.22 | no fix listed | UBUNTU-CVE-2025-47906 |
| Ubuntu:22.04:LTS | golang-1.23 | no fix listed | UBUNTU-CVE-2025-47906 |
| Ubuntu:24.04:LTS | golang-1.23 | no fix listed | UBUNTU-CVE-2025-47906 |
| Ubuntu:25.10 | golang-1.23 | no fix listed | UBUNTU-CVE-2025-47906 |
| Ubuntu:26.04:LTS | golang-1.23 | no fix listed | UBUNTU-CVE-2025-47906 |
| Ubuntu:22.04:LTS | golang-1.24 | no fix listed | UBUNTU-CVE-2025-47906 |
| Ubuntu:24.04:LTS | golang-1.24 | no fix listed | UBUNTU-CVE-2025-47906 |
| Ubuntu:25.10 | golang-1.24 | no fix listed | UBUNTU-CVE-2025-47906 |
| Ubuntu:26.04:LTS | golang-1.24 | no fix listed | UBUNTU-CVE-2025-47906 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| Go standard library | os/exec | 0 – before 1.23.121.24.0 – before 1.24.6 |