CVE 6.5 MEDIUM

Unexpected paths returned from LookPath in os/exec_CVE-2025-47906

6.5 / 10
MEDIUM
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:L

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.

Basic Information

ID CVE-2025-47906
Source Go
Published Sep 18, 2025 at 18:41
Modified Sep 18, 2025 at 20:42

Affected Product

Vendor Go standard library
Product os/exec
Affected Versions Go standard library os/exec 0
Go standard library os/exec 1.24.0

References

💭 Join the Security Discussion

🔒 Your email address will not be published. Required fields are marked *

⚠️ Please be respectful and constructive in your comments. Security discussions should remain professional.