Quick answers
- Is CVE-2026-3087 exploited in the wild?
- No. Junglewise Threat Intelligence has no report of CVE-2026-3087 being exploited in the wild.
- How severe is CVE-2026-3087?
- High severity, with a CVSS score of 7.5, published 27 April 2026.
- Which products and versions are affected?
- Python Software Foundation Python up to 3.14.4, 3.15.0a1-3.15.0a8.
- Is there a fix for CVE-2026-3087?
- A patch was published on 2026-04-27: Patches committed to CPython repository Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
- How is CVE-2026-3087 attacked?
- It is attacked over the network, in a software library.
- Am I affected by CVE-2026-3087?
- Check whether anything you run is named in the advisory. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.
Technical details
A path traversal vulnerability (CWE-22) exists in the `shutil.unpack_archive()` function within Python's standard library. When processing ZIP archives on Windows, the function fails to properly sanitize archive members that contain absolute Windows paths (e.g., starting with 'C:\\'). This allows an attacker to bypass the intended `extract_dir` and write files to arbitrary locations on the host filesystem. The root cause was the internal use of a custom extraction loop that did not leverage the built-in sanitization logic of `ZipFile.extractall()`. The fix involves migrating to `ZipFile.extractall()` to ensure proper path validation.
Affected products
- Python Software Foundation Python up to 3.14.4, 3.15.0a1-3.15.0a8
Timeline
- 2026-04-27: disclosed
- 2026-04-27: patched: Patches committed to CPython repository
- 2026-04-27: advisory
References
- 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
- https://github.com/python/cpython/commit/fc829e88753858c8ac669594bf0093f44948c0f4