ADVISORIES

CVE Program

CNA-CVE-2026-82049

tarfile extraction filters allow file modification and content disclosure via hard link to symlink

Details

In CPython 3.13 and earlier, the tarfile module's data and tar extraction filters are vulnerable to crafted archives containing a hard link to a symbolic link. Such archives may cause extraction to modify the permissions or modification time of a file outside the destination directory, or expose the contents of that file within the extracted tree.

Affected packages

EcosystemPackageAffected versions
Pythonpython
All versions before 3.10.22 (fixed in 3.10.22)
From 3.11.0 before 3.11.17 (fixed in 3.11.17)
From 3.12.0 before 3.12.15 (fixed in 3.12.15)
From 3.13.0 before 3.13.16 (fixed in 3.13.16)
From 3.14.0a1 before 3.14.0b1 (fixed in 3.14.0b1)

References