{"id":"CVE-2026-3087","aliases":["AZL-85274","BIT-libpython-2026-3087","BIT-python-2026-3087","BIT-python-min-2026-3087","EUVD-2026-25922","GHSA-7r27-jhmm-vmp6","PSF-2026-22","UBUNTU-CVE-2026-3087"],"status":"published","title":"shutil.unpack_archive() doesn't check for Windows absolute paths in ZIPs","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.","severity":{"version":"4.0","score":6,"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","level":"medium","assessor":"cna","from":"cve"},"epss":{"day":"2026-11-09","score":0.00551,"percentile":0.46366,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-22"],"published":"2026-04-27T20:46:43Z","modified":"2026-11-04T02:47:33Z","fixes":[{"ecosystem":"Azure Linux:3","package":"python3","fixed_in":["3.12.9-14"],"sources":["osv"]},{"ecosystem":"Bitnami","package":"libpython","fixed_in":["3.10.21","3.11.16","3.12.14","3.13.14","3.14.5"],"sources":["osv"]},{"ecosystem":"Bitnami","package":"python","fixed_in":["3.10.21","3.11.16","3.12.14","3.13.14","3.14.5"],"sources":["osv"]},{"ecosystem":"Bitnami","package":"python-min","fixed_in":["3.10.21","3.11.16","3.12.14","3.13.14","3.14.5"],"sources":["osv"]}],"affected":[{"source":"osv","ecosystem":"Azure Linux:3","package":"python3","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.12.9-14"}]}]},{"source":"osv","ecosystem":"Bitnami","package":"libpython","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"3.10.21"},{"introduced":"3.11.0"},{"fixed":"3.11.16"},{"introduced":"3.12.0"},{"fixed":"3.12.14"},{"introduced":"3.13.0"},{"fixed":"3.13.14"},{"introduced":"3.14.0"},{"fixed":"3.14.5"}]}]},{"source":"osv","ecosystem":"Bitnami","package":"python","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"3.10.21"},{"introduced":"3.11.0"},{"fixed":"3.11.16"},{"introduced":"3.12.0"},{"fixed":"3.12.14"},{"introduced":"3.13.0"},{"fixed":"3.13.14"},{"introduced":"3.14.0"},{"fixed":"3.14.5"}]}]},{"source":"osv","ecosystem":"Bitnami","package":"python-min","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"3.10.21"},{"introduced":"3.11.0"},{"fixed":"3.11.16"},{"introduced":"3.12.0"},{"fixed":"3.12.14"},{"introduced":"3.13.0"},{"fixed":"3.13.14"},{"introduced":"3.14.0"},{"fixed":"3.14.5"}]}]}],"products":[{"vendor":"python","product":"python"},{"vendor":"python software foundation","product":"cpython"}],"references":[{"url":"https://github.com/python/cpython/pull/146591","tags":["patch","Issue Tracking","Patch","fix","web"]},{"url":"https://github.com/python/cpython/issues/146581","tags":["issue-tracking","Exploit","Issue Tracking","Patch","Vendor Advisory","advisory","report"]},{"url":"https://mail.python.org/archives/list/security-announce@python.org/thread/X6FXE5C6KDKOVNX3EC3DWD5RUPFWOZA4/","tags":["vendor-advisory","Mailing List","Vendor Advisory","advisory"]},{"url":"https://github.com/python/cpython/commit/ab5ef98af693bded74a738570e81ea70abef2840","tags":["patch","Patch","fix"]},{"url":"https://github.com/python/cpython/commit/b01e594fbe754a960212f908d047294e880b52fd","tags":["patch","Patch","fix"]},{"url":"https://github.com/python/cpython/commit/fc829e88753858c8ac669594bf0093f44948c0f4","tags":["patch","Patch","fix"]},{"url":"https://github.com/python/cpython/commit/65b255416ae217bf0e22085be3c1976cea18bd8c","tags":["patch","Patch","fix"]},{"url":"https://github.com/python/cpython/commit/8e13025747e1ca72e86d1f35637123f9c306f0cb","tags":["patch","Patch","fix"]},{"url":"https://github.com/python/cpython/commit/8ee6aff14054b37b53e47194a2fa313e98163c94","tags":["patch","Patch","fix"]},{"url":"https://github.com/python/cpython/commit/ba0aca3bffce431fe2fbd53ca4cd6a717a2e2c19","tags":["patch","Patch","fix"]},{"url":"https://github.com/python/cpython/commit/a6650a2cdf0c49fb8ce0c982903aa2aa274beefe","tags":["patch","web","fix"]},{"url":"https://github.com/python/cpython/commit/7ef7dd0a74f47facd1fadcbc77f8fb03beb5eb4d","tags":["patch","web","fix"]},{"url":"https://github.com/python/cpython/commit/1071290169f85c09cf767c1099564a9426cdc7e8","tags":["patch","web","fix"]},{"url":"http://www.openwall.com/lists/oss-security/2026/04/28/9","tags":["Mailing List","Third Party Advisory","advisory","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-3087","tags":["web","advisory"]},{"url":"https://mail.python.org/archives/list/security-announce@python.org/thread/X6FXE5C6KDKOVNX3EC3DWD5RUPFWOZA4"},{"url":"https://github.com/advisories/GHSA-7r27-jhmm-vmp6"},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/3xxx/CVE-2026-3087.json","tags":["advisory"]},{"url":"https://github.com/python/cpython","tags":["package"]},{"url":"https://ubuntu.com/security/CVE-2026-3087","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-3087","tags":["report"]}],"sources":{"cve":[{"id":"CVE-2026-3087","title":"shutil.unpack_archive() doesn't check for Windows absolute paths in ZIPs","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.","status":"published","published":"2026-04-27T20:46:43.201Z","modified":"2026-08-13T00:28:13.615Z","cvss":[{"version":"4.0","score":6,"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","level":"medium","assessor":"cna"}],"cwes":["CWE-22"],"updated_at":"2026-11-02T13:49:09.229322Z"}],"euvd":[{"id":"EUVD-2026-25922","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.","status":"published","published":"2026-04-27T20:46:43Z","modified":"2026-08-13T00:28:13Z","cvss":[{"version":"4.0","score":6,"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","level":"medium"}],"updated_at":"2026-11-02T18:01:57.213133Z"}],"ghsa":[{"id":"GHSA-7r27-jhmm-vmp6","title":"If `shutil.unpack_archive()` is given a ZIP archive with an absolute Windows path containing a...","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.","status":"published","published":"2026-04-27T21:31:03Z","modified":"2026-08-10T15:33:14Z","cvss":[{"version":"4.0","score":6,"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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","level":"medium"},{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","level":"high"}],"cwes":["CWE-22"],"updated_at":"2026-11-02T15:10:13.54571Z"}],"nvd":[{"id":"CVE-2026-3087","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.","status":"published","published":"2026-04-27T21:16:42.48Z","modified":"2026-10-26T21:10:00.17Z","cvss":[{"version":"4.0","score":6,"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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","level":"medium","assessor":"secondary"},{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","level":"high","assessor":"primary"}],"cwes":["CWE-22"],"updated_at":"2026-11-02T14:12:16.252509Z"}],"osv":[{"id":"CVE-2026-3087","title":"shutil.unpack_archive() doesn't check for Windows absolute paths in ZIPs","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.","status":"published","published":"2026-04-27T20:46:43.201Z","modified":"2026-11-04T02:47:33.560499506Z","cvss":[{"version":"4.0","score":6,"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","level":"medium"}],"cwes":["CWE-22"],"updated_at":"2026-11-04T02:53:45.692342Z"},{"id":"UBUNTU-CVE-2026-3087","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.","status":"withdrawn","published":"2026-04-27T21:16:00Z","modified":"2026-05-28T10:30:05.703042484Z","cvss":[{"version":"4.0","score":6,"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","level":"medium"},{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","level":"high"}],"updated_at":"2026-11-02T16:56:11.640778Z"},{"id":"AZL-85274","title":"CVE-2026-3087 affecting package python3 for versions less than 3.12.9-14","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.","status":"published","published":"2026-04-27T21:16:42Z","modified":"2026-09-08T17:33:11Z","updated_at":"2026-11-02T15:28:10.677811Z"},{"id":"BIT-libpython-2026-3087","title":"shutil.unpack_archive() doesn't check for Windows absolute paths in ZIPs","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.","status":"published","published":"2026-08-19T11:37:44.232Z","modified":"2026-09-10T16:01:42.110692063Z","updated_at":"2026-11-02T15:28:32.162822Z"},{"id":"BIT-python-2026-3087","title":"shutil.unpack_archive() doesn't check for Windows absolute paths in ZIPs","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.","status":"published","published":"2026-08-19T11:42:48.087Z","modified":"2026-09-10T16:01:46.083991508Z","updated_at":"2026-11-02T15:28:34.724063Z"},{"id":"BIT-python-min-2026-3087","title":"shutil.unpack_archive() doesn't check for Windows absolute paths in ZIPs","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.","status":"published","published":"2026-08-19T11:42:48.852Z","modified":"2026-09-10T16:01:45.958248674Z","updated_at":"2026-11-02T15:28:35.111822Z"},{"id":"PSF-2026-22","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.","status":"published","published":"2026-04-27T20:46:43.201Z","modified":"2026-08-19T12:26:06.535882691Z","updated_at":"2026-11-02T15:52:50.667197Z"}]}}
