SecurityContext

CVE-2026-3087: Python shutil.unpack_archive - Path Traversal

  • Cve: CVE-2026-3087
  • Name: Python shutil.unpack_archive - Path Traversal
  • 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.
  • Impact: Attackers can extract files outside the intended directory, potentially overwriting critical files and compromising system integrity.
  • Remediation: Update to the latest Python version with the fix for this issue.
  • Vulnerability type: path_traversal
  • Vulnerability impact: file_system_write, data_tampering
  • Requirement type: none
  • Labels source: projectdiscovery
  • Severity: high
  • Cvss score: 7.5
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
  • Epss score: 0.00551
  • Epss percentile: 0.46981
  • Assignee: [email protected]
  • Published at: 2026-04-27T21:16:42Z
  • Age in days: 211
  • Modified at: 2026-10-26T21:10:00Z
  • Patch available: yes
  • Public exploits total: 1
  • References total: 14
  • Products total: 1
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2026-3087
  • Nvd status: modified
  • Checked, none or zero: known exploited entries, nuclei templates, public exploits capped, rejected by nvd
  • Not known: requirements, hackerone

Cwe

IdName
CWE-22Improper Limitation of a Pathname to a Restricted Directory

Public exploits

UrlSourceAdded date
https://github.com/python/cpython/issues/146581nvd2026-04-27

References

Same in every row:

  • Source: nvd
UrlTags
https://github.com/python/cpython/commit/65b255416ae217bf0e22085be3c1976cea18bd8cPatch
https://github.com/python/cpython/commit/8e13025747e1ca72e86d1f35637123f9c306f0cbPatch
https://github.com/python/cpython/commit/8ee6aff14054b37b53e47194a2fa313e98163c94Patch
https://github.com/python/cpython/commit/ab5ef98af693bded74a738570e81ea70abef2840Patch
https://github.com/python/cpython/commit/b01e594fbe754a960212f908d047294e880b52fdPatch
https://github.com/python/cpython/commit/ba0aca3bffce431fe2fbd53ca4cd6a717a2e2c19Patch
https://github.com/python/cpython/commit/fc829e88753858c8ac669594bf0093f44948c0f4Patch
https://github.com/python/cpython/issues/146581Exploit, Issue Tracking, Patch, Vendor Advisory
https://github.com/python/cpython/pull/146591Issue Tracking, Patch
https://mail.python.org/archives/list/[email protected]/thread/X6FXE5C6KDKOVNX3EC3DWD5RUPFWOZA4/Mailing List, Vendor Advisory

Products

ProductAffectedPlatform boundSourcesUrl
python:python= 3.15.0 alpha8, = 3.15.0 alpha7, = 3.15.0 alpha6, = 3.15.0 alpha5, = 3.15.0 alpha4, = 3.15.0 alpha1, = 3.15.0 alpha2, = 3.15.0 alpha3, <= 3.14.4yesnvd/v1/products/python/python

Projects

RepositoryLink kindsIndexedUrl
python/cpythoncommit, fix, issues, pullyes/v1/repositories/python/cpython

Index

  • Checked, none or zero: repositories, repositories high signal, packages

Exploitation

  • Public exploit: yes
  • Public exploit count: 1
  • Public exploit first date: 2026-04-27
  • Remote: yes
  • Exposed hosts: 5115604
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access, authentication required
  • Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, hackerone reports