{
  "id": "CVE-2026-3087",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-3087",
  "published_at": "2026-04-27T20:46:43.201Z",
  "title": "shutil.unpack_archive() doesn't check for Windows absolute paths in ZIPs",
  "vendor": "Python Software Foundation",
  "product": "CPython",
  "cvss": {
    "score": 7.5,
    "source": "nvd",
    "vector": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": null,
  "poc_repo_count": 0,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "description": "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.",
  "cwe": "CWE-22",
  "cpes": [
    "cpe:2.3:a:python:python:*:*:*:*:*:*:*:*",
    "cpe:2.3:a:python:python:3.15.0:alpha1:*:*:*:*:*:*",
    "cpe:2.3:a:python:python:3.15.0:alpha2:*:*:*:*:*:*",
    "cpe:2.3:a:python:python:3.15.0:alpha3:*:*:*:*:*:*",
    "cpe:2.3:a:python:python:3.15.0:alpha4:*:*:*:*:*:*",
    "cpe:2.3:a:python:python:3.15.0:alpha5:*:*:*:*:*:*",
    "cpe:2.3:a:python:python:3.15.0:alpha6:*:*:*:*:*:*",
    "cpe:2.3:a:python:python:3.15.0:alpha7:*:*:*:*:*:*",
    "cpe:2.3:a:python:python:3.15.0:alpha8:*:*:*:*:*:*"
  ],
  "cvss_by_source": {
    "cna": 6,
    "nvd": 7.5
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "Python Software Foundation",
        "product": "CPython",
        "ranges": [
          "\u003c 3.10.21",
          "\u003e= 3.11.0, \u003c 3.11.16",
          "\u003e= 3.12.0, \u003c 3.12.14",
          "\u003e= 3.13.0, \u003c 3.13.14",
          "\u003e= 3.14.0a1, \u003c 3.14.5rc1",
          "\u003e= 3.15.0a1, \u003c 3.15.0b1"
        ],
        "fixed_in": [
          "3.10.21",
          "3.11.16",
          "3.12.14",
          "3.13.14",
          "3.14.5rc1",
          "3.15.0b1"
        ]
      }
    ],
    "upgrade": [
      "Upgrade CPython to 3.10.21 or 3.11.16 or 3.12.14 or 3.13.14 or 3.14.5rc1 or 3.15.0b1 or later."
    ],
    "references": [
      {
        "kind": "Patch",
        "url": "https://github.com/python/cpython/pull/146591"
      },
      {
        "kind": "Vendor advisory",
        "url": "https://mail.python.org/archives/list/security-announce@python.org/thread/X6FXE5C6KDKOVNX3EC3DWD5RUPFWOZA4/"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/python/cpython/commit/ab5ef98af693bded74a738570e81ea70abef2840"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/python/cpython/commit/b01e594fbe754a960212f908d047294e880b52fd"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/python/cpython/commit/fc829e88753858c8ac669594bf0093f44948c0f4"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/python/cpython/commit/65b255416ae217bf0e22085be3c1976cea18bd8c"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/python/cpython/commit/8e13025747e1ca72e86d1f35637123f9c306f0cb"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/python/cpython/commit/8ee6aff14054b37b53e47194a2fa313e98163c94"
      }
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
