CVE Catalog

CVE-2026-7774

MediumCVSS 6.9
Published: Updated: Translated: NVD NIST

Exploitation Probability (EPSS)

Low risk
0.60%

46th percentile - higher than 46% of all known CVEs

Summary

The tarfile.data_filter function in Python can be bypassed using crafted symlinks, allowing files to be written outside the target directory during tar extraction. An attacker can place files in arbitrary locations.

Risk Assessment

A malicious tar archive can overwrite critical system or script files, leading to code execution or system integrity compromise.

Recommendation

Update Python to a version containing the fix (e.g., 3.12.x or later). Avoid extracting tar archives from untrusted sources.

Other vulnerabilities in Python

See all
Original NVD description (English source)

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.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS