Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…
EPSS 0.2%top 93%

CVE-2026-39817: CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in Go toolchain cmd/go

0
Medium
VulnerabilityCVE-2026-39817cvecve-2026-39817cwe-22
Published: 05/07/2026 (05/07/2026, 19:41:18 UTC)
Source: CVE Database V5
Vendor/Project: Go toolchain
Product: cmd/go

Description

CVE-2026-39817 is a medium-severity path traversal vulnerability in the Go toolchain's cmd/go component, specifically affecting the 'go tool pack' subcommand. This flaw allows a malicious archive to write files to arbitrary filesystem locations due to improper sanitization of output filenames when extracting archives. It affects Go versions up to 1.26.0-0. There is currently no official patch or remediation guidance available, and no known exploits have been reported in the wild.

CVSS v3.1

Score 5.9medium

Attack Vector
Local
Attack Complexity
Low
Privileges Required
Low
User Interaction
Required
Scope
Changed
Confidentiality
None
Integrity
High
Availability
None
CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:C/C:N/I:H/A:N

Affected software

github.com/golang/go
pkg:golang/github.com/golang/go
Affected versions
=0=1.26.0-0

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 06/24/2026, 17:19:21 UTC

Technical Analysis

This vulnerability (CVE-2026-39817) involves improper limitation of a pathname to a restricted directory (CWE-22) in the Go toolchain's cmd/go 'go tool pack' subcommand. When extracting archives, the tool does not properly sanitize output filenames, enabling a crafted archive to write files outside the intended directory, potentially overwriting arbitrary files. The issue affects Go versions up to and including 1.26.0-0. No official fix or remediation guidance has been published, and no exploitation in the wild is known.

Potential Impact

An attacker who can supply a malicious archive to the 'go tool pack' subcommand may cause files to be written to arbitrary locations on the filesystem. This can lead to integrity violations by overwriting or creating files outside the intended extraction directory. The vulnerability does not impact confidentiality or availability directly. The CVSS score of 5.9 reflects a medium severity with local attack vector, low complexity, requiring low privileges and user interaction, and a scope change with impact on integrity only.

Mitigation Recommendations

Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is released, users should exercise caution when extracting archives with the 'go tool pack' subcommand, especially from untrusted sources. Avoid processing untrusted archives to mitigate risk.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
Go
Date Reserved
2026-04-07T18:13:03.524Z
Cvss Version
null
State
PUBLISHED
Remediation Level
null

Threat ID: 69fcf0c1cbff5d86102bd5b9

Added to database: 05/07/2026, 20:06:25 UTC

Last enriched: 06/24/2026, 17:19:21 UTC

Last updated: 07/31/2026, 19:22:58 UTC

Views: 104

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses