CVE-2025-47906
os/exec: Unexpected paths returned from LookPath in os/exec
Overview
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.
Source: OX vulnerability database
Severity
6.5 · MEDIUM
CVSS 3.1 base score, scored by NVD.
- Attack vector
- Network
- Attack complexity
- Low
- Privileges required
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- Low
- Integrity
- None
- Availability
- Low
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:L
Affected packages · 2
Operating systems · 317 fixes
Azure Linux 1 release · 1 package
fixed 1
golang
| Release | Package | Fixed in |
|---|---|---|
| 3.0 | golang | 0:1.24.6-1.azl3 |
Oracle Linux 2 releases · 3 packages
fixed 3
delve
go-toolset
go-filesystem
| Release | Package | Fixed in |
|---|---|---|
| 8 | delve | 1.25.2-1.0.1.module+el8.10.0+90715+2d4d8dfd |
| 8 | go-toolset +7 | 1.25.3-2.module+el8.10.0+90715+2d4d8dfd |
| 9 | go-filesystem +3 | 3.6.0-12.el9_7 |
Photon OS 1 release · 1 package
fixed 1
go
| Release | Package | Fixed in |
|---|---|---|
| 5.0 | go | 1.24.13-1.ph5 |
Red Hat 5 releases · 10 packages
affected 4
eol 2
fixed 24
containers-common
compliance-openshift-compliance-must-gather-rhel8
etcd
buildah
go-toolset
golang
+4
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 7 | containers-common +5 | affected | — |
| 7 | compliance-openshift-compliance-must-gather-rhel8 +458 | eol | — |
| 8 | etcd +66 | affected | — |
| 8 (container-tools:rhel8) | buildah +18 | affected | — |
| 8 (go-toolset:rhel8) | go-toolset | 0:1.13.15-1.module+el8.2.0+7662+fa98b974 | RHSA-2025:23740 |
| 8 (go-toolset:rhel8) | golang +6 | 0:1.13.15-12.module+el8.2.0+23813+4482ebdd | RHSA-2025:23740 |
24 more rows
SUSE Linux Enterprise 4 releases · 6 packages
fixed 24
go1-23-openssl
go1-23
go1-24-openssl
go1-24
go1-25-openssl
go1-25
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 15.4 | go1-23-openssl +2 | 1.23.12-150000.1.18.1 | SUSE-SU-2025:02812-1 |
| 15.4 | go1-23 +2 | 1.23.12-150000.1.40.1 | SUSE-SU-2025:02759-1 |
| 15.4 | go1-24-openssl +2 | 1.24.6-150000.1.12.1 | SUSE-SU-2025:02837-1 |
| 15.4 | go1-24 +2 | 1.24.6-150000.1.32.1 | SUSE-SU-2025:02760-1 |
| 15.4 | go1-25-openssl +2 | 1.25.0-150000.1.3.1 | SUSE-SU-2025:03115-1 |
| 15.4 | go1-25 +2 | 1.25.0-150000.1.5.1 | SUSE-SU-2025:02924-1 |
18 more rows
alma 2 releases · 4 packages
fixed 4
delve
go-toolset
go-filesystem
git-lfs
| Release | Package | Fixed in |
|---|---|---|
| 8 (go-toolset:rhel8) | delve | 1.25.2-1.module_el8.10.0+4074+24330916 |
| 8 (go-toolset:rhel8) | go-toolset +7 | 1.25.3-2.module_el8.10.0+4074+24330916 |
| 9 | go-filesystem +3 | 3.6.0-12.el9_7 |
| 9 | git-lfs | 3.7.1-4.el9_8 |
alpine 4 releases · 1 package
fixed 4
go
| Release | Package | Fixed in |
|---|---|---|
| 3.22 | go | 1.24.6-r0 |
| 3.23 | go | 1.24.6-r0 |
| 3.24 | go | 1.24.6-r0 |
| edge | go | 1.24.6-r0 |
amazon linux 1 release · 1 package
fixed 1
golang
| Release | Package | Fixed in |
|---|---|---|
| 2023 | golang +6 | 1.24.6-1.amzn2023.0.1 |
chainguard 1 release · 82 packages
not affected 1
fixed 81
dex-k8s-authenticator
stakater-reloader-0-0-119
kube-vip-cloud-provider
stakater-reloader-0-0-128
dagdotdev
local-path-provisioner
+76
| Release | Package | Fixed in |
|---|---|---|
| dex-k8s-authenticator +2 | not affected | |
| stakater-reloader-0-0-119 | 0.0.119-r23 | |
| kube-vip-cloud-provider | 0.0.12-r4 | |
| stakater-reloader-0-0-128 | 0.0.128-r22 | |
| dagdotdev | 0.0.17-r2 | |
| local-path-provisioner | 0.0.32-r1 |
76 more rows
debian 4 releases · 4 packages
affected 3
fixed 1
golang-1-15
golang-1-19
golang-1-23
golang-1-24
| Release | Package | Fixed in |
|---|---|---|
| 11 | golang-1-15 | affected |
| 12 | golang-1-19 | affected |
| 13 | golang-1-23 +1 | affected |
| 14 | golang-1-24 | 1.24.7-1 |
echo 1 release · 2 packages
affected 1
fixed 1
golang-1-19
golang-1-24
| Release | Package | Fixed in |
|---|---|---|
| golang-1-19 | affected | |
| golang-1-24 | 1.24.6 |
minimos 1 release · 111 packages
fixed 111
pombump
falcoctl
ollama
cue
configmap-reload
external-secrets-operator
+105
| Release | Package | Fixed in |
|---|---|---|
| pombump | 0.0.14-r3 | |
| falcoctl | 0.11.2-r3 | |
| ollama | 0.11.4-r0 | |
| cue | 0.14.0-r1 | |
| configmap-reload | 0.15.0-r1 | |
| external-secrets-operator | 0.19.1-r0 |
105 more rows
openSUSE 1 release · 5 packages
fixed 5
govulncheck-vulndb
kubecolor
go1-23
go1-24
go1-25
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Tumbleweed | govulncheck-vulndb | 0.0.20250918T182144-1.1 | openSUSE-SU-2025:15566-1 |
| Tumbleweed | kubecolor | 0.5.2-1.1 | openSUSE-SU-2025:15586-1 |
| Tumbleweed | go1-23 +3 | 1.23.12-1.1 | openSUSE-SU-2025:15422-1 |
| Tumbleweed | go1-24 +3 | 1.24.6-1.1 | openSUSE-SU-2025:15423-1 |
| Tumbleweed | go1-25 +3 | 1.25rc3-1.1 | openSUSE-SU-2025:15420-1 |
rocky 2 releases · 3 packages
fixed 3
delve
go-toolset
go-filesystem
| Release | Package | Fixed in |
|---|---|---|
| 8 (go-toolset:rhel8) | delve | 1.25.2-1.module+el8.10.0+40035+ee0a7047 |
| 8 (go-toolset:rhel8) | go-toolset +7 | 1.25.3-2.module+el8.10.0+40037+cec252d2 |
| 9 | go-filesystem +3 | 3.6.0-12.el9_7 |
root.io debian 2 releases · 2 packages
affected 1
fixed 1
rootio-golang-1-19
golang-1-24
| Release | Package | Fixed in |
|---|---|---|
| 12 | rootio-golang-1-19 | affected |
| 13 | golang-1-24 +1 | 1.24.4-1.root.io.10 |
wolfi 1 release · 40 packages
fixed 40
kube-vip-cloud-provider
dagdotdev
local-path-provisioner
docker-credential-ecr-login
kserve-rest-proxy
mongodb-kubernetes-operator
+34
| Release | Package | Fixed in |
|---|---|---|
| kube-vip-cloud-provider | 0.0.12-r4 | |
| dagdotdev | 0.0.17-r2 | |
| local-path-provisioner | 0.0.32-r1 | |
| docker-credential-ecr-login | 0.10.1-r2 | |
| kserve-rest-proxy | 0.12.0-r10 | |
| mongodb-kubernetes-operator | 0.13.0-r3 |
34 more rows
References
- www.openwall.com http://www.openwall.com/lists/oss-security/2025/08/06/1
- access.redhat.com https://access.redhat.com/errata/RHSA-2025:22668
- access.redhat.com https://access.redhat.com/errata/RHSA-2026:19350
- access.redhat.com https://access.redhat.com/security/cve/CVE-2025-47906
- bugzilla.redhat.com https://bugzilla.redhat.com/2445356
- bugzilla.redhat.com https://bugzilla.redhat.com/2456336
- bugzilla.redhat.com https://bugzilla.redhat.com/2456338
- bugzilla.redhat.com https://bugzilla.redhat.com/2456339
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2396546
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2407258
Show all 23 references
- creativecommons.org https://creativecommons.org/licenses/by/4.0/
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2025-47906
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2025-58183
- errata.almalinux.org https://errata.almalinux.org/9/ALSA-2026-19350.html
- errata.rockylinux.org https://errata.rockylinux.org/RLSA-2025:22668
- go.dev https://go.dev/cl/691775
- go.dev https://go.dev/issue/74466
- groups.google.com https://groups.google.com/g/golang-announce/c/x5MKroML2yM
- linux.oracle.com https://linux.oracle.com/cve/CVE-2025-47906.html
- linux.oracle.com https://linux.oracle.com/errata/ELSA-2025-22668.html
- nvd.nist.gov https://nvd.nist.gov/vuln/detail/CVE-2025-47906
- pkg.go.dev https://pkg.go.dev/vuln/GO-2025-3956
- www.cve.org https://www.cve.org/CVERecord?id=CVE-2025-47906
OX Radar and Response Center
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.