CVE-2026-39817: Invoking "go tool pack" does not sanitize output paths in cmd/go

Published May 7, 2026
·
Updated

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.

Affected Software

3 affected components
go Go (cmd/go pack)
Golang Go<1.25.10
Golang Go>=1.26.0<1.26.3

Remediation

Event History

May 7, 2026
CVE Published
via MITRE·07:41 PM
Data Sourced
via MITRE·07:41 PM
DescriptionWeakness
Data Sourced
via NVD·08:16 PM
RemedyDescriptionSeverityWeaknessAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2026-39817?

CVE-2026-39817 has a high severity due to the risk of arbitrary file write vulnerabilities.

2

How do I fix CVE-2026-39817?

To fix CVE-2026-39817, update to the latest version of Go where this vulnerability has been addressed.

3

What are the risks associated with CVE-2026-39817?

The risks include unauthorized file overwrites and potential execution of malicious code.

4

Who is affected by CVE-2026-39817?

Developers using the 'go tool pack' command in vulnerable versions of Go are affected by CVE-2026-39817.

5

Is CVE-2026-39817 exploitable remotely?

CVE-2026-39817 is not typically exploitable remotely, as it generally requires local access to a vulnerable system.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203