{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "cpe": "cpe:2.3:a:python:python:*:*:*:*:*:*:*:*",
            "extracted_events": [
              {
                "introduced": "0"
              },
              {
                "last_affected": "3.14.4"
              }
            ],
            "source": [
              "CPE_RANGE",
              "REFERENCES"
            ]
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "65b255416ae217bf0e22085be3c1976cea18bd8c"
            },
            {
              "fixed": "8e13025747e1ca72e86d1f35637123f9c306f0cb"
            },
            {
              "fixed": "8ee6aff14054b37b53e47194a2fa313e98163c94"
            },
            {
              "fixed": "ab5ef98af693bded74a738570e81ea70abef2840"
            },
            {
              "fixed": "b01e594fbe754a960212f908d047294e880b52fd"
            },
            {
              "fixed": "ba0aca3bffce431fe2fbd53ca4cd6a717a2e2c19"
            },
            {
              "fixed": "fc829e88753858c8ac669594bf0093f44948c0f4"
            }
          ],
          "repo": "https://github.com/python/cpython",
          "type": "GIT"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "PSF",
    "cwe_ids": [
      "CWE-22"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/3xxx/CVE-2026-3087.json"
  },
  "details": "If `shutil.unpack_archive()` is given a ZIP archive with an absolute Windows path containing a drive (`C:\\\\...`) then the archive will be extracted outside the target directory which is different than other operating systems. Only Windows is affected by this vulnerability.",
  "id": "CVE-2026-3087",
  "modified": "2026-07-08T05:38:17.787852307Z",
  "published": "2026-04-27T20:46:43.201Z",
  "references": [
    {
      "type": "WEB",
      "url": "http://www.openwall.com/lists/oss-security/2026/04/28/9"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/3xxx/CVE-2026-3087.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://mail.python.org/archives/list/security-announce@python.org/thread/X6FXE5C6KDKOVNX3EC3DWD5RUPFWOZA4/"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-3087"
    },
    {
      "type": "REPORT",
      "url": "https://github.com/python/cpython/issues/146581"
    },
    {
      "type": "FIX",
      "url": "https://github.com/python/cpython/commit/65b255416ae217bf0e22085be3c1976cea18bd8c"
    },
    {
      "type": "FIX",
      "url": "https://github.com/python/cpython/commit/8e13025747e1ca72e86d1f35637123f9c306f0cb"
    },
    {
      "type": "FIX",
      "url": "https://github.com/python/cpython/commit/8ee6aff14054b37b53e47194a2fa313e98163c94"
    },
    {
      "type": "FIX",
      "url": "https://github.com/python/cpython/commit/ab5ef98af693bded74a738570e81ea70abef2840"
    },
    {
      "type": "FIX",
      "url": "https://github.com/python/cpython/commit/b01e594fbe754a960212f908d047294e880b52fd"
    },
    {
      "type": "FIX",
      "url": "https://github.com/python/cpython/commit/ba0aca3bffce431fe2fbd53ca4cd6a717a2e2c19"
    },
    {
      "type": "FIX",
      "url": "https://github.com/python/cpython/commit/fc829e88753858c8ac669594bf0093f44948c0f4"
    },
    {
      "type": "FIX",
      "url": "https://github.com/python/cpython/pull/146591"
    },
    {
      "type": "PACKAGE",
      "url": "https://github.com/python/cpython"
    }
  ],
  "schema_version": "1.7.5",
  "severity": [
    {
      "score": "CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N",
      "type": "CVSS_V4"
    }
  ],
  "summary": "shutil.unpack_archive() doesn't check for Windows absolute paths in ZIPs"
}