Vulnerability · Published Jun 4, 2026 · Assigned by PSF

CVE-2026-7774tarfile.data_filter path traversal bypass allows writing outside the extraction directory

Medium 6.9

In plain English

A medium-severity path traversal in CPython from Python Software Foundation. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.6% (higher than 49% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 4.0)6.9Medium
Exploit odds (30 days)0.6%top 51.2% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

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

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Alpine:v3.24python33.14.7-r0ALPINE-CVE-2026-7774
Debian:13pypy3no fix listedDEBIAN-CVE-2026-7774
Debian:14pypy38.0.0+dfsg-1DEBIAN-CVE-2026-7774
Debian:13python3.133.13.5-2+deb13u3DEBIAN-CVE-2026-7774
Debian:14python3.143.14.6-1DEBIAN-CVE-2026-7774
Ubuntu:22.04:LTSpypy3no fix listedUBUNTU-CVE-2026-7774
Ubuntu:24.04:LTSpypy3no fix listedUBUNTU-CVE-2026-7774
Ubuntu:25.10pypy3no fix listedUBUNTU-CVE-2026-7774
Ubuntu:26.04:LTSpypy3no fix listedUBUNTU-CVE-2026-7774
Ubuntu:26.10pypy3no fix listedUBUNTU-CVE-2026-7774
Ubuntu:22.04:LTSpython3.103.10.12-1~22.04.16USN-8509-1
Ubuntu:24.04:LTSpython3.123.12.3-1ubuntu0.15USN-8509-1
Ubuntu:24.04:LTSpython3.123.12.3-1ubuntu0.15UBUNTU-CVE-2026-7774
Ubuntu:25.10python3.13no fix listedUBUNTU-CVE-2026-7774
Ubuntu:25.10python3.14no fix listedUBUNTU-CVE-2026-7774
Ubuntu:26.04:LTSpython3.143.14.4-1ubuntu0.1USN-8509-1
Ubuntu:26.04:LTSpython3.143.14.4-1ubuntu0.1UBUNTU-CVE-2026-7774

Affected products (as reported)

VendorProductVersions
Python Software Foundation CPython 0 – before 3.10.213.11.0 – before 3.11.163.12.0 – before 3.12.143.13.0 – before 3.13.143.14.0 – before 3.14.63.15.0a1 – before 3.15.0b2

Weakness: CWE-22 · 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

References