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.
History

Thu, 04 Jun 2026 20:30:00 +0000

Type Values Removed Values Added
References

Thu, 04 Jun 2026 18:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


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

{'score': 6.9, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N'}


cve-icon MITRE

Status: PUBLISHED

Assigner: PSF

Published: 2026-06-04T14:21:23.904Z

Updated: 2026-06-04T18:45:41.657Z

Reserved: 2026-05-04T14:47:51.154Z

Link: CVE-2026-7774

cve-icon Vulnrichment

Updated: 2026-06-04T18:45:41.657Z

cve-icon NVD

Status : Awaiting Analysis

Published: 2026-06-04T16:16:42.103

Modified: 2026-06-04T20:16:58.673

Link: CVE-2026-7774

cve-icon Redhat

No data.