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

- Severity: Medium 5.9 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:C/C:N/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.17%, higher than 6% of CVEs (2026-12-01)
- Published: 2026-05-07T19:21:40.000Z
- Modified: 2026-11-23T21:12:28.858Z
- Also known as: GO-2026-4979, BIT-GOLANG-2026-39817
- Related: RHSA-2026:22112, RHSA-2026:22120, RHSA-2026:22121, RHSA-2026:49702, RHSA-2026:49712, RHSA-2026:57649, RHSA-2026:61253, RHSA-2026:62391, RHSA-2026:66561
- Weaknesses: CWE-22, CWE-787
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Go

## 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.

(As written by CVE List.)

## Affected

- cmd/go: before 1.25.10; from 1.26.0-0 before 1.26.3
- toolchain (Go): before 1.25.10; from 1.26.0-0 before 1.26.3
- golang go: before 1.25.10; from 1.26.0 before 1.26.3
- golang (Bitnami): before 1.25.10; from 1.26.0-0 before 1.26.3

## Every score

- CISA-ADP: CVSS:3.1 5.9 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:C/C:N/I:H/A:N`
- NVD: CVSS:3.1 5.9 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:C/C:N/I:H/A:N`
- Bitnami Vulnerability Database: rating Medium

## References

- <https://go.dev/issue/78778> (issue-tracking, report)
- <https://go.dev/cl/767520> (fix, patch)
- <https://groups.google.com/g/golang-announce/c/qcCIEXso47M> (issue-tracking, mailing-list, report, web)
- <https://pkg.go.dev/vuln/GO-2026-4979> (advisory, vendor-advisory)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-39817> (web)

## Sources

- CVE List: [CVE-2026-39817](https://www.cve.org/CVERecord?id=CVE-2026-39817), CVE Terms of Use, modified 2026-05-08
- Go Vulnerability Database: [GO-2026-4979](https://pkg.go.dev/vuln/GO-2026-4979), CC-BY-4.0, modified 2026-11-23
- NVD: [CVE-2026-39817](https://nvd.nist.gov/vuln/detail/CVE-2026-39817), Public domain, modified 2026-11-11
- Bitnami Vulnerability Database: [BIT-GOLANG-2026-39817](https://osv.dev/vulnerability/BIT-GOLANG-2026-39817), Apache-2.0, modified 2026-09-08

---

Page: https://cve.day/CVE-2026-39817 · Whole record: https://cve.day/CVE-2026-39817.json · Rebuilt by cve.day 2026-11-25T22:59:20.911Z
