Advisory

GO-2025-3956

Also known as: BIT-golang-2025-47906, CVE-2025-47906

Summary

Unexpected paths returned from LookPath in os/exec

Details

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.

Severity

Not rated by the source.

Dates

Published
2025-09-18 18:21 UTC
Modified
2026-10-14 10:57 UTC

Affected packages and fixes

stdlib

Go · All systems

Affected

  • introduced 0, fixed 1.23.12, introduced 1.24.0, fixed 1.24.6 (semver)

Fixed versions

1.23.12, 1.24.6

Fix

The export has no generic command for this ecosystem.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: Go Vulnerability Database · CC BY 4.0

Sources & licences