Skip to main content

Go toolchain cmd/go CVE-2026-39819

| EUVDEUVD-2026-28422 MEDIUM
Improper Link Resolution Before File Access (CWE-59)
2026-05-07 Go GHSA-5m4p-2gjx-p2g8
5.3
CVSS 3.1 · NVD
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Local filesystem access
  2. Delivery
    Discover predictable temp file names
  3. Exploit
    Create symlinks targeting sensitive files
  4. Execution
    Trigger 'go bug' execution
  5. Persist
    Symlink targets overwritten
  6. Impact
    Information disclosure or file corruption

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V5 - File Handling Symlink resolution safety
Exploitation Conditions

Exploitation requires: (1) local system access (AV:L per CVSS vector), (2) write permissions to the system temporary directory or the ability to pre-create files/symlinks there, (3) knowledge or discovery of the predictable temporary file names used by 'go bug', and (4) execution of the 'go bug' command by a legitimate user or automated process. The high attack complexity (AC:H) reflects the need to successfully place a symlink before the legitimate process writes to the same path-a race condition or careful timing scenario. Non-default configurations do not mitigate this; the vulnerability exists in default installations. Exploitation is limited by: absence of network attack vector (local-only), requirement for prior local access, need for user or process to execute 'go bug' (which is not a background daemon), and reduced impact if the temp directory has restricted permissions.

Impact

Risk assessment presents conflicting signals requiring careful interpretation. CVSS 5.3 with AV:L (local attack vector) and AC:H (high attack complexity) reflects moderate severity, while EPSS 0.01% (first percentile) indicates very low real-world exploitation probability-consistent with CISA SSVC decision 'Exploitation: none' and 'Automatable: no'. The 'Automatable: no' rating is critical; this attack requires local system access, precise timing or pre-placement of symlinks, and knowledge of the temporary file names. However, the 'Technical Impact: partial' acknowledges that successful exploitation enables arbitrary file overwrite. Risk is concentrated in shared-system environments (CI/CD pipelines, multi-user development machines, containerized builds) where attackers already have local filesystem access. The very low EPSS and absence from KEV suggest this is not being actively exploited in the wild, likely because the prerequisites (local access + temp directory write + symlink placement) are difficult to achieve without detection. Priority is medium-low for most organizations but higher for systems running untrusted code or with weak temp directory isolation.

Exploit ScenarioDerived

An attacker with local access to a shared development machine or CI/CD runner prepares symlinks at the predictable paths where 'go bug' writes (e.g., /tmp/goprofiling.txt, /tmp/goreport.txt) pointing to sensitive files such as ~/.ssh/id_rsa or /etc/passwd. When a developer or automated build system runs 'go bug', the command overwrites the symlink targets with diagnostic output and system environment data, allowing the attacker to corrupt or access sensitive file contents through the bug report output.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – May 09, 2026

The Go toolchain's 'go bug' command creates temporary files with predictable names in the system temporary directory, allowing local attackers with temporary directory access to create symlinks that cause arbitrary file overwrite. Affects Go 1.26.0 through 1.26.2 and 1.25.0 through 1.25.9. While CVSS 5.3 and EPSS 0.01% suggest moderate local impact, the vulnerability enables information disclosure and integrity compromise of arbitrary files via symlink redirection, confirmed patched in Go 1.26.3 and 1.25.10.

RemediationAI

Upgrade Go toolchain to version 1.26.3 or later (preferred) or 1.25.10 or later for users still on the 1.25 release branch. The patch is available from the official Go downloads at https://go.dev/dl/ and is confirmed in the Go security advisory at https://groups.google.com/g/golang-announce/c/qcCIEXso47M. No workarounds are available short of avoiding use of the 'go bug' command. Compensating controls in high-risk environments (shared build systems, multi-tenant CI/CD) include restricting write access to the system temp directory via filesystem permissions or SELinux/AppArmor policies, isolating build processes in separate containers or VMs with private temp directories, and using mount options (noexec, nodev, nosuid) on tmpfs mounts. These controls have minimal performance impact but may complicate legitimate system administration tasks.

Affected VersionsENISA

cmd/go 1.26.0-0 <1.26.3
cmd/go 0 <1.25.10

Affected Packages

go toolchain fix: 1.25.10, 1.26.3
euvd cmd_go fix: 1.25.10, 1.26.3

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 2 packages in go, euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The Go toolchain's 'go bug' command (used for generating bug reports) writes diagnostic data to two temporary files using predictable naming schemes in the system temp directory (typically /tmp on Unix-like systems). The underlying vulnerability exists because the command does not use secure temporary file creation mechanisms (such as mkstemp or O_CREAT with O_EXCL flags) to prevent symlink attacks. An attacker with write access to the temp directory can pre-create symlinks with the predictable filenames that the 'go bug' command expects to write to, causing the tool to overwrite the symlink targets instead. This is a classic TOCTOU (time-of-check-time-of-use) race condition. The affected component is the cmd/go package (cpe:2.3:a:go_toolchain:cmd/go), specifically the bug report generation functionality.

Know when Cmd Go gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

NVD PRIMARY 5.3 MEDIUM
AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:H/A:N
SUSE MEDIUM
Red Hat 4.4 MEDIUM

Primary rating from NVD.

CVSS VectorNVD

Attack Vector
Local
Attack Complexity
High
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
Low
Integrity
High
Availability
None

Lifecycle Timeline

4
CVSS changed
May 08, 2026 - 22:22 NVD
5.3 (None) 5.3 (MEDIUM)
Patch available
May 07, 2026 - 21:02 EUVD
CVE Published
May 07, 2026 - 19:41 nvd
UNKNOWN (no severity yet)
CVE Published
May 07, 2026 - 19:41 nvd
MEDIUM 5.3

DescriptionCVE.org

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.

Threat Intelligence Overview

EPSS Score
0.0%
Top 99% exploitable
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment MSRC Vendor VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Defer
Exploitation
None
System Exposure· derived
Small
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

26
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +26
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

Vendor StatusVendor

SUSE

Severity: Medium
Product Status
openSUSE Tumbleweed Fixed
SUSE Linux Enterprise High Performance Computing 15 SP4-ESPOS Affected
SUSE Linux Enterprise High Performance Computing 15 SP4-LTSS Affected
SUSE Linux Enterprise High Performance Computing 15 SP5-ESPOS Affected
SUSE Linux Enterprise High Performance Computing 15 SP5-LTSS Affected

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy