CVE-2026-114583
tar filter allows writing outside destination via empty-named symlink
- Severity
- medium CVSS 6.9 (v4.0)
- Affects
- CPython · Python Software Foundation
- Weakness
- CWE-22 Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
- Published
- 22 October 2026 by PSF
- First seen on our lists
- 22 October 2026
tarfile.tar_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() with filter="tar" to write files outside the destination directory, subject to the permissions of the extracting process.
This is the tarfile.tar_filter counterpart of CVE-2026-7774, which covered tarfile.data_filter.
Our coverage
On the lists
- Python 3.15.2, 3.14.10, 3.13.18, 3.12.16 and 3.11.18 are out
- [oss-security] CPython: [CVE-2026-114583] tarfile.tar_filter path traversal bypass allows writing outside the extraction directory