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

Published May 7, 2026
·
Updated

Invoking "go tool pack" does not sanitize output paths in cmd/go

Other sources

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.

— MITRE

Affected Software

42 affected componentsFixes available
go Go (cmd/go pack)
Golang Go<1.25.10
Golang Go>=1.26.0<1.26.3
debian/golang-1.19*
debian/golang-1.24*
debian/golang-1.26<1.26.3-1
1.26.3-1
go/toolchain<1.25.10
1.25.10
go/toolchain>=1.26.0-0<1.26.3
1.26.3
debian/golang-1.19<=1.19.8-2
debian/golang-1.24<=1.24.4-1
debian/golang-1.26
1.26.3-1
debian/golang-1.25
1.25.10-1
ubuntu/golang-1.10*
ubuntu/golang-1.10*
ubuntu/golang-1.6*
ubuntu/golang-1.13*
ubuntu/golang-1.18*
ubuntu/golang-1.10*
ubuntu/golang-1.13*
ubuntu/golang-1.16*
ubuntu/golang-1.18*
ubuntu/golang-1.8*
ubuntu/golang-1.13*
ubuntu/golang-1.16*
ubuntu/golang-1.18*
ubuntu/golang-1.22*
ubuntu/golang-1.17*
ubuntu/golang-1.22*
ubuntu/golang-1.24*
ubuntu/golang-1.13*
ubuntu/golang-1.21*
ubuntu/golang-1.22*
ubuntu/golang-1.24*
ubuntu/golang-1.23*
ubuntu/golang-1.24*
ubuntu/golang-1.23*
ubuntu/golang-1.24*
alpine/go<1.25.10-r0
1.25.10-r0
alpine/go>=1.26.0<1.26.3-r0
1.26.3-r0
alpine/go>=1.26.0<1.26.3-r0
1.26.3-r0
alpine/rclone<1.74.1-r0
1.74.1-r0
alpine/rclone<1.74.1-r0
1.74.1-r0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade debian/golang-1.26 to a version that resolves this vulnerability.

    Fixed in 1.26.3-1
  2. Upgrade

    Upgrade alpine/go to a version that resolves this vulnerability.

    Fixed in 1.25.10-r0
  3. Upgrade

    Upgrade alpine/go to a version that resolves this vulnerability.

    Fixed in 1.26.3-r0
  4. Upgrade

    Upgrade alpine/rclone to a version that resolves this vulnerability.

    Fixed in 1.74.1-r0
  5. Upgrade

    Upgrade go/toolchain to a version that resolves this vulnerability.

    Fixed in 1.25.10
  6. Upgrade

    Upgrade go/toolchain to a version that resolves this vulnerability.

    Fixed in 1.26.3
  7. Upgrade

    Upgrade debian/golang-1.25 to a version that resolves this vulnerability.

    Fixed in 1.25.10-1

Event History

May 7, 2026
Advisory Published
via OSV·07:21 PM
Data Sourced
via OSV·07:21 PM
DescriptionAffected Software
CVE Published
via MITRE·07:41 PM
Data Sourced
via MITRE·07:41 PM
DescriptionWeakness
Data Sourced
via OSV·07:41 PM
Severity
Data Sourced
via Red Hat·08:02 PM
DescriptionSeverityAffected Software
Data Sourced
via NVD·08:16 PM
Description
May 8, 2026
Data Sourced
via NVD·10:16 PM
Severity
May 10, 2026
Data Sourced
via Microsoft·08:02 AM
DescriptionSeverityWeakness
May 13, 2026
Data Sourced
via NVD·02:59 PM
RemedyWeaknessAffected Software
Updated
via NVD·02:59 PM
Severity
Nov 17, 2026
Updated
via OSV·06:31 AM
Affected Software
Dec 3, 2026
Updated
via OSV·11:32 PM
Affected Software

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