Описание
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.
Пакеты
| Пакет | Статус | Версия исправления | Релиз | Тип |
|---|---|---|---|---|
| python3.15 | fixed | 3.15.1-1 | package | |
| python3.14 | fixed | 3.14.9-1 | package | |
| python3.13 | fixed | 3.13.18-1 | package | |
| python3.13 | no-dsa | trixie | package | |
| python3.11 | removed | package | ||
| jython | unfixed | package | ||
| jython | no-dsa | trixie | package | |
| jython | no-dsa | bookworm | package | |
| pypy3 | unfixed | package | ||
| pypy3 | no-dsa | trixie | package | |
| pypy3 | postponed | bookworm | package |
Примечания
https://github.com/python/cpython/issues/160097
https://github.com/python/cpython/pull/160098
https://github.com/python/cpython/commit/e7e0b3523ad6ba8472873dda594cf4021a16f8b5 (main)
https://github.com/python/cpython/commit/c6ada40177436e4e2533a7b252082b5f0c043477 (v3.15.2)
https://github.com/python/cpython/commit/0901ad4ffb22605f12b705d1c1197f0a01f0ba0b (v3.14.10)
https://github.com/python/cpython/commit/04d8fca7da2cf3ebc0881fec8a53a1330c3b665d (v3.13.18)
https://github.com/python/cpython/pull/160341 (3.13)
https://github.com/python/cpython/pull/160343 (3.11)
EPSS
Связанные уязвимости
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.
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.
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.
tar filter allows writing outside destination via empty-named symlink
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.
EPSS