ADVISORIES

CVE Program

CNA-CVE-2025-13462

tarfile: Skip DIRTYPE normalization during GNU LONGNAME/LONGLINK handling

Details

The "tarfile" module would still apply normalization of AREGTYPE (\x00) blocks to DIRTYPE, even while processing a multi-block member such as GNUTYPE_LONGNAME or GNUTYPE_LONGLINK. This could result in a crafted tar archive being misinterpreted by the tarfile module compared to other implementations.

Affected packages

EcosystemPackageAffected versions
Pythonpython
All versions before 3.10.21 (fixed in 3.10.21)
From 3.11.0 before 3.11.16 (fixed in 3.11.16)
From 3.12.0 before 3.12.14 (fixed in 3.12.14)
From 3.13.0 before 3.13.13 (fixed in 3.13.13)
From 3.14.0 before 3.14.4 (fixed in 3.14.4)
From 3.15.0a1 before 3.15.0a8 (fixed in 3.15.0a8)

References