CVE Catalog

CVE-2026-11940

HighCVSS 7.8
Published: Updated: Translated: NVD NIST

Exploitation Probability (EPSS)

Elevated risk
0.75%

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

Summary

The tarfile.extractall() function with the 'data' or 'tar' filter can be bypassed by a crafted archive where a hardlink references a symlink stored deeper than the hardlink itself. This allows creating a symlink pointing outside the destination directory, enabling out-of-destination file reads or writes. This is an incomplete fix of CVE-2025-4330.

Risk Assessment

An attacker can supply a malicious tar archive that, when extracted, can overwrite or read files outside the destination directory, potentially leading to system integrity compromise or data leakage.

Recommendation

Upgrade the tarfile library (Python) to the latest version that includes a complete fix for this vulnerability. Also avoid using the 'data' and 'tar' filters with untrusted archives.

Other vulnerabilities in Python tarfile

See all
Original NVD description (English source)

tarfile.extractall() with the 'data' or 'tar' filter could be bypassed by a crafted archive where a hardlink references a symlink stored at a deeper name than the hardlink itself.  The extraction fallback validated the symlink at it's archived location but recreated it at the hardlink's shallower path, letting a relative target the filter judged contained escape the destination directory.  This allowed a malicious tar archive to create a symlink pointing outside the destination, enabling out-of-destination file reads or writes. This was an incomplete fix of CVE-2025-4330.

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