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.
Metrics
Affected Vendors & Products
References
History
Thu, 04 Jun 2026 16:45:00 +0000
| Type | Values Removed | Values Added |
|---|---|---|
| First Time appeared |
Python
Python cpython |
|
| Vendors & Products |
Python
Python cpython |
Thu, 04 Jun 2026 15:45:00 +0000
| Type | Values Removed | Values Added |
|---|---|---|
| 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. | |
| Title | tarfile.data_filter path traversal bypass allows writing outside the extraction directory | |
| Weaknesses | CWE-22 | |
| References |
| |
| Metrics |
cvssV4_0
|
Status: PUBLISHED
Assigner: PSF
Published:
Updated: 2026-06-04T17:27:34.304Z
Reserved: 2026-05-04T14:47:51.154Z
Link: CVE-2026-7774
No data.
Status : Awaiting Analysis
Published: 2026-06-04T16:16:42.103
Modified: 2026-06-04T16:40:28.363
Link: CVE-2026-7774
No data.
OpenCVE Enrichment
Updated: 2026-06-04T16:30:06Z