CVE-2026-3087
Python path traversal
- Published27 Apr 2026
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.
CVSS 3.1 breakdown
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:NAffected products
Remediation
No fixed version is recorded in the NVD data. Check the vendor advisory for the latest guidance.
- https://github.com/python/cpython/commit/65b255416ae217bf0e22085be3c1976cea18bd8c
- https://github.com/python/cpython/commit/8e13025747e1ca72e86d1f35637123f9c306f0cb
- https://github.com/python/cpython/commit/8ee6aff14054b37b53e47194a2fa313e98163c94
- https://github.com/python/cpython/commit/ab5ef98af693bded74a738570e81ea70abef2840
- https://github.com/python/cpython/commit/b01e594fbe754a960212f908d047294e880b52fd
- https://github.com/python/cpython/commit/ba0aca3bffce431fe2fbd53ca4cd6a717a2e2c19
References
- https://github.com/python/cpython/commit/1071290169f85c09cf767c1099564a9426cdc7e8
- https://github.com/python/cpython/commit/65b255416ae217bf0e22085be3c1976cea18bd8c
- https://github.com/python/cpython/commit/7ef7dd0a74f47facd1fadcbc77f8fb03beb5eb4d
- https://github.com/python/cpython/commit/8e13025747e1ca72e86d1f35637123f9c306f0cb
- https://github.com/python/cpython/commit/8ee6aff14054b37b53e47194a2fa313e98163c94
- https://github.com/python/cpython/commit/a6650a2cdf0c49fb8ce0c982903aa2aa274beefe
- https://github.com/python/cpython/commit/ab5ef98af693bded74a738570e81ea70abef2840
- https://github.com/python/cpython/commit/b01e594fbe754a960212f908d047294e880b52fd
- https://github.com/python/cpython/commit/ba0aca3bffce431fe2fbd53ca4cd6a717a2e2c19
- https://github.com/python/cpython/commit/fc829e88753858c8ac669594bf0093f44948c0f4
and 4 more references
Related CVEs
Recent high-severity vulnerabilities sharing a weakness type.
Frequently asked
Is CVE-2026-3087 being actively exploited?
CVE-2026-3087 is not in the CISA KEV catalog. A public exploit reference exists, so treat it as exploitable. Its EPSS exploit probability is 0.73%.
How severe is CVE-2026-3087?
CVE-2026-3087 has a CVSS 3.1 base score of 7.5, rated high. EPSS estimates a 0.73% probability of exploitation.
Which products are affected by CVE-2026-3087?
Affected products include Python.
How do I fix CVE-2026-3087?
Apply the vendor's patch or advisory guidance, then verify no affected versions remain across your devices.
How Secuno handles this
Secuno correlates vulnerabilities like CVE-2026-3087 against the real software inventory on every managed device, every day. Rather than a static severity, each match is scored in context: exploit availability, EPSS, the asset's exposure, and business criticality decide where it lands in the queue. If an affected version is present anywhere across your portfolio, it surfaces automatically with a prioritised remediation path.
Data from the NVD, CISA KEV catalog and FIRST EPSS. CVSS 3.1 base score shown where available.