{"id":"CVE-2026-3087","aliases":["CVE-2026-3087","PSF-2026-22","BIT-LIBPYTHON-2026-3087","BIT-PYTHON-2026-3087","BIT-PYTHON-MIN-2026-3087"],"related":[],"kind":"vulnerability","state":"published","title":"shutil.unpack_archive() doesn't check for Windows absolute paths in ZIPs","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"es","text":"Si a shutil.unpack_archive() se le proporciona un archivo ZIP con una ruta absoluta de Windows que contiene una unidad (C:\\\\...), entonces el archivo se extraerá fuera del directorio de destino, lo cual es diferente a otros sistemas operativos. Solo Windows se ve afectado por esta vulnerabilidad.","source":"nvd"}],"published":"2026-04-27T20:46:43.201Z","modified":"2026-10-26T21:10:00.170Z","severity":{"scorer":"PSF","scheme":"CVSS: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","score":6,"rating":"MEDIUM"},"severities":[{"scorer":"PSF","scheme":"CVSS: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","score":6,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","score":7.5,"rating":"HIGH"},{"scorer":"Bitnami Vulnerability Database","scheme":"rating","rating":"HIGH"}],"cwes":["CWE-22"],"affected":[{"ranges":[{"type":"python","introduced":"0","fixed":"3.10.21","status":"affected"},{"type":"python","introduced":"3.11.0","fixed":"3.11.16","status":"affected"},{"type":"python","introduced":"3.12.0","fixed":"3.12.14","status":"affected"},{"type":"python","introduced":"3.13.0","fixed":"3.13.14","status":"affected"},{"type":"python","introduced":"3.14.0a1","fixed":"3.14.5rc1","status":"affected"},{"type":"python","introduced":"3.15.0a1","fixed":"3.15.0b1","status":"affected"}],"vendor":"Python Software Foundation","product":"CPython","repo":"https://github.com/python/cpython","source":"cvelist"},{"ranges":[{"type":"git","introduced":"0","status":"affected","fixed":"ab5ef98af693bded74a738570e81ea70abef2840"},{"type":"git","status":"affected","fixed":"b01e594fbe754a960212f908d047294e880b52fd"},{"type":"git","status":"affected","fixed":"fc829e88753858c8ac669594bf0093f44948c0f4"},{"type":"git","status":"affected","fixed":"65b255416ae217bf0e22085be3c1976cea18bd8c"},{"type":"git","status":"affected","fixed":"8e13025747e1ca72e86d1f35637123f9c306f0cb"},{"type":"git","status":"affected","fixed":"8ee6aff14054b37b53e47194a2fa313e98163c94"},{"type":"git","status":"affected","fixed":"ba0aca3bffce431fe2fbd53ca4cd6a717a2e2c19"},{"type":"git","status":"affected","fixed":"a6650a2cdf0c49fb8ce0c982903aa2aa274beefe"},{"type":"git","status":"affected","fixed":"7ef7dd0a74f47facd1fadcbc77f8fb03beb5eb4d"},{"type":"git","status":"affected","fixed":"1071290169f85c09cf767c1099564a9426cdc7e8"}],"repo":"https://github.com/python/cpython","source":"psf"},{"ranges":[{"status":"affected","lastAffected":"3.14.4"},{"status":"affected","version":"3.15.0"},{"status":"affected","version":"3.15.0"},{"status":"affected","version":"3.15.0"},{"status":"affected","version":"3.15.0"},{"status":"affected","version":"3.15.0"},{"status":"affected","version":"3.15.0"},{"status":"affected","version":"3.15.0"},{"status":"affected","version":"3.15.0"}],"vendor":"python","product":"python","cpe":"cpe:2.3:a:python:python:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"3.10.21"},{"type":"semver","introduced":"3.11.0","status":"affected","fixed":"3.11.16"},{"type":"semver","introduced":"3.12.0","status":"affected","fixed":"3.12.14"},{"type":"semver","introduced":"3.13.0","status":"affected","fixed":"3.13.14"},{"type":"semver","introduced":"3.14.0","status":"affected","fixed":"3.14.5"}],"ecosystem":"Bitnami","package":"libpython","purl":"pkg:bitnami/libpython","source":"bitnami"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"3.10.21"},{"type":"semver","introduced":"3.11.0","status":"affected","fixed":"3.11.16"},{"type":"semver","introduced":"3.12.0","status":"affected","fixed":"3.12.14"},{"type":"semver","introduced":"3.13.0","status":"affected","fixed":"3.13.14"},{"type":"semver","introduced":"3.14.0","status":"affected","fixed":"3.14.5"}],"ecosystem":"Bitnami","package":"python","purl":"pkg:bitnami/python","source":"bitnami"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"3.10.21"},{"type":"semver","introduced":"3.11.0","status":"affected","fixed":"3.11.16"},{"type":"semver","introduced":"3.12.0","status":"affected","fixed":"3.12.14"},{"type":"semver","introduced":"3.13.0","status":"affected","fixed":"3.13.14"},{"type":"semver","introduced":"3.14.0","status":"affected","fixed":"3.14.5"}],"ecosystem":"Bitnami","package":"python-min","purl":"pkg:bitnami/python-min","source":"bitnami"}],"references":[{"url":"https://github.com/python/cpython/pull/146591","tags":["fix","issue-tracking","patch","web"],"sources":["cvelist","psf","nvd","bitnami"]},{"url":"https://github.com/python/cpython/issues/146581","tags":["advisory","exploit","issue-tracking","patch","report","vendor-advisory"],"sources":["cvelist","psf","nvd","bitnami"]},{"url":"https://mail.python.org/archives/list/security-announce@python.org/thread/X6FXE5C6KDKOVNX3EC3DWD5RUPFWOZA4/","tags":["advisory","mailing-list","vendor-advisory"],"sources":["cvelist","psf","nvd","bitnami"]},{"url":"https://github.com/python/cpython/commit/ab5ef98af693bded74a738570e81ea70abef2840","tags":["fix","patch"],"sources":["cvelist","psf","nvd","bitnami"]},{"url":"https://github.com/python/cpython/commit/b01e594fbe754a960212f908d047294e880b52fd","tags":["fix","patch"],"sources":["cvelist","psf","nvd","bitnami"]},{"url":"https://github.com/python/cpython/commit/fc829e88753858c8ac669594bf0093f44948c0f4","tags":["fix","patch"],"sources":["cvelist","psf","nvd","bitnami"]},{"url":"https://github.com/python/cpython/commit/65b255416ae217bf0e22085be3c1976cea18bd8c","tags":["fix","patch"],"sources":["cvelist","psf","nvd","bitnami"]},{"url":"https://github.com/python/cpython/commit/8e13025747e1ca72e86d1f35637123f9c306f0cb","tags":["fix","patch"],"sources":["cvelist","psf","nvd","bitnami"]},{"url":"https://github.com/python/cpython/commit/8ee6aff14054b37b53e47194a2fa313e98163c94","tags":["fix","patch"],"sources":["cvelist","psf","nvd","bitnami"]},{"url":"https://github.com/python/cpython/commit/ba0aca3bffce431fe2fbd53ca4cd6a717a2e2c19","tags":["fix","patch"],"sources":["cvelist","psf","nvd","bitnami"]},{"url":"https://github.com/python/cpython/commit/a6650a2cdf0c49fb8ce0c982903aa2aa274beefe","tags":["fix","patch","web"],"sources":["cvelist","psf","nvd","bitnami"]},{"url":"https://github.com/python/cpython/commit/7ef7dd0a74f47facd1fadcbc77f8fb03beb5eb4d","tags":["fix","patch","web"],"sources":["cvelist","psf","nvd","bitnami"]},{"url":"https://github.com/python/cpython/commit/1071290169f85c09cf767c1099564a9426cdc7e8","tags":["fix","patch","web"],"sources":["cvelist","psf","nvd","bitnami"]},{"url":"http://www.openwall.com/lists/oss-security/2026/04/28/9","tags":["advisory","mailing-list","third-party-advisory"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-3087","tags":["web"],"sources":["bitnami"]}],"credits":["Serhiy Storchaka (https://github.com/serhiy-storchaka)","Seth Larson (https://github.com/sethmlarson)","GGAutomaton (https://github.com/GGAutomaton)"],"assigner":"PSF","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-04-28T13:38:08.747Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-3087","url":"https://www.cve.org/CVERecord?id=CVE-2026-3087","licence":"CVE Terms of Use","modified":"2026-08-13T00:28:13.615Z"},{"source":"psf","name":"Python Software Foundation","id":"PSF-2026-22","url":"https://osv.dev/vulnerability/PSF-2026-22","licence":"CC-BY-4.0","modified":"2026-08-19T12:26:06.535Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-3087","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-3087","licence":"Public domain","modified":"2026-10-26T21:10:00.170Z"},{"source":"bitnami","name":"Bitnami Vulnerability Database","id":"BIT-LIBPYTHON-2026-3087","url":"https://osv.dev/vulnerability/BIT-LIBPYTHON-2026-3087","licence":"Apache-2.0","modified":"2026-09-10T16:01:42.110Z"},{"source":"bitnami","name":"Bitnami Vulnerability Database","id":"BIT-PYTHON-2026-3087","url":"https://osv.dev/vulnerability/BIT-PYTHON-2026-3087","licence":"Apache-2.0","modified":"2026-09-10T16:01:46.083Z"},{"source":"bitnami","name":"Bitnami Vulnerability Database","id":"BIT-PYTHON-MIN-2026-3087","url":"https://osv.dev/vulnerability/BIT-PYTHON-MIN-2026-3087","licence":"Apache-2.0","modified":"2026-09-10T16:01:45.958Z"}],"updatedAt":"2026-11-25T22:59:19.791Z","epss":{"score":0.00527,"percentile":0.461,"date":"2026-12-01T12:00:22.000Z"}}