CVE-2026-7774

published 4 Jun 2026 · updated 13 Aug 2026

tarfile.data_filter path traversal bypass allows writing outside the extraction directory

6.9MediumCVSS 6.9EPSS 1%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 1%. Fixed in 3.10.21, 3.11.16, 3.12.14 and 3 more.

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.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
Python Software Foundation<3.10.21, >=3.11.0 <3.11.16, >=3.12.0 <3.12.14, >=3.13.0 <3.13.14, >=3.14.0 <3.14.6, >=3.15.0a1 <3.15.0b23.10.21, 3.11.16, 3.12.14, 3.13.14, 3.14.6, 3.15.0b2

Timeline

Every event on this vulnerability

Embed

A live severity badge for an advisory, README or ticket

CVE-2026-7774 severity on Zeptric[![CVE-2026-7774](https://zeptric.io/badge/cve/CVE-2026-7774.svg)](https://zeptric.io/cve/CVE-2026-7774)