CVE-2026-39817
cmd/go: golang: Go tool pack: Arbitrary file write via malicious archive extraction
Overview
Description
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.
Source: OX vulnerability database
Severity
5.9 · MEDIUM
CVSS 3.1 base score, scored by NVD.
- 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
Weakness: CWE-787
Affected packages · 1
| Ecosystem | Package | Vulnerable | Fixed in |
|---|---|---|---|
| Bitnami | golang | <1.25.10>=1.26.0-0, <1.26.3 | 1.25.101.26.3 |
Open a package to see all its vulnerabilities.
Operating systems · 2,010 fixes
Oracle Linux 2 releases · 2 packages
| Release | Package | Fixed in |
|---|---|---|
| 8 | delve | 1.25.2-1.0.1.module+el8.10.0+90715+2d4d8dfd |
| 8 | go-toolset +7 | 1.25.9-1.0.1.module+el8.10.0+90898+1e3c34bb |
| 9 | go-toolset +7 | 1.26.3-1.0.1.el9_8 |
Photon OS 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 5.0 | go | 1.26.3-1.ph5 |
Red Hat 4 releases · 3 packages
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 7 | openshift4-ose-hypershift-rhel9 | investigating | — |
| 8 | openshift4-ose-hypershift-rhel9 | investigating | — |
| 8 (go-toolset:rhel8) | go-toolset +7 | 0:1.25.10-1.module+el8.10.0+24308+5c4a16b7 | RHSA-2026:22112 |
| 8 (go-toolset:rhel8) | delve | 0:1.25.2-1.module+el8.10.0+23746+9db33b5e | RHSA-2026:22112 |
| 9 | openshift4-ose-hypershift-rhel9 | investigating | — |
| 9 | go-toolset +7 | 0:1.26.3-1.el9_8 | RHSA-2026:22121 |
3 more rows
SUSE Linux Enterprise 5 releases · 4 packages
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 15.4 | go1-25-openssl +2 | 1.25.10-150000.1.24.1 | SUSE-SU-2026:2093-1 |
| 15.4 | go1-25 +2 | 1.25.10-150000.1.38.1 | SUSE-SU-2026:1862-1 |
| 15.4 | go1-26 +2 | 1.26.3-150000.1.12.1 | SUSE-SU-2026:1861-1 |
| 15.4 | go1-26-openssl +2 | 1.26.3-150000.1.9.1 | SUSE-SU-2026:2092-1 |
| 15.5 | go1-25-openssl +2 | 1.25.10-150000.1.24.1 | SUSE-SU-2026:2093-1 |
| 15.5 | go1-25 +2 | 1.25.10-150000.1.38.1 | SUSE-SU-2026:1862-1 |
14 more rows
alma 2 releases · 2 packages
| Release | Package | Fixed in |
|---|---|---|
| 8 (go-toolset:rhel8) | go-toolset +7 | 1.25.10-1.module_el8.10.0+4187+c45165c4 |
| 8 (go-toolset:rhel8) | delve | 1.25.2-1.module_el8.10.0+4074+24330916 |
| 9 | go-toolset +7 | 1.26.3-1.el9_8 |
alpine 3 releases · 2 packages
| Release | Package | Fixed in |
|---|---|---|
| 3.23 | go | 1.25.10-r0 |
| 3.24 | go | 1.26.3-r0 |
| 3.24 | rclone | 1.74.1-r0 |
| edge | go | 1.26.3-r0 |
| edge | rclone | 1.74.1-r0 |
amazon linux 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 2023 | golang +6 | 1.25.10-1.amzn2023.0.1 |
chainguard 1 release · 1,293 packages
| Release | Package | Fixed in |
|---|---|---|
| datadog-agent-7-76 +8 | not affected | |
| hclgrep +1 | 0.0.0_git20240307-r0 | |
| hclmerge-fips | 0.0.0_git20250729-r0 | |
| hclmerge | 0.0.0_git20250729-r1 | |
| tflintenv | 0.0.0_git20251013-r0 | |
| tflintenv-fips | 0.0.0_git20251013-r1 |
1,287 more rows
debian 4 releases · 4 packages
| Release | Package | Fixed in |
|---|---|---|
| 11 | golang-1-15 | affected |
| 12 | golang-1-19 | affected |
| 13 | golang-1-24 | affected |
| 14 | golang-1-24 | affected |
| 14 | golang-1-26 | 1.26.3-1 |
echo 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| golang-1-19 +1 | affected |
minimos 1 release · 428 packages
| Release | Package | Fixed in |
|---|---|---|
| pombump | 0.0.16-r8 | |
| tw | 0.0.47-r1 | |
| cargobump | 0.1.1-r4 | |
| aws-eks-pod-identity-agent +1 | 0.1.37-r1 | |
| gofumpt | 0.10.0-r1 | |
| dockerize | 0.11.0-r1 |
422 more rows
openSUSE 1 release · 2 packages
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Tumbleweed | go1-25 +3 | 1.25.10-1.1 | openSUSE-SU-2026:10723-1 |
| Tumbleweed | go1-26 +3 | 1.26.3-1.1 | openSUSE-SU-2026:10741-1 |
openSUSE Leap 1 release · 4 packages
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 16.0 | go1-25 +3 | 1.25.10-160000.1.1 | openSUSE-SU-2026:20763-1 |
| 16.0 | go1-25-openssl +2 | 1.25.12-160000.1.1 | openSUSE-SU-2026:21319-1 |
| 16.0 | go1-26 +3 | 1.26.3-160000.1.1 | openSUSE-SU-2026:20762-1 |
| 16.0 | go1-26-openssl +2 | 1.26.4-160000.1.1 | openSUSE-SU-2026:21254-1 |
rocky 3 releases · 2 packages
| Release | Package | Fixed in |
|---|---|---|
| 10 | go-toolset +7 | 1.26.3-4.el10_2 |
| 8 (go-toolset:rhel8) | go-toolset +7 | 1.25.10-1.module+el8.10.0+40200+0fd0f175 |
| 8 (go-toolset:rhel8) | delve | 1.25.2-1.module+el8.10.0+40035+ee0a7047 |
| 9 | go-toolset +7 | 1.26.3-1.el9_8 |
root.io debian 2 releases · 2 packages
| Release | Package | Fixed in |
|---|---|---|
| 12 | rootio-golang-1-19 | affected |
| 13 | rootio-golang-1-24 | affected |
wolfi 1 release · 229 packages
| Release | Package | Fixed in |
|---|---|---|
| knative-eventing-1-21 +2 | not affected | |
| tw | 0.0.47-r1 | |
| gke-gcloud-auth-plugin | 0.1.0-r17 | |
| cargobump | 0.1.1-r4 | |
| hey | 0.1.5-r6 | |
| step-issuer | 0.10.2-r10 |
223 more rows
References
- access.redhat.com https://access.redhat.com/errata/RHSA-2026:22120
- access.redhat.com https://access.redhat.com/errata/RHSA-2026:22121
- access.redhat.com https://access.redhat.com/security/cve/CVE-2026-39817
- bugzilla.redhat.com https://bugzilla.redhat.com/2467822
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2467809
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2467810
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2467811
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2467813
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2467815
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2467820
Show all 37 references
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2467822
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2467823
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2467825
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2467826
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2467827
- creativecommons.org https://creativecommons.org/licenses/by/4.0/
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2026-33811
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2026-33814
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2026-39817
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2026-39819
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2026-39820
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2026-39823
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2026-39825
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2026-39826
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2026-39836
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2026-42499
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2026-42501
- errata.almalinux.org https://errata.almalinux.org/9/ALSA-2026-22121.html
- errata.rockylinux.org https://errata.rockylinux.org/RLSA-2026:22120
- go.dev https://go.dev/cl/767520
- go.dev https://go.dev/issue/78778
- groups.google.com https://groups.google.com/g/golang-announce/c/qcCIEXso47M
- linux.oracle.com https://linux.oracle.com/cve/CVE-2026-39817.html
- linux.oracle.com https://linux.oracle.com/errata/ELSA-2026-22121.html
- nvd.nist.gov https://nvd.nist.gov/vuln/detail/CVE-2026-39817
- pkg.go.dev https://pkg.go.dev/vuln/GO-2026-4979
- www.cve.org https://www.cve.org/CVERecord?id=CVE-2026-39817
OX Radar and Response Center
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.