CVE-2025-47906

Medium

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.

SeverityMedium
CVSS6.5
Exploit probability—
ProductGo
PublishedSep 18, 2025
First seenSep 18, 2025
Weakness typeCWE-115CWE-115

How to fix

Update
  • golang go1.23.12, 1.24.6 or later
  • stdlib1.23.12, 1.24.6 or later

Affected products

ProductAffected versionsFixed in
golang gov < 1.23.12, 1.24.0 ≤ v < 1.24.61.23.12, 1.24.6
stdlibGov < 1.23.12, 1.24.0 ≤ v < 1.24.61.23.12, 1.24.6

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.

CVE-2025-47906 · Go · Dark Radar