CVE-2026-39819
JSON

5.3medium

Invoking "go bug" follows symlinks in predictable temporary filenames in cmd/go

Severity
5.3medium CVSS:3.1 by CISA-ADP
Exploit likelihood
0.18% (higher than 7% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
Go
Also known as
GO-2026-4978BIT-GOLANG-2026-39819

Description

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.

Affected

Product or packageVersionsReported by
cmd/gobefore 1.25.10, from 1.26.0-0 before 1.26.3CVE List
toolchain (Go)before 1.25.10, from 1.26.0-0 before 1.26.3Go Vulnerability Database
golang gobefore 1.25.10, from 1.26.0 before 1.26.3NVD
golang (Bitnami)before 1.25.10, from 1.26.0-0 before 1.26.3Bitnami Vulnerability Database

All scores

CISA-ADP5.3medium CVSS:3.1CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:H/A:N
NVD5.3medium CVSS:3.1CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:H/A:N
Bitnami Vulnerability Databasemedium rating

Classification

CWE-59CWE-377

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

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.

NVD (es)

El comando ’go bug’ escribe en dos archivos con nombres predecibles en el directorio temporal del sistema (por ejemplo, ’/tmp’). Un atacante con acceso al directorio temporal puede crear un enlace simbólico con uno de estos nombres, haciendo que ’go bug’ sobrescriba el objetivo del enlace simbólico.

References

Related

Sources

SourceRecordLicence
CVE ListCVE-2026-39819 changed 2026-05-08CVE Terms of Use
Go Vulnerability DatabaseGO-2026-4978 changed 2026-11-23CC-BY-4.0
NVDCVE-2026-39819 changed 2026-11-11Public domain
Bitnami Vulnerability DatabaseBIT-GOLANG-2026-39819 changed 2026-09-08Apache-2.0