CVE-2026-7774

Medium

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.

SeverityMedium
CVSS6.9
Exploit probability—
ProductCPython
PublishedJun 4, 2026
First seenJun 4, 2026

How to fix

Affected products

ProductAffected versionsFixed in
Python Software Foundation CPythonv < 3.10.21, 3.11.0 ≤ v < 3.11.16, 3.12.0 ≤ v < 3.12.14, 3.13.0 ≤ v < 3.13.14, 3.14.0 ≤ v < 3.14.6, 3.15.0a1 ≤ v < 3.15.0b23.10.21, 3.11.16, 3.12.14, 3.13.14, 3.14.6, 3.15.0b2

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.