// Security Advisory Triage

Python tarfile.tar_filter bypass writes files outside extraction directory

Python security announcements · published 2026-10-23 17:09 UTC
ACTION NEEDED VERIFY_EXPOSURE SECURITY
WHAT CHANGEDCVE-2026-114583 disclosed 22 October 2026. tarfile.tar_filter can be bypassed using crafted symlinks with empty or directory-like names, allowing tarfile.extractall() with filter="tar" to write files outside the destination directory. MEDIUM severity. Counterpart to CVE-2026-7774 which covered tarfile.data_filter.
WHY IT MATTERSAny code using tarfile.extractall() with filter="tar" on untrusted archives can write files outside the intended directory, subject to the extracting process's permissions. This defeats the filter's purpose of preventing path traversal.
WHAT TO DOCheck whether your code calls tarfile.extractall() with filter="tar" on untrusted input. Remediation: see bulletin https://www.cve.org/CVERecord?id=CVE-2026-114583 and https://github.com/python/cpython/pull/160098 for affected versions and patches.
Model-reported confidence 95% (not measured accuracy) Primary source ↗ written by anthropic/claude-sonnet-4.5
Show the reasoning — raw diff, triage verdict, confidence
RAW DIFF
+## [Security-announce][CVE-2026-114583] tarfile.tar_filter path traversal bypass allows writing outside the extraction directory
+https://mail.python.org/archives/list/security-announce@python.org/message/43JOWPRAV5DI3VZ4FUEUAZOHCATXXOCK/
+Thu, 22 Oct 2026 20:35:28 +0000
+
+There is a MEDIUM severity vulnerability affecting CPython.
+
+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.
+
+Please see the linked CVE ID for the latest information on affected
+versions:
+
+* https://www.cve.org/CVERecord?id=CVE-2026-114583
+* https://github.com/python/cpython/pull/160098
HOW IT WAS JUDGED
Triage signals below are model-reported assertions, preserved verbatim; they are not independent arithmetic verification.
triage verdictMATERIAL at 0.92, needed 0.5
triage reasoningPython tarfile path traversal affects extractall() — a common operation in deployment and build pipelines.
signalsaffects Python runtime (CPython) · path traversal vulnerability in tarfile module · allows writing outside extraction directory · affects extractall() with filter parameter · tarfile is in standard library dependency tree · MEDIUM severity with known bypass technique · counterpart to CVE-2026-7774
suppression—
triage modelanthropic/claude-haiku-4.5 ($0.00000)
writer modelanthropic/claude-sonnet-4.5 ($0.00000)