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

Published Mar 12, 2026
·
Updated

tarfile: Skip DIRTYPE normalization during GNU LONGNAME/LONGLINK handling

Other sources

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.

MITRE

Affected Software

12 affected componentsFixes available
pypi/tarfile
Python Python<3.13.13
Python Python>=3.14.0<3.14.4
Python Python=3.15.0-alpha1
Python Python=3.15.0-alpha2
Python Python=3.15.0-alpha3
Python Python=3.15.0-alpha4
Python Python=3.15.0-alpha5
Python Python=3.15.0-alpha6
Python Python=3.15.0-alpha7
Microsoft azl3 python3 3.12.9-13<3.12.9-13
3.12.9-13
Microsoft azl3 python3 3.12.9-11<3.12.9-12
3.12.9-12

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 3.12.9-13
  2. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 3.12.9-12

Event History

Mar 12, 2026
CVE Published
via MITRE·05:59 PM
Data Sourced
via MITRE·05:59 PM
Description
Data Sourced
via NVD·06:16 PM
RemedyDescriptionSeverityWeaknessAffected Software
Mar 25, 2026
Data Sourced
via Microsoft·08:05 AM
DescriptionSeverityWeakness
Data Sourced
via Microsoft·08:05 AM
Affected Software
Updated
via Microsoft·08:05 AM
DescriptionSeverity
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2025-13462?

CVE-2025-13462 is considered a moderate severity vulnerability, primarily affecting the tarfile module in Python.

2

How do I fix CVE-2025-13462?

To address CVE-2025-13462, ensure you update the tarfile module to the latest patch version as recommended by Python developers.

3

What software does CVE-2025-13462 affect?

CVE-2025-13462 affects the tarfile module found in Python's standard library.

4

What kind of attacks can CVE-2025-13462 lead to?

CVE-2025-13462 could potentially allow attackers to exploit crafted tar archives, leading to unexpected behavior or security issues.

5

Is CVE-2025-13462 exploitable in all versions of tarfile?

CVE-2025-13462 is specifically exploitable in versions of the tarfile module prior to the release containing the fix.

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