CVE-2026-3087: Python Software Foundation CPython · Path Traversal
Affects Python Software Foundation CPythonSource CVE Database V5
Not known to be exploited · CVSS 6.0 Medium · fixed in 3.15.0b1 : update Python Software Foundation CPython when convenient.
Data as of 30 Oct 2026, 06:59 UTC
- EPSS
- 0.5% chance of exploitation in 30 days – higher than 46% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Patch
- Available – fixed in 3.15.0b1, 3.14.5rc1, 3.13.14 +3
CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:NExploitation evidence
Disclosed: evidence found.
CVE published 27 Apr 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 29 Oct 2026.
What to do
Upgrade to a fixed release listed under Affected software.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| Python Software FoundationCPython | Affected
| Fixed in
|
| Python Software FoundationCPython | Affected
| Fixed in
|
| Python Software FoundationCPython | Affected
| Fixed in
|
| Python Software FoundationCPython | Affected
| Fixed in
|
| Python Software FoundationCPython | Affected
| Fixed in
|
| Python Software FoundationCPython | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
If you cannot patch yet, users should avoid unpacking untrusted ZIP archives containing absolute Windows paths with drive letters using shutil.unpack_archive() on Windows or implement additional validation to sanitize archive contents before extraction.
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.
References
- github.com/python/cpython/pull/146591 (opens in a new tab)
- github.com/python/cpython/issues/146581 (opens in a new tab)
- mail.python.org/archives/list/security-announce@python.org/thread/X6FXE5C6KDKOVNX3EC3DWD5RUPFWOZA4/ (opens in a new tab)
- github.com/python/cpython/commit/ab5ef98af693bded74a738570e81ea70abef2840 (opens in a new tab)
- github.com/python/cpython/commit/b01e594fbe754a960212f908d047294e880b52fd (opens in a new tab)
- github.com/python/cpython/commit/fc829e88753858c8ac669594bf0093f44948c0f4 (opens in a new tab)
- github.com/python/cpython/commit/65b255416ae217bf0e22085be3c1976cea18bd8c (opens in a new tab)
- github.com/python/cpython/commit/8e13025747e1ca72e86d1f35637123f9c306f0cb (opens in a new tab)
- github.com/python/cpython/commit/8ee6aff14054b37b53e47194a2fa313e98163c94 (opens in a new tab)
- github.com/python/cpython/commit/ba0aca3bffce431fe2fbd53ca4cd6a717a2e2c19 (opens in a new tab)
- openwall.com/lists/oss-security/2026/04/28/9 (opens in a new tab)
- github.com/python/cpython/commit/a6650a2cdf0c49fb8ce0c982903aa2aa274beefe (opens in a new tab)
- github.com/python/cpython/commit/7ef7dd0a74f47facd1fadcbc77f8fb03beb5eb4d (opens in a new tab)
- github.com/python/cpython/commit/1071290169f85c09cf767c1099564a9426cdc7e8 (opens in a new tab)