CVE-2026-7774
tarfile.data_filter could be bypassed using crafted link entries, …
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.
What to do now
- Check your exposureFind out whether the affected software runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- github.com/python/cpython/issues/149486
- github.com/python/cpython/pull/149487
- mail.python.org/archives/list/[email protected]/thread/4FU62L2M6RMMHT2QPGQNPEHH
- www.openwall.com/lists/oss-security/2026/06/04/9
- github.com/python/cpython/commit/0478bd83d82b255e0f29f613367a59d261e7eaa2
- github.com/python/cpython/commit/0d28f5e46e151718972dfabd91205444d0037b6d
- github.com/python/cpython/commit/578411982c16f753f4893532510099ef665117da
- github.com/python/cpython/commit/5cf47a248c35c375d610b87b2f72fd1ed454b558
- nvd.nist.gov/vuln/detail/CVE-2026-7774
- cve.org/CVERecord?id=CVE-2026-7774
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.