Symlink Attack Affecting std/cmd/go package, versions <1.25.10>=1.26.0-0 <1.26.3


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.18% (8th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-GOLANG-STDCMDGO-16535173
  • published8 May 2026
  • disclosed7 May 2026
  • creditHarshit Gupta

Introduced: 7 May 2026

CVE-2026-39819  (opens in a new tab)
CWE-59  (opens in a new tab)

How to fix?

Upgrade std/cmd/go to version 1.25.10, 1.26.3 or higher.

Overview

Affected versions of this package are vulnerable to Symlink Attack.

Go Vulnerability Report:

The "go bug" command writes to two files with predictable names in the system temporary directory (for example, "/tmp"). An attacker with access to the temporary directory can create a symlink in one of these names, causing "go bug" to overwrite the target of the symlink.

CVSS Base Scores

version 4.0
version 3.1