CVE-2025-47906 json
Unexpected paths returned from LookPath in os/exec
published 2025-09-18 13 mo ago modified 2026-10-14 26 d ago also BIT-golang-2025-47906 , EUVD-2025-30195 , GO-2025-3956
- cvss
- 6.5
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.5%
- EPSS 0.5% chance of exploitation in 30 days, percentile 46%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- bitnami golang 1.23.12, 1.24.6
- go stdlib 1.23.12, 1.24.6
- Go standard library os/exec 1.23.12, 1.24.6
- delve RHEL 8 1.25.2-1.module+el8.10.0+23746+9db33b5e
- golang RHEL 8 1.25.3-2.module+el8.10.0+23746+9db33b5e
- go-toolset RHEL 8 1.25.3-2.module+el8.10.0+23746+9db33b5e
- golang-bin RHEL 8 1.25.3-2.module+el8.10.0+23746+9db33b5e
- golang-src RHEL 8 1.25.3-2.module+el8.10.0+23746+9db33b5e
- golang-misc RHEL 8 1.25.3-2.module+el8.10.0+23746+9db33b5e
- golang-race RHEL 8 1.25.3-2.module+el8.10.0+23746+9db33b5e
- golang-tests RHEL 8 1.25.3-2.module+el8.10.0+23746+9db33b5e
red hat advisories RHSA-2025:23737RHSA-2025:22668RHSA-2026:19350RHSA-2025:23851RHSA-2025:23834RHSA-2025:23833
- go1.25-openssl SLES for SAP 15 SP6, SLES 15 SP6-LTSS, SLE Module for Development Tools 15 SP7 +1 more 1.25.6-150600.13.9.1
- go1.25-openssl SLES for SAP 15 SP5, SLES for SAP 15 SP4, SLES 15 SP5-LTSS +5 more 1.25.6-150000.1.9.1
- govulncheck-vulndb SLE Module for Package Hub 15 SP6, openSUSE Leap 15.6 0.0.20250918T182144-150000.1.107.1
- go1.25-openssl SLE Module for Development Tools 15 SP7, SLE Module for Development Tools 15 SP6, openSUSE Leap 15.6 1.25.0-150600.13.3.1
- go1.23-openssl SLE Module for Development Tools 15 SP7, SLE Module for Development Tools 15 SP6, openSUSE Leap 15.6 1.23.12-150600.13.9.1
- go1.24-openssl SLE Module for Development Tools 15 SP7, SLE Module for Development Tools 15 SP6, openSUSE Leap 15.6 1.24.6-150600.13.9.1
- go1.25-openssl SLES for SAP 15 SP5, SLES for SAP 15 SP4, SLES for SAP 15 SP3 +9 more 1.25.0-150000.1.3.1
- go1.25 SLES for SAP 15 SP5, SLES for SAP 15 SP4, SLES for SAP 15 SP3 +12 more 1.25.0-150000.1.5.1
suse advisories SUSE-SU-2026:0298-1SUSE-SU-2026:0297-1SUSE-SU-2025:03289-1SUSE-SU-2025:03161-1SUSE-SU-2025:03159-1SUSE-SU-2025:03158-1
- govulncheck-vulndb openSUSE Leap 16.0 0.0.20260723T184607-160000.1.1
- kubecolor openSUSE Tumbleweed 0.5.2-1.1
- govulncheck-vulndb openSUSE Tumbleweed 0.0.20250918T182144-1.1
- go1.23 openSUSE Tumbleweed 1.23.12-1.1
- go1.24 openSUSE Tumbleweed 1.24.6-1.1
- go1.25 openSUSE Tumbleweed 1.25rc3-1.1
opensuse advisories openSUSE-SU-2026:21483-1openSUSE-SU-2025:15586-1openSUSE-SU-2025:15566-1openSUSE-SU-2025:15422-1openSUSE-SU-2025:15423-1openSUSE-SU-2025:15420-1
- git-lfs AlmaLinux 9 3.7.1-4.el9_8
- delve AlmaLinux 8 1.25.2-1.module_el8.10.0+4074+24330916
- golang AlmaLinux 8 1.25.3-2.module_el8.10.0+4074+24330916
- go-toolset AlmaLinux 8 1.25.3-2.module_el8.10.0+4074+24330916
- golang-bin AlmaLinux 8 1.25.3-2.module_el8.10.0+4074+24330916
- golang-src AlmaLinux 8 1.25.3-2.module_el8.10.0+4074+24330916
- golang-misc AlmaLinux 8 1.25.3-2.module_el8.10.0+4074+24330916
- golang-race AlmaLinux 8 1.25.3-2.module_el8.10.0+4074+24330916
almalinux advisories ALSA-2026:19350ALSA-2025:22668ALSA-2025:22005
- delve Rocky Linux 8 1.25.2-1.module+el8.10.0+40035+ee0a7047
- golang Rocky Linux 8 1.25.3-2.module+el8.10.0+40037+cec252d2
- go-rpm-macros Rocky Linux 9 3.6.0-12.el9_7
rocky linux advisories RLSA-2025:22668RLSA-2025:22005
- go Alpine 3.24, Alpine 3.23, Alpine 3.22 1.24.6-r0
alpine advisories ALPINE-CVE-2025-47906
Alpine secdb © Alpine Linux, from https://secdb.alpinelinux.org via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- golang CBL-Mariner 2.0 1.22.7-5
- golang Azure Linux 3.0 1.24.6-1
- golang CBL-Mariner 2.0 1.18.8-10
azure linux advisories AZL-66128AZL-66131AZL-67512
Azure Linux vulnerability data, Copyright (c) Microsoft Corporation, from https://github.com/microsoft/AzureLinuxVulnerabilityData via OSV, under the MIT licence; changed: normalised to fixed package versions per release. MIT
- go.dev/cl/691775 patch
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2025-47906 updated cvss 6.5
os/exec: Unexpected paths returned from LookPath in os/exec
-
Red Hat Assisted Installer for Red Hat OpenShift Container Platform 2 rhai/assisted-installer-rhel9, rhai/assisted-installer-agent-rhel9, rhai/assisted-installer-controller-rhel9 Red Hat Builds for Red Hat OpenShift openshift-builds/openshift-builds-waiters-rhel9, openshift-builds/openshift-builds-webhook-rhel9, openshift-builds/openshift-builds-rhel9-operator, openshift-builds/openshift-builds-operator-bundle, openshift-builds/openshift-builds-controller-rhel9, openshift-builds/openshift-builds-git-cloner-rhel9, +4 more Red Hat cert-manager Operator for Red Hat OpenShift cert-manager/cert-manager-operator-rhel9, cert-manager/jetstack-cert-manager-rhel9, cert-manager/cert-manager-istio-csr-rhel9, cert-manager/jetstack-cert-manager-acmesolver-rhel9 Red Hat Confidential Compute Attestation build-of-trustee/trustee-rhel9-operator, confidential-compute-attestation-tech-preview/trustee-rhel9-operator Red Hat Cryostat 4 cryostat/cryostat-storage-rhel9, cryostat/cryostat-rhel9-operator, cryostat/cryostat-ose-oauth-proxy-rhel9, cryostat/cryostat-grafana-dashboard-rhel9 Red Hat Custom Metric Autoscaler operator for Red Hat Openshift custom-metrics-autoscaler/custom-metrics-autoscaler-rhel9, custom-metrics-autoscaler/custom-metrics-autoscaler-adapter-rhel9, custom-metrics-autoscaler/custom-metrics-autoscaler-rhel9-operator, custom-metrics-autoscaler/custom-metrics-autoscaler-admission-webhooks-rhel9affected: workaround, no fix available “Fix deferred”
+34 more productsfewer
Red Hat Deployment Validation Operator dvo/deployment-validation-rhel8-operator Red Hat external secrets operator for Red Hat OpenShift - Tech Preview external-secrets-operator/external-secrets-rhel9 Red Hat Fence Agents Remediation Operator workload-availability/fence-agents-remediation-rhel8-operator, workload-availability/fence-agents-remediation-operator-bundle Red Hat File Integrity Operator compliance/openshift-compliance-operator-bundle, compliance/openshift-file-integrity-rhel8-operator, compliance/openshift-file-integrity-operator-bundle Red Hat Gatekeeper 3 gatekeeper/gatekeeper-rhel9, gatekeeper/gatekeeper-rhel9-operator Red Hat Kube Descheduler Operator kube-descheduler-operator/descheduler-rhel9, kube-descheduler-operator/kube-descheduler-rhel9-operator Red Hat Logging Subsystem for Red Hat OpenShift openshift-logging/vector-rhel9, openshift-logging/eventrouter-rhel8, openshift-logging/eventrouter-rhel9, openshift-logging/logging-loki-rhel9, openshift-logging/loki-rhel9-operator, openshift-logging/opa-openshift-rhel9, +5 more Red Hat Logical Volume Manager Storage lvms4/topolvm-rhel8, lvms4/topolvm-rhel9, lvms4/lvms-rhel9-operator, lvms4/lvms-operator-bundle, lvms4/lvms-must-gather-rhel8, lvms4/lvms-must-gather-rhel9 Red Hat Machine Deletion Remediation Operator workload-availability/machine-deletion-remediation-rhel8-operator, workload-availability/machine-deletion-remediation-operator-bundle Red Hat Migration Toolkit for Applications 7 mta/mta-cli-rhel9, mta/mta-hub-rhel9, mta/mta-analyzer-addon-rhel9, mta/mta-discovery-addon-rhel9, mta/mta-java-external-provider-rhel9, mta/mta-dotnet-external-provider-rhel8, +2 more Red Hat Migration Toolkit for Applications 8 mta/mta-cli-rhel9, mta/mta-hub-rhel9, mta/mta-windup-shim-rhel9, mta-analyzer-rpc-container, mta/mta-analyzer-lsp-rhel9, mta-platform-addon-container, +8 more Red Hat Migration Toolkit for Containers rhmtc/openshift-migration-registry-rhel8, rhmtc/openshift-migration-controller-rhel8, rhmtc/openshift-migration-must-gather-rhel8, rhmtc/openshift-migration-rsync-transfer-rhel8, rhmtc/openshift-migration-velero-plugin-for-mtc-rhel8 Red Hat Migration Toolkit for Virtualization migration-toolkit-virtualization/mtv-api-rhel9, migration-toolkit-virtualization/mtv-rhel8-operator, migration-toolkit-virtualization/mtv-rhel9-operator, migration-toolkit-virtualization/mtv-virt-v2v-rhel9, migration-toolkit-virtualization/mtv-controller-rhel9, migration-toolkit-virtualization/mtv-validation-rhel9, +7 more Red Hat mirror registry for Red Hat OpenShift openshift/mirror-registry-rhel8 Red Hat Multiarch Tuning Operator multiarch-tuning/multiarch-tuning-rhel9-operator Red Hat Multicluster Engine for Kubernetes multicluster-engine/hive-rhel8, multicluster-engine/hive-rhel9, multicluster-engine/work-rhel8, multicluster-engine/work-rhel9, multicluster-engine/discovery-rhel8, multicluster-engine/discovery-rhel9, +61 more Red Hat Multicluster Global Hub multicluster-globalhub/multicluster-globalhub-agent-rhel9, multicluster-globalhub/multicluster-globalhub-grafana-rhel9, multicluster-globalhub/multicluster-globalhub-manager-rhel9, multicluster-globalhub/multicluster-globalhub-rhel9-operator, multicluster-globalhub/multicluster-globalhub-operator-bundle, multicluster-globalhub/multicluster-globalhub-postgres-exporter-rhel9 Red Hat NBDE Tang Server nbde-tang-server/nbde-tang-server-rhel9-operator Red Hat Network Observability Operator network-observability/network-observability-cli-rhel9, network-observability/network-observability-rhel9-operator, network-observability/network-observability-ebpf-agent-rhel9, network-observability/network-observability-flowlogs-pipeline-rhel9 Red Hat Node HealthCheck Operator workload-availability/node-healthcheck-rhel8-operator, workload-availability/node-healthcheck-operator-bundle Red Hat Node Maintenance Operator workload-availability/node-maintenance-rhel8-operator, workload-availability/node-maintenance-operator-bundle, container-native-virtualization/node-maintenance-operator Red Hat OpenShift API for Data Protection oadp/oadp-velero-rhel9, oadp/oadp-rhel9-operator, oadp/oadp-mustgather-rhel9, oadp/oadp-velero-plugin-rhel9, oadp/oadp-velero-plugin-for-aws-rhel9, oadp/oadp-velero-plugin-for-csi-rhel9, +5 more Red Hat OpenShift Developer Tools and Services helm, openshift4/ose-jenkins, ocp-tools-4/jenkins-rhel8, ocp-tools-4/jenkins-rhel9, ocp-tools-4/jenkins-agent-base-rhel8, ocp-tools-4/jenkins-agent-base-rhel9 Red Hat OpenShift Lightspeed openshift-lightspeed-tech-preview/lightspeed-operator-bundle Red Hat OpenShift Pipelines openshift-pipelines-client Red Hat OpenShift Run Once Duration Override Operator run-once-duration-override-operator/run-once-duration-override-rhel9, run-once-duration-override-operator/run-once-duration-override-rhel9-operator Red Hat OpenShift Secondary Scheduler Operator openshift-secondary-scheduler-operator/secondary-scheduler-rhel9-operator Red Hat OpenShift Serverless kn-workflow-plugin, openshift-serverless-1/logic-rhel8-operator, openshift-serverless-1/kn-plugin-event-sender-rhel8, openshift-serverless-1/kn-plugin-func-func-util-rhel8, openshift-serverless-1-tech-preview/logic-rhel8-operator Red Hat OpenShift Service Mesh 2 openshift-service-mesh/kiali-rhel8, openshift-service-mesh/pilot-rhel8, openshift-service-mesh/proxyv2-rhel9, openshift-service-mesh/istio-cni-rhel8, openshift-service-mesh/ratelimit-rhel8, openshift-service-mesh/istio-rhel8-operator Red Hat OpenShift Source-to-Image (S2I) source-to-image/source-to-image-rhel8 Red Hat Power monitoring for Red Hat OpenShift openshift-power-monitoring/kepler-rhel9, openshift-power-monitoring/power-monitoring-rhel9-operator Red Hat 3scale API Management Platform 2 3scale-amp26/operator, rhcl-1/authorino-rhel9, 3scale-amp26/3scale-operator, rhcl-1/authorino-rhel9-operator, rhcl-1/authorino-operator-bundle, 3scale-amp2/3scale-rhel7-operator, +9 more Red Hat Advanced Cluster Management for Kubernetes 2 flightctl, flightctl-agent, flightctl-selinux, rhacm2/subctl-rhel9, rhacm2/thanos-rhel9, rhacm2/acm-cli-rhel9, +55 more Red Hat Advanced Cluster Security 4 advanced-cluster-security/rhacs-main-rhel8, advanced-cluster-security/rhacs-roxctl-rhel8, advanced-cluster-security/rhacs-scanner-rhel8, advanced-cluster-security/rhacs-rhel8-operator, advanced-cluster-security/rhacs-central-db-rhel8, advanced-cluster-security/rhacs-scanner-db-rhel8, +4 more
40 more affected, 17 more fixed, 1 more not affected in the full advisory
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- partial
- Assessed
- 13 mo ago
Exploit prediction
0.55% chance of exploitation in the next 30 days, higher than 46% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- go.dev https://go.dev/issue/74466 referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CISA ADP | 3.1 | 6.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:L |
| CNA | 3.1 | 6.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:L |
| OSV | 3.1 | 6.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:L |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| bitnami | golang | <1.23.12 >=1.24.0, <1.24.6 |
1.23.12 1.24.6 |
| go | stdlib | <1.23.12 >=1.24.0, <1.24.6 |
1.23.12 1.24.6 |
Affected products
- Go standard library os/exec
References
-
go.dev
/cl/691775
patch
-
go.dev
/issue/74466
exploit, issue-tracking, third-party-advisory, advisory, report
-
pkg.go.dev
/vuln/GO-2025-3956
vendor-advisory, advisory
-
groups.google.com
/g/golang-announce/c/x5MKroML2yM
mailing-list, release-notes, discussion, web
-
openwall.com
/lists/oss-security/2025/08/06/1
issue-tracking, mailing-list, report
-
nvd.nist.gov
/vuln/detail/CVE-2025-47906
web
Sources
- CVE List CVE-2025-47906
- NVD CVE-2025-47906
- OSV BIT-golang-2025-47906
- OSV GO-2025-3956
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.
CPEs and fixed versions use Anchore's correction of NVD's data: Added CPE configurations because not yet analyzed by NVD.