---
id: CVE-2025-13462
title: >-
  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
summary: >-
  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 misinter…
severity: low
cvss: 3.3
cvssVector: 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N'
cwe:
  - CWE-20
  - CWE-74
  - CWE-434
vendor: python
product: python
affected:
  - python < 3.13.13
  - 'python >= 3.14.0, < 3.14.4'
  - python = 3.15.0
patched:
  - python 3.14.4
published: '2026-03-12'
updated: '2026-08-13'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2025-13462'
references:
  - url: >-
      https://github.com/python/cpython/commit/42d754e34c06e57ad6b8e7f92f32af679912d8ab
    label: cna@python.org
  - url: >-
      https://github.com/python/cpython/commit/72dde1016493c52abe857fc4a7bf6c40138b4114
    label: cna@python.org
  - url: >-
      https://github.com/python/cpython/commit/7ad3093d76a748af55bdb1d2e8aad3638163b017
    label: cna@python.org
  - url: >-
      https://github.com/python/cpython/commit/9a23b753552afa28e3a2f4d8863572fc66479406
    label: cna@python.org
  - url: >-
      https://github.com/python/cpython/commit/ae99fe3a33b43e303a05f012815cef60b611a9c7
    label: cna@python.org
  - url: >-
      https://github.com/python/cpython/commit/d10950739a78f54d0718d88fb5a868374603c084
    label: cna@python.org
  - url: 'https://github.com/python/cpython/issues/141707'
    label: cna@python.org
  - url: 'https://github.com/python/cpython/pull/143934'
    label: cna@python.org
  - url: >-
      https://mail.python.org/archives/list/security-announce@python.org/thread/EOMI5I66ZMKQ2INNFT6T7IAIKUGPZYIE/
    label: cna@python.org
tags:
  - nvd
epss: 0.00164
epssPercentile: 0.0497
ingestedAt: '2026-08-13T06:00:56.081Z'
---

## Overview

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

- `python < 3.13.13`
- `python >= 3.14.0, < 3.14.4`
- `python = 3.15.0`

## Remediation

Upgrade past the affected range:

- `python 3.14.4`
