{"id":"CVE-2026-3087","published":"2026-04-27T20:46:43Z","modified":"2026-08-13T00:28:13Z","title":"shutil.unpack_archive() doesn't check for Windows absolute paths in ZIPs","vendor":"Python Software Foundation","product":"CPython","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":6,"severity":"MEDIUM","version":"4.0","vector":"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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00551,"percentile":0.46998,"provenance":"source"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"references":[{"url":"https://github.com/python/cpython/pull/146591","tags":["patch"]},{"url":"https://github.com/python/cpython/issues/146581","tags":["issue-tracking"]},{"url":"https://mail.python.org/archives/list/security-announce@python.org/thread/X6FXE5C6KDKOVNX3EC3DWD5RUPFWOZA4/","tags":["vendor-advisory"]},{"url":"https://github.com/python/cpython/commit/ab5ef98af693bded74a738570e81ea70abef2840","tags":["patch"]},{"url":"https://github.com/python/cpython/commit/b01e594fbe754a960212f908d047294e880b52fd","tags":["patch"]},{"url":"https://github.com/python/cpython/commit/fc829e88753858c8ac669594bf0093f44948c0f4","tags":["patch"]},{"url":"https://github.com/python/cpython/commit/65b255416ae217bf0e22085be3c1976cea18bd8c","tags":["patch"]},{"url":"https://github.com/python/cpython/commit/8e13025747e1ca72e86d1f35637123f9c306f0cb","tags":["patch"]},{"url":"https://github.com/python/cpython/commit/8ee6aff14054b37b53e47194a2fa313e98163c94","tags":["patch"]},{"url":"https://github.com/python/cpython/commit/ba0aca3bffce431fe2fbd53ca4cd6a717a2e2c19","tags":["patch"]},{"url":"https://github.com/python/cpython/commit/a6650a2cdf0c49fb8ce0c982903aa2aa274beefe","tags":["patch"]},{"url":"https://github.com/python/cpython/commit/7ef7dd0a74f47facd1fadcbc77f8fb03beb5eb4d","tags":["patch"]},{"url":"https://github.com/python/cpython/commit/1071290169f85c09cf767c1099564a9426cdc7e8","tags":["patch"]},{"url":"http://www.openwall.com/lists/oss-security/2026/04/28/9","tags":[]}],"priority":{"score":13.6,"factors":[{"name":"EPSS percentile","points":9.4},{"name":"CVSS severity","points":4.2}]},"vendorSlug":"python-software-foundation","affectedVersions":[{"vendor":"Python Software Foundation","product":"CPython","versions":["< 3.10.21",">= 3.11.0, < 3.11.16",">= 3.12.0, < 3.12.14",">= 3.13.0, < 3.13.14",">= 3.14.0a1, < 3.14.5rc1",">= 3.15.0a1, < 3.15.0b1"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-04-28T13:38:08.747185Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2026-25922","exploited":false,"provenance":"source"}}