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 package | Versions | Reported by |
|---|---|---|
| cmd/go | before 1.25.10, from 1.26.0-0 before 1.26.3 | CVE List |
| toolchain (Go) | before 1.25.10, from 1.26.0-0 before 1.26.3 | Go Vulnerability Database |
| golang go | before 1.25.10, from 1.26.0 before 1.26.3 | NVD |
| golang (Bitnami) | before 1.25.10, from 1.26.0-0 before 1.26.3 | Bitnami Vulnerability Database |
All scores
| CISA-ADP | 5.3medium CVSS:3.1 | CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:H/A:N |
| NVD | 5.3medium CVSS:3.1 | CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:H/A:N |
| Bitnami Vulnerability Database | medium rating |
Classification
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
| https://go.dev/issue/78584 | issue-tracking, report | |
| https://go.dev/cl/763882 | fix, patch | |
| https://groups.google.com/g/golang-announce/c/qcCIEXso47M | issue-tracking, mailing-list, report, web | |
| https://pkg.go.dev/vuln/GO-2026-4978 | advisory, vendor-advisory | |
| https://nvd.nist.gov/vuln/detail/CVE-2026-39819 | web | |
Related
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-39819 changed 2026-05-08 | CVE Terms of Use |
| Go Vulnerability Database | GO-2026-4978 changed 2026-11-23 | CC-BY-4.0 |
| NVD | CVE-2026-39819 changed 2026-11-11 | Public domain |
| Bitnami Vulnerability Database | BIT-GOLANG-2026-39819 changed 2026-09-08 | Apache-2.0 |