# CVE-2025-47906: Unexpected paths returned from LookPath in os/exec

- Severity: Medium 6.5 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.57%, higher than 48% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2025-09-18T18:21:44.000Z
- Modified: 2026-10-14T10:57:00.256Z
- Also known as: GO-2025-3956, BIT-GOLANG-2025-47906
- Related: RHSA-2025:13935, RHSA-2025:13941, RHSA-2025:21856, RHSA-2025:22004, RHSA-2025:22005, RHSA-2025:22181, RHSA-2025:22668, RHSA-2025:22899, RHSA-2025:23733, RHSA-2025:23737, RHSA-2025:23740, RHSA-2025:23741, RHSA-2025:23833, RHSA-2025:23834, RHSA-2025:23851, RHSA-2026:19350
- Weaknesses: CWE-115
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Go

## 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.

(As written by CVE List.)

## Affected

- os/exec: before 1.23.12; from 1.24.0 before 1.24.6
- stdlib (Go): before 1.23.12; from 1.24.0 before 1.24.6
- golang go: before 1.23.12; from 1.24.0 before 1.24.6
- golang (Bitnami): before 1.23.12; from 1.24.0 before 1.24.6

## Every score

- CISA-ADP: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:L`
- Bitnami Vulnerability Database: rating Medium

## References

- <https://go.dev/issue/74466> (exploit, advisory, issue-tracking, report, third-party-advisory)
- <https://go.dev/cl/691775> (fix, patch)
- <https://groups.google.com/g/golang-announce/c/x5MKroML2yM> (discussion, mailing-list, release-notes, web)
- <https://pkg.go.dev/vuln/GO-2025-3956> (advisory, vendor-advisory)
- <http://www.openwall.com/lists/oss-security/2025/08/06/1> (issue-tracking, mailing-list, report)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-47906> (web)

## Sources

- CVE List: [CVE-2025-47906](https://www.cve.org/CVERecord?id=CVE-2025-47906), CVE Terms of Use, modified 2025-11-04
- Go Vulnerability Database: [GO-2025-3956](https://pkg.go.dev/vuln/GO-2025-3956), CC-BY-4.0, modified 2026-10-14
- NVD: [CVE-2025-47906](https://nvd.nist.gov/vuln/detail/CVE-2025-47906), Public domain, modified 2026-06-17
- Bitnami Vulnerability Database: [BIT-GOLANG-2025-47906](https://osv.dev/vulnerability/BIT-GOLANG-2025-47906), Apache-2.0, modified 2026-09-08

---

Page: https://cve.day/CVE-2025-47906 · Whole record: https://cve.day/CVE-2025-47906.json · Rebuilt by cve.day 2026-11-25T22:59:04.836Z
