CVE-2025-13462
tarfile: Skip DIRTYPE normalization during GNU LONGNAME/LONGLINK handling
Reported by psf · Published March 12, 2026
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| python-test | Amazon Linux | 2.7.18-1.amzn2.0.18 |
| python-min | Bitnami | 3.15.0 |
| python3.14-idle | Amazon Linux | 3.14.5-1.amzn2023.0.1 |
| python-3.10 | Wolfi | 3.10.21-r6 |
| python3 | Amazon Linux | 3.9.25-1.amzn2023.0.7, 3.7.16-1.amzn2.0.25 |
| python3.14-freethreading-debug | Amazon Linux | 3.14.5-1.amzn2023.0.1 |
| python3.14-debug | Amazon Linux | 3.14.5-1.amzn2023.0.1 |
| python3.11 | Amazon Linux | 3.11.15-1.amzn2023.0.3 |
| python-3.11 | Chainguard | 3.11.15-r9 |
| python3-test | Amazon Linux | 3.9.25-1.amzn2023.0.7, 3.7.16-1.amzn2.0.25 |
| python3-devel | Amazon Linux | 3.9.25-1.amzn2023.0.7, 3.7.16-1.amzn2.0.25 |
| python3.13-test | Amazon Linux | 3.13.14-1.amzn2023.0.2 |
68 more packages have a fixed version. See every fix in Lookup.
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Python Software Foundation | CPython | 0, 3.11.0, 3.12.0 |
| Python Software Foundation | CPython | 0, 3.11.0, 3.12.0 |
Timeline
- Mar 12, 2026 CVE Published
- Mar 12, 2026 PoC Published (4 in total, the first dated here)
- Mar 13, 2026 EPSS Score (30 in total, the first dated here)
- Apr 14, 2026 Security Advisory (9 in total, the first dated here)
- Jun 23, 2026 Coalition ESS Score
- Aug 11, 2026 Distribution Patch (4 in total, the first dated here)
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2025-13462
vulnetix vdb fixes CVE-2025-13462
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2025-13462/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart