{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "cpe": "cpe:2.3:a:golang:go:*:*:*:*:*:*:*:*",
            "extracted_events": [
              {
                "introduced": "0"
              },
              {
                "fixed": "1.25.10"
              },
              {
                "introduced": "1.26.0"
              },
              {
                "fixed": "1.26.3"
              }
            ],
            "source": "CPE_RANGE"
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "5053df5b6ff006dfc96df442fddddee49f5250eb"
            },
            {
              "introduced": "d90b98e65320778f3b1f99a6951ab20f04d218b3"
            },
            {
              "fixed": "2dc996f71b0ebafb77e64433e58333e049488a3c"
            }
          ],
          "repo": "https://github.com/golang/go",
          "type": "GIT"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "Go",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/39xxx/CVE-2026-39817.json",
    "unresolved_ranges": [
      {
        "extracted_events": [
          {
            "fixed": "1.25.10"
          },
          {
            "introduced": "1.26.0-0"
          },
          {
            "fixed": "1.26.3"
          }
        ],
        "source": "AFFECTED_FIELD"
      }
    ]
  },
  "details": "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.",
  "id": "CVE-2026-39817",
  "modified": "2026-07-08T05:36:07.604058276Z",
  "published": "2026-05-07T19:41:18.993Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://go.dev/cl/767520"
    },
    {
      "type": "WEB",
      "url": "https://go.dev/issue/78778"
    },
    {
      "type": "WEB",
      "url": "https://groups.google.com/g/golang-announce/c/qcCIEXso47M"
    },
    {
      "type": "WEB",
      "url": "https://pkg.go.dev"
    },
    {
      "type": "WEB",
      "url": "https://pkg.go.dev/vuln/GO-2026-4979"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/39xxx/CVE-2026-39817.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-39817"
    }
  ],
  "schema_version": "1.7.5",
  "severity": [
    {
      "score": "CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:C/C:N/I:H/A:N",
      "type": "CVSS_V3"
    }
  ],
  "summary": "Invoking \"go tool pack\" does not sanitize output paths in cmd/go"
}