CVE-2025-47906

Unexpected paths returned from LookPath in os/exec

State
Published
Severity
6.5 Medium
Published
Sep 18, 2025
Updated
Nov 4, 2025
Reserved
May 13, 2025

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
3.16.5 MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:LCISA-ADP

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
os/execGo standard library
  • before 1.23.12Affected
  • 1.24.0 to before 1.24.6Affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.