PatchSiren cyber security CVE debrief
CVE-2026-3087 Python Software Foundation CVE debrief
CVE-2026-3087 is a medium-severity vulnerability affecting Python's shutil.unpack_archive() function. The vulnerability occurs when the function is given a ZIP archive with an absolute Windows path containing a drive (C:). This allows the archive to be extracted outside the target directory, which is different from other operating systems. Only Windows is affected by this vulnerability.
- Vendor
- Python Software Foundation
- Product
- CPython
- CVSS
- MEDIUM 6
- CISA KEV
- Not listed in stored evidence
- Original CVE published
- 2026-04-27
- Original CVE updated
- 2026-08-13
- Advisory published
- 2026-04-27
- Advisory updated
- 2026-08-13
Who should care
Developers and users of Python on Windows systems should be aware of this vulnerability, as it could potentially lead to unintended file extraction outside of the intended directory.
Technical summary
The vulnerability is caused by the shutil.unpack_archive() function not properly handling absolute Windows paths in ZIP archives. This could allow an attacker to craft a malicious archive that extracts files to an unintended location.
Defensive priority
Medium
Recommended defensive actions
- Apply patches from the Python repository (see resourceLinkAnnotations: ref-4, ref-5, ref-6, ref-7, ref-8, ref-9, ref-10)
- Use alternative archive extraction methods that handle absolute paths correctly
- Validate and sanitize archive paths before extraction
Evidence notes
The vulnerability was reported and patched by the Python developers. Multiple patches were applied to fix the issue (see resourceLinkAnnotations: ref-4, ref-5, ref-6, ref-7, ref-8, ref-9, ref-10).
Sources and references
Verified primary and authoritative sources
-
CVE-2026-3087 CVE Program record
Publisher, destination, and source semantics verified
URL: https://www.cve.org/CVERecord?id=CVE-2026-3087
CVE Program - Official CVE Program record with source-provided CVE metadata.
-
CVE-2026-3087 NVD vulnerability detail
Publisher, destination, and source semantics verified
URL: https://nvd.nist.gov/vuln/detail/CVE-2026-3087
NIST National Vulnerability Database - Official NIST NVD detail page and source-specific vulnerability assessment.
Supplemental references
-
Mitigation or vendor reference
Unverified legacy reference
URL: https://github.com/python/cpython/commit/65b255416ae217bf0e22085be3c1976cea18bd8c
[email protected] - Patch
-
Mitigation or vendor reference
Unverified legacy reference
URL: https://github.com/python/cpython/commit/8e13025747e1ca72e86d1f35637123f9c306f0cb
[email protected] - Patch
-
Mitigation or vendor reference
Unverified legacy reference
URL: https://github.com/python/cpython/commit/8ee6aff14054b37b53e47194a2fa313e98163c94
[email protected] - Patch
-
Mitigation or vendor reference
Unverified legacy reference
URL: https://github.com/python/cpython/commit/ab5ef98af693bded74a738570e81ea70abef2840
[email protected] - Patch
-
Mitigation or vendor reference
Unverified legacy reference
URL: https://github.com/python/cpython/commit/b01e594fbe754a960212f908d047294e880b52fd
[email protected] - Patch
-
Mitigation or vendor reference
Unverified legacy reference
URL: https://github.com/python/cpython/commit/ba0aca3bffce431fe2fbd53ca4cd6a717a2e2c19
[email protected] - Patch
-
Mitigation or vendor reference
Unverified legacy reference
URL: https://github.com/python/cpython/commit/fc829e88753858c8ac669594bf0093f44948c0f4
[email protected] - Patch
Methodology and review provenance
AI-assisted synthesis based on stored public vulnerability evidence. System validation, approval state, and publication status do not by themselves establish human review of this revision. PatchSiren helps prioritize defensive review and does not prove exposure or remediation on any system.