PSF-2026-10: tarfile: Skip DIRTYPE normalization during GNU LONGNAME/LONGLINK handling

Published Mar 12, 2026
·
Updated

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

Affected Software

1 affected component
Python Software Foundation tarfile

Event History

Mar 12, 2026
CVE Published
via OSV·05:59 PM
Data Sourced
via OSV·05:59 PM
DescriptionSeverity

Frequently Asked Questions

1

What does an attacker need to exploit this issue?

An attacker needs to supply a crafted tar archive that uses GNU LONGNAME or LONGLINK multi-block handling. Exploitation also requires conditions reflected by the vector: local access, low privileges, high attack complexity, and an additional prerequisite.

2

Who is realistically exposed?

Systems that process untrusted or attacker-controlled tar archives with Python's tarfile module are the relevant exposure point. The documented impact is limited to integrity: the affected archive may be interpreted differently from other tar implementations.

3

How can I tell whether processing was affected?

Review tar archives accepted by the application for GNU LONGNAME or GNU LONGLINK entries and AREGTYPE (\x00) blocks within the relevant multi-block member processing. The provided data does not identify a version range or a direct detection method.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203