CVE-2025-13462: tarfile: Skip DIRTYPE normalization during GNU LONGNAME/LONGLINK handling
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.
Security readout for executives and security teams
Plain-English summary
This is a low-severity CPython tarfile parsing issue. A crafted tar archive can be read differently by Python than by other tar tools because special GNU long name/link records were normalized incorrectly. The source bundle shows limited integrity impact, not remote code execution or data theft.
Executive priority
Treat as routine patch management unless your business accepts untrusted tar uploads or uses Python tarfile in build, deployment, or ingestion pipelines. Prioritize inventory and planned runtime updates over emergency response.
Technical view
During GNU LONGNAME/LONGLINK handling, tarfile could normalize AREGTYPE zero blocks to DIRTYPE inside a multi-block member. That parser inconsistency may cause crafted archives to be misinterpreted relative to other implementations. The CVSS vector indicates local attack vector, high complexity, low privileges, no user interaction, and low integrity impact only.
Likely exposure
Exposure is mainly Python applications or automation that parse tar archives with CPython tarfile, especially user-supplied archives. The bundle identifies Python Software Foundation CPython versions 3.14.0 and 3.15.0a1, with default status otherwise unaffected.
Exploitation context
The bundle does not cite active exploitation, and KEV is false. Any practical abuse appears constrained by local attack vector, high complexity, required attack conditions, and low integrity impact. Evidence is incomplete on real-world exploitation or downstream package impact.
Researcher notes
The key issue is parser differential behavior during GNU long name/link member processing, not a published extraction primitive in the supplied evidence. Focus validation on CPython tarfile behavior, affected versions, and whether application security decisions rely on consistent tar interpretation.
Mitigation direction
Check the Python security announcement and CPython issue for vendor guidance.
Move affected CPython runtimes to a vendor-fixed release when available.
Apply the referenced CPython patches if maintaining a source-built runtime.
Avoid processing untrusted tar archives with affected runtimes where practical.
Use stricter archive validation around workflows that ingest user-controlled tar files.
Validation and detection
Inventory CPython versions used by services, CI jobs, and archive-processing tooling.
Identify code paths using the Python tarfile module on untrusted archives.
Confirm affected runtimes include the relevant CPython patch commits or fixed release.
Review archive ingestion workflows for trust boundaries and post-extraction assumptions.
Track the PSF advisory for precise affected and fixed version details.
Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.
Potential ATT&CK relevance
Conservative CVE-to-ATT&CK context
These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.
ATT&CK lookup starting points
Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.
cwe · low confidence lookup
CWE-20: Exact CWE lookup
Use the exact CWE identifier as the starting point before reviewing related ATT&CK behavior. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.
CWE-434: File access and web shell behavior lookup
File traversal and upload weaknesses can lead teams to review file, web shell, execution, and collection telemetry. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.
Use the exact CWE identifier as the starting point before reviewing related ATT&CK behavior. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.
These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.
We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.