CVE-2026-39819 Details
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.
A vulnerability exists in the Go command 'go bug' prior to version 1.25.10 and in the 1.26.0-0 version range prior to 1.26.3. The issue arises because 'go bug' writes to two files with predictable names in the system temporary directory. An attacker with access to this directory can create a symlink targeting one of these files, leading 'go bug' to overwrite the symlink's target. This vulnerability was reported by Harshit Gupta (Mr HAX) and is tracked as CVE-2026-39819.
The 'go bug' command has been updated to use 'os.MkdirTemp' for creating temporary directories, which mitigates the symlink attack by ensuring that the filenames are not predictable. Users should upgrade to Go versions 1.26.3 or 1.25.10.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed May 8, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://go.dev/cl/763882 | [email protected] | Patch |
| https://go.dev/issue/78584 | [email protected] | Issue Tracking |
| https://groups.google.com/g/golang-announce/c/qcCIEXso47M | [email protected] | Issue TrackingMailing List |
| https://pkg.go.dev/vuln/GO-2026-4978 | [email protected] | Vendor Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-59 | Improper Link Resolution Before File Access ('Link Following') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| golang go | < 1.25.10 >= 1.26.0, < 1.26.3 |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| May 13, 2026 | Initial Analysis | [email protected] |
| May 8, 2026 | CVE Modified | CISA-ADP |
| May 7, 2026 | New CVE Received | [email protected] |