CVE-2026-7774
tarfile.data_filter could be bypassed using crafted link entries, including symlinks with empty or directory-like names, to redirect late...
Published: 2026-06-04 · Last updated: 2026-06-10
Severity and scoring
- CWE
- CWE-22
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.
Source: NVD
References
- [NVD]https://nvd.nist.gov/vuln/detail/CVE-2026-7774
- [Other]https://github.com/python/cpython/commit/0478bd83d82b255e0f29f613367a59d261e7eaa2
- [Other]https://github.com/python/cpython/commit/0d28f5e46e151718972dfabd91205444d0037b6d
- [Other]https://github.com/python/cpython/commit/578411982c16f753f4893532510099ef665117da
- [Other]https://github.com/python/cpython/commit/5cf47a248c35c375d610b87b2f72fd1ed454b558
- [Other]https://github.com/python/cpython/commit/74cca9a92fb7d653e404843a56b8bdc7b0afdbbf
- [Other]https://github.com/python/cpython/issues/149486
- [Other]https://github.com/python/cpython/pull/149487
- [Other]https://mail.python.org/archives/list/security-announce@python.org/thread/4FU62L2M6RMMHT2QPGQNPEHHUND7CEX5/
- [Other]http://www.openwall.com/lists/oss-security/2026/06/04/9
Related CVEs
Same CWE
- CVE-2026-48777 — FileBrowser Quantum is a free, self-hosted, web-based file manager
- CVE-2026-8442 — The WP Review Slider Pro plugin for WordPress is vulnerable to Arbitrary File Deletion in versions up to and including 12.6.8 (8.1 HIGH)
- CVE-2026-49766 — Subscriber Arbitrary File Deletion in WP User Manager <= 2.9.16 versions (9.9 CRITICAL)
- CVE-2026-49061 — Unauthenticated Arbitrary File Download in WPC Product Options for WooCommerce <= 3.2.1 versions (7.5 HIGH)
- CVE-2026-40779 — Contributor Arbitrary File Deletion in Link Library <= 7.8.8 versions (7.7 HIGH)