tarfile.tar_filter could be bypassed using crafted link entries, including symlinks with empty or...
Affected packages
| Ecosystem | Package | Affected | Fixed |
|---|---|---|---|
| Python Software Foundation | CPython |
< 3.16.0 |
3.16.0 |
Original description The description as published by the source.
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.
Source: Python security-announce NVD GitHub Advisory
References
- PYTHON-SECURITY-ANNOUNCE [Security-announce][CVE-2026-114583] tarfile.tar_filter path traversal bypass allows writing outside the extraction directory
- web cna@python.org
- web cna@python.org
- web cna@python.org
- web nvd.nist.gov
- web mail.python.org
- web github.com