{"schemaVersion":3,"id":"CVE-2026-3087","aliases":["UBUNTU-CVE-2026-3087"],"status":"published","duplicateOf":null,"title":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.","dates":{"published":"2026-04-27T20:46:43.201Z","modified":"2026-08-13T00:28:13.615Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":7.5,"severity":"high","version":"3.1","versionLabel":"v3.1","source":"NVD","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","computed":false,"selection":"backend-summary"},"metrics":[{"version":"4.0","versionLabel":"v4.0","source":"CVE.org","score":6,"severity":"medium","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","exploitability":null,"impact":null,"computed":false},{"version":"4.0","versionLabel":"v4.0","source":"OSV · Ubuntu","score":6,"severity":"medium","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","exploitability":null,"impact":null,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Ubuntu","score":7.5,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","exploitability":10,"impact":6,"computed":true},{"version":"4.0","versionLabel":"v4.0","source":"NVD","score":6,"severity":"medium","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","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":7.5,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.00731,"percentile":0.53502,"severity":"low","asOf":"2026-10-20T00:00:00.000Z","change":{"pp":0.17999999999999994,"baselineDate":"2026-09-20T00:00:00.000Z","baselineScore":0.00551},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.00551,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.00551,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.00551,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.00551,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.00551,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.00551,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00551,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00551,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00551,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00551,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00731,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00731,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00731,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00731,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00731,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00731,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00731,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00731,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00731,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00731,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00731,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00731,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00731,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00731,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00731,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00731,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00731,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00731,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00731,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00731,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00731,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00731,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00731,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00731,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00731,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00731,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00731,"percentile":0.53502}],"last30":[{"date":"2026-09-20T00:00:00.000Z","score":0.00551,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00551,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00551,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00551,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00731,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00731,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00731,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00731,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00731,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00731,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00731,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00731,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00731,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00731,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00731,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00731,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00731,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00731,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00731,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00731,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00731,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00731,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00731,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00731,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00731,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00731,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00731,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00731,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00731,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00731,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00731,"percentile":0.53502}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[{"id":"GITHUB_PYTHON_CPYTHON","name":"Cpython","source":"github","url":"https://github.com/python/cpython/pull/16373","maturity":"poc","reliabilityScore":0.3,"verified":false,"type":null,"platforms":[],"requiresAuth":null,"exploitdb":null,"metasploit":null}],"exploitCount":1,"weaknesses":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')","description":"The product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory.","type":"weakness","status":"Stable","abstraction":"Base","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/22.html"}],"affected":[{"vendor":"ubuntu","product":"python2.7","name":"python2.7","label":"python2.7","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/python2.7","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"python3.10","name":"python3.10","label":"python3.10","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/python3.10","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"python3.11","name":"python3.11","label":"python3.11","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/python3.11","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"python3.12","name":"python3.12","label":"python3.12","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/python3.12","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"python3.13","name":"python3.13","label":"python3.13","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/python3.13","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"python3.14","name":"python3.14","label":"python3.14","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/python3.14","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"python3.4","name":"python3.4","label":"python3.4","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/python3.4","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"python3.5","name":"python3.5","label":"python3.5","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/python3.5","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"python3.6","name":"python3.6","label":"python3.6","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/python3.6","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"python3.7","name":"python3.7","label":"python3.7","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/python3.7","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"python3.8","name":"python3.8","label":"python3.8","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/python3.8","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"python3.9","name":"python3.9","label":"python3.9","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/python3.9","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"python software foundation","product":"cpython","name":"CPython","label":"cpython","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 3.10.21","noFixRecorded":false,"fixedIn":null},{"text":"≥ 3.11.0, < 3.11.16","noFixRecorded":false,"fixedIn":null},{"text":"≥ 3.12.0, < 3.12.14","noFixRecorded":false,"fixedIn":null},{"text":"≥ 3.13.0, < 3.13.14","noFixRecorded":false,"fixedIn":null},{"text":"≥ 3.14.0a1, < 3.14.5rc1","noFixRecorded":false,"fixedIn":null},{"text":"≥ 3.15.0a1, < 3.15.0b1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 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","eol":null,"hubHref":"/vendor/python_software_foundation/cpython"},{"vendor":"python","product":"python","name":"python","label":"python","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≤ 3.14.4","noFixRecorded":false,"fixedIn":null},{"text":"3.15.0:alpha1","noFixRecorded":false,"fixedIn":null},{"text":"3.15.0:alpha2","noFixRecorded":false,"fixedIn":null},{"text":"3.15.0:alpha3","noFixRecorded":false,"fixedIn":null},{"text":"3.15.0:alpha4","noFixRecorded":false,"fixedIn":null},{"text":"3.15.0:alpha5","noFixRecorded":false,"fixedIn":null},{"text":"3.15.0:alpha6","noFixRecorded":false,"fixedIn":null},{"text":"3.15.0:alpha7","noFixRecorded":false,"fixedIn":null},{"text":"3.15.0:alpha8","noFixRecorded":false,"fixedIn":null}],"versionsText":"≤ 3.14.4 | 3.15.0:alpha1 | 3.15.0:alpha2 | 3.15.0:alpha3 | 3.15.0:alpha4 | 3.15.0:alpha5 | 3.15.0:alpha6 | 3.15.0:alpha7 | 3.15.0:alpha8","eol":{"isEol":false,"eolDate":"2031-10-31T00:00:00.000Z","matchMethod":"cpe","cycle":{"name":"3.15","label":"3.15","eolFrom":"2031-10-31T00:00:00.000Z","isLts":false,"isMaintained":true,"latestVersion":"3.15.0"},"product":{"name":"python","label":"Python","category":"lang"}},"hubHref":"/vendor/python/python"}],"affectedCount":14,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/python/cpython/pull/146591","label":"github.com/python/cpython/pull/146591","hostname":"github.com","tags":["Patch","Issue Tracking"]},{"url":"https://github.com/python/cpython/issues/146581","label":"github.com/python/cpython/issues/146581","hostname":"github.com","tags":["Issue Tracking","Exploit","Patch","Vendor Advisory"]},{"url":"https://mail.python.org/archives/list/security-announce@python.org/thread/X6FXE5C6KDKOVNX3EC3DWD5RUPFWOZA4/","label":"mail.python.org/archives/list/security-announce@python.org/thread/X6FXE5C6KDKOVNX3EC3DWD5RUPFWOZA4/","hostname":"mail.python.org","tags":["Vendor Advisory","Mailing List"]},{"url":"https://github.com/python/cpython/commit/ab5ef98af693bded74a738570e81ea70abef2840","label":"github.com/python/cpython/commit/ab5ef98af693bded74a738570e81ea70abef2840","hostname":"github.com","tags":["Patch"]},{"url":"https://github.com/python/cpython/commit/b01e594fbe754a960212f908d047294e880b52fd","label":"github.com/python/cpython/commit/b01e594fbe754a960212f908d047294e880b52fd","hostname":"github.com","tags":["Patch"]},{"url":"https://github.com/python/cpython/commit/fc829e88753858c8ac669594bf0093f44948c0f4","label":"github.com/python/cpython/commit/fc829e88753858c8ac669594bf0093f44948c0f4","hostname":"github.com","tags":["Patch"]},{"url":"https://github.com/python/cpython/commit/65b255416ae217bf0e22085be3c1976cea18bd8c","label":"github.com/python/cpython/commit/65b255416ae217bf0e22085be3c1976cea18bd8c","hostname":"github.com","tags":["Patch"]},{"url":"https://github.com/python/cpython/commit/8e13025747e1ca72e86d1f35637123f9c306f0cb","label":"github.com/python/cpython/commit/8e13025747e1ca72e86d1f35637123f9c306f0cb","hostname":"github.com","tags":["Patch"]},{"url":"https://github.com/python/cpython/commit/8ee6aff14054b37b53e47194a2fa313e98163c94","label":"github.com/python/cpython/commit/8ee6aff14054b37b53e47194a2fa313e98163c94","hostname":"github.com","tags":["Patch"]},{"url":"https://github.com/python/cpython/commit/ba0aca3bffce431fe2fbd53ca4cd6a717a2e2c19","label":"github.com/python/cpython/commit/ba0aca3bffce431fe2fbd53ca4cd6a717a2e2c19","hostname":"github.com","tags":["Patch"]},{"url":"https://github.com/python/cpython/commit/a6650a2cdf0c49fb8ce0c982903aa2aa274beefe","label":"github.com/python/cpython/commit/a6650a2cdf0c49fb8ce0c982903aa2aa274beefe","hostname":"github.com","tags":["Patch"]},{"url":"https://github.com/python/cpython/commit/7ef7dd0a74f47facd1fadcbc77f8fb03beb5eb4d","label":"github.com/python/cpython/commit/7ef7dd0a74f47facd1fadcbc77f8fb03beb5eb4d","hostname":"github.com","tags":["Patch"]},{"url":"https://github.com/python/cpython/commit/1071290169f85c09cf767c1099564a9426cdc7e8","label":"github.com/python/cpython/commit/1071290169f85c09cf767c1099564a9426cdc7e8","hostname":"github.com","tags":["Patch"]},{"url":"http://www.openwall.com/lists/oss-security/2026/04/28/9","label":"www.openwall.com/lists/oss-security/2026/04/28/9","hostname":"www.openwall.com","tags":["Mailing List","Third Party Advisory"]},{"url":"https://ubuntu.com/security/CVE-2026-3087","label":"ubuntu.com/security/CVE-2026-3087","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-3087","label":"www.cve.org/CVERecord?id=CVE-2026-3087","hostname":"www.cve.org","tags":["REPORT"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-3087","label":"nvd.nist.gov/vuln/detail/CVE-2026-3087","hostname":"nvd.nist.gov","tags":["Oval","Advisory"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2026-04-27T20:46:43.201Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2026-08-13T00:28:13.615Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":40,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-21T12:43:49.005Z","stale":false,"partial":false}}