Path Traversal in Python Software Foundation Cpython
CVE-2026-7774
tarfile.data_filter could be bypassed using crafted link entries, including symlinks with empty or directory-like names, to redirect later archive members outside the intended extraction directory. This allowed a malicious tar archive to cause tarfile.extractall() to write files outside the destination directory, subject to the permissions of the extracting process.
Vulnerability class: Path Traversal (Directory Traversal)
Published · last modified .
EPSS exploit prediction
EPSS: 0.008 (54.2th percentile), scored .
Very low probability of exploitation in the next 30 days; routine patching cadence is appropriate. 54th percentile — 54.2% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.
EPSS over last 30 days · oldest: 0.006 · newest: 0.008 · change: +0.002
Affected products
- Python Software Foundation Cpython — versions 3.14.0, 0, 3.13.0
Weakness classification (CWE)
References
- github.com/python/cpython/pull/149487 (patch)
- github.com/python/cpython/issues/149486 (issue-tracking)
- mail.python.org/archives/list/security-announce@python.org/thread/4FU62L2M6RMMH… (vendor-advisory)
- af854a3a-2127-422b-91ae-364da2661108
- github.com/python/cpython/commit/0478bd83d82b255e0f29f613367a59d261e7eaa2 (patch)
- github.com/python/cpython/commit/0d28f5e46e151718972dfabd91205444d0037b6d (patch)
- github.com/python/cpython/commit/578411982c16f753f4893532510099ef665117da (patch)
- github.com/python/cpython/commit/5cf47a248c35c375d610b87b2f72fd1ed454b558 (patch)
- github.com/python/cpython/commit/74cca9a92fb7d653e404843a56b8bdc7b0afdbbf (patch)
- github.com/python/cpython/commit/10a13bee3c24f9c62b602e696334ff2272a40efc (patch)