What’s Vulnerable › Vulnerabilities

CVE-2025-13462: tarfile: Skip DIRTYPE normalization during GNU LONGNAME/LONGLINK handling

Description

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 products

How to fix

Upgrade to a fixed version: Python 3.13.13, 3.14.4. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2025-13462 or the next vulnerability affects your stack