{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2026-3087","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.","descriptionLong":"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.","published":"2026-04-27T20:46:43.201Z","updated":"2026-11-10T10:47:36.663446707Z","reserved":"2026-02-23T23:14:46.433Z","status":"Modified","rejected":false,"assigner":"PSF","metric":{"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","rating":"medium","source":"PSF"},"metrics":[{"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","rating":"medium","source":"PSF"},{"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","rating":"medium","source":"python.org"},{"version":"4.0","score":null,"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","rating":"unrated","source":"OSV"},{"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","rating":"high","source":"NVD"}],"rating":"medium","products":["Python Software Foundation CPython"],"affectedProducts":[{"vendor":"Python Software Foundation","product":"CPython","defaultStatus":"unaffected","versions":[{"version":"0","lessThan":"3.10.21","status":"affected","versionType":"python"},{"version":"3.11.0","lessThan":"3.11.16","status":"affected","versionType":"python"},{"version":"3.12.0","lessThan":"3.12.14","status":"affected","versionType":"python"},{"version":"3.13.0","lessThan":"3.13.14","status":"affected","versionType":"python"},{"version":"3.14.0a1","lessThan":"3.14.5rc1","status":"affected","versionType":"python"},{"version":"3.15.0a1","lessThan":"3.15.0b1","status":"affected","versionType":"python"}],"platforms":[]}],"packages":[],"cwes":["CWE-22"],"aliases":["BIT-libpython-2026-3087","BIT-python-2026-3087","BIT-python-min-2026-3087","PSF-2026-22"],"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","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","fix"]},{"url":"https://github.com/python/cpython/commit/7ef7dd0a74f47facd1fadcbc77f8fb03beb5eb4d","tags":["patch","fix"]},{"url":"https://github.com/python/cpython/commit/1071290169f85c09cf767c1099564a9426cdc7e8","tags":["patch","fix"]},{"url":"http://www.openwall.com/lists/oss-security/2026/04/28/9","tags":["Mailing List","Third Party Advisory","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/3xxx/CVE-2026-3087.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-3087","tags":["advisory"]},{"url":"https://github.com/python/cpython","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":true,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial"},"epss":0.00551,"epssPercentile":0.46868,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2026-3087","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-3087","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2026-3087","ok":true,"note":"0 packages"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2026-3087","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":["python"],"critical":[],"attention":null}