CVE-2025-47906

MEDIUM6.5EPSS 0.03%

Unexpected paths returned from LookPath in os/exec

Published: 9/18/2025Modified: 4/28/2026

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 (5)

CVSS scores

SourceVersionSeverityVector
osvCVSS 3.1MEDIUM6.5CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:L

References (7)