Vulnerability Description
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.
Related Weaknesses (CWE)
References
- https://github.com/python/cpython/commit/0478bd83d82b255e0f29f613367a59d261e7eaa
- https://github.com/python/cpython/commit/0d28f5e46e151718972dfabd91205444d0037b6
- https://github.com/python/cpython/commit/10a13bee3c24f9c62b602e696334ff2272a40ef
- https://github.com/python/cpython/commit/578411982c16f753f4893532510099ef665117d
- https://github.com/python/cpython/commit/5cf47a248c35c375d610b87b2f72fd1ed454b55
- https://github.com/python/cpython/commit/74cca9a92fb7d653e404843a56b8bdc7b0afdbb
- https://github.com/python/cpython/commit/c063191cb7f9170f9565e305f8aa2b79ab2bf60
- https://github.com/python/cpython/issues/149486
- https://github.com/python/cpython/pull/149487
- https://mail.python.org/archives/list/[email protected]/thread/4FU62L
- http://www.openwall.com/lists/oss-security/2026/06/04/9
FAQ
What is CVE-2026-7774?
CVE-2026-7774 is a documented vulnerability. 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. Th...
How severe is CVE-2026-7774?
CVSS scoring is not yet available for CVE-2026-7774. Check NVD for updates.
Is there a patch for CVE-2026-7774?
Check the references section above for vendor advisories and patch information. Review vendor security bulletins for remediation guidance.