Skip to main content

Go toolchain cmd/go CVE-2026-39817

| EUVDEUVD-2026-28421 MEDIUM
Out-of-bounds Write (CWE-787)
2026-05-07 Go GHSA-qc64-m6c2-v4x7
5.9
CVSS 3.1 · NVD
View

Attack ChainAIDerived

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

  1. Access
    Attacker crafts malicious archive
  2. Delivery
    Developer receives archive
  3. Exploit
    Developer or build runs 'go tool pack'
  4. Execution
    Path traversal in filenames exploited
  5. Persist
    Files written to arbitrary locations
  6. Impact
    Integrity compromise or code injection achieved

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Bounds checking, write limits
MITRE ATT&CK

2 techniques across 2 tactics: Execution, Privilege Escalation

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires all of the following: (1) Local filesystem access to the victim system where Go toolchain is installed; (2) User-level or higher privileges to run the 'go tool pack' subcommand (non-root execution is sufficient); (3) User interaction to explicitly invoke 'go tool pack' on a malicious archive file (the subcommand is not automatically triggered by normal Go workflows); (4) A crafted archive containing relative path traversal sequences in its internal filename metadata. Exploitation does NOT require network access, administrative privilege, or authentication to a service. The vulnerability is NOT present in default configurations if users do not manually run 'go tool pack' on untrusted archives - the tool is primarily an internal compiler utility not exposed through typical go build workflows.

Impact

This vulnerability presents limited real-world risk despite a moderate CVSS score of 5.9, supported by convergent signals from multiple frameworks. The EPSS score of 0.03% (8th percentile) indicates very low exploitation probability in the wild. The SSVC decision framework reinforces this assessment with 'none' exploitation status, 'no' automatable exploitation, and 'partial' technical impact, suggesting targeted rather than widespread attacks. The CVSS vector itself constrains the threat: local-only attack vector (AV:L) eliminates remote exploitation entirely, and the requirement for user interaction (UI:R) and low privilege (PR:L) means exploitation depends on convincing a user to extract a malicious archive through the pack subcommand. The scope change (S:C) indicates impact beyond the vulnerable component, but integrity impact (I:H) is offset by no confidentiality or availability damage. The combination of strict prerequisites (local access + user interaction + non-default tool usage) and negligible EPSS probability suggests this is a real but narrow vulnerability primarily affecting development workflows where untrusted archives are processed.

Exploit ScenarioDerived

An attacker creates a malicious Go archive file (.a) containing path traversal sequences in filenames (e.g., '../../../tmp/injected_file'). A developer or build system unknowingly extracts this archive using 'go tool pack', and the unvalidated filenames cause the tool to write files outside the intended extraction directory, potentially overwriting critical build artifacts, configuration files, or source code. User interaction is required to invoke the pack subcommand on the malicious archive.

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 tool pack' subcommand fails to sanitize output filenames when extracting archive files, allowing local attackers with user privileges and user interaction to write files to arbitrary filesystem locations. Affected versions include Go 1.26.0 through 1.26.2 and all versions before 1.25.10. This vulnerability requires local access and user interaction to trigger, with a vendor-released patch available.

RemediationAI

Upgrade Go to version 1.26.3 or later for the 1.26.x branch, or to version 1.25.10 or later for the 1.25.x branch. Vendor patch is confirmed available per the references at https://go.dev/cl/767520 and announcement at https://groups.google.com/g/golang-announce/c/qcCIEXso47M. For environments unable to upgrade immediately, restrict use of the 'go tool pack' subcommand to known-good, trusted archive sources only. Do not permit extraction of archives from untrusted or external sources using this tool. Disable or isolate systems where the pack subcommand might be invoked by non-administrator users on potentially malicious archives. These compensating controls mitigate the attack by reducing the attack surface but do not eliminate the vulnerability; patching is the definitive remediation.

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 tool pack' subcommand is an internal utility used primarily by the Go compiler to manipulate archive files (typically .a files containing compiled object code). The vulnerability stems from insufficient validation of output filenames during archive extraction, falling under the path traversal/arbitrary file write category. The affected product is identified by CPE cpe:2.3:a:go_toolchain:cmd/go, which encompasses the command-line interface and associated tooling. The flaw allows an attacker to craft a malicious archive containing relative path entries (such as '../../../etc/passwd') that, when extracted by the pack subcommand, bypass intended filesystem boundaries and write files outside the intended extraction directory.

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.9 MEDIUM
AV:L/AC:L/PR:L/UI:R/S:C/C:N/I:H/A:N
SUSE MEDIUM
Red Hat 5.9 MEDIUM

Primary rating from NVD.

CVSS VectorNVD

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

Lifecycle Timeline

4
CVSS changed
May 08, 2026 - 22:22 NVD
5.9 (None) 5.9 (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.9

DescriptionCVE.org

The "go tool pack" subcommand (usually used only by the compiler as an internal tool with known-good inputs) does not sanitize output filenames. Extracting a malicious archive file with the "pack" subcommand can write files to arbitrary locations on the filesystem.

Threat Intelligence Overview

EPSS Score
0.0%
Top 92% 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

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

Attack Technique

A buffer overflow occurs when a program writes more data to a memory buffer than it was allocated to hold, causing the excess data to spill into adjacent memory regions.

Memory corruption occurs when a program writes data beyond the boundaries of allocated memory regions or accesses memory in unintended ways, violating the integrity of the process's address space.

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