CVE-2026-39819: CWE-377: Insecure Temporary File in Go toolchain cmd/go
CVE-2026-39819 is a medium severity vulnerability in the Go toolchain's cmd/go component. The 'go bug' command creates temporary files with predictable names in the system temporary directory. This allows an attacker with access to that directory to create symbolic links with those names, potentially causing the command to overwrite unintended files. No official patch or remediation is currently available, and no known exploits have been reported.
AI Analysis
Technical Summary
This vulnerability (CVE-2026-39819) affects the Go toolchain's cmd/go component, specifically the 'go bug' command. It writes temporary files using predictable filenames in the system temporary directory. An attacker with local access to this directory could exploit this by creating symbolic links with those predictable names, leading to unauthorized file modification through overwriting files pointed to by the symlinks. The CVSS score is 5.3 (medium severity), reflecting limited attack vector and required privileges. There is currently no official fix or remediation from the vendor.
Potential Impact
An attacker with local access and low privileges to the system temporary directory could cause the 'go bug' command to overwrite arbitrary files by exploiting predictable temporary file names and symbolic link creation. This could lead to unauthorized modification of files, impacting integrity. Confidentiality impact is low, and availability is not affected. No known exploits have been reported in the wild.
Mitigation Recommendations
There is currently no official patch or remediation available from the vendor. Users should exercise caution when running the 'go bug' command in environments where untrusted users have access to the system temporary directory. Monitor vendor advisories for updates regarding a fix or mitigation.
CVE-2026-39819: CWE-377: Insecure Temporary File in Go toolchain cmd/go
Description
CVE-2026-39819 is a medium severity vulnerability in the Go toolchain's cmd/go component. The 'go bug' command creates temporary files with predictable names in the system temporary directory. This allows an attacker with access to that directory to create symbolic links with those names, potentially causing the command to overwrite unintended files. No official patch or remediation is currently available, and no known exploits have been reported.
CVSS v3.1
Score 5.3medium
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
This vulnerability (CVE-2026-39819) affects the Go toolchain's cmd/go component, specifically the 'go bug' command. It writes temporary files using predictable filenames in the system temporary directory. An attacker with local access to this directory could exploit this by creating symbolic links with those predictable names, leading to unauthorized file modification through overwriting files pointed to by the symlinks. The CVSS score is 5.3 (medium severity), reflecting limited attack vector and required privileges. There is currently no official fix or remediation from the vendor.
Potential Impact
An attacker with local access and low privileges to the system temporary directory could cause the 'go bug' command to overwrite arbitrary files by exploiting predictable temporary file names and symbolic link creation. This could lead to unauthorized modification of files, impacting integrity. Confidentiality impact is low, and availability is not affected. No known exploits have been reported in the wild.
Mitigation Recommendations
There is currently no official patch or remediation available from the vendor. Users should exercise caution when running the 'go bug' command in environments where untrusted users have access to the system temporary directory. Monitor vendor advisories for updates regarding a fix or mitigation.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- Go
- Date Reserved
- 2026-04-07T18:13:03.526Z
- Cvss Version
- null
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 69fcf0c1cbff5d86102bd5bf
Added to database: 05/07/2026, 20:06:25 UTC
Last enriched: 06/24/2026, 17:19:11 UTC
Last updated: 07/31/2026, 19:22:58 UTC
Views: 111
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.