CVE-2026-137507
TorchVision tar extraction could write beyond the dataset directory
PyTorch · TorchVision dataset archive extraction
First documented disclosure · Review checkpoint
Summary
An untrusted dataset archive could place files outside its extraction directory.
Severity and exploitation evidence
High · 7.1/10 · CVSS 4.0. Severity source.
Exploitation not established: The reviewed public sources establish a disclosed weakness or controlled demonstration, not malicious exploitation against users. No exploit or product was executed in this review.
Technical severity is not a measure of observed attacks or of risk to your deployment. Attempts, demonstrations, and successful compromise retain the qualifications in the source.
How the weakness works
The tar extraction helper used extractall without a data filter on the affected path.
Conditions required
A user or pipeline extracts an attacker-controlled tar archive using the dataset utilities; write impact is bounded by process permissions.
Potential impact
Overwrite of writable files outside the destination, potentially affecting later Python imports or training execution.
Affected versions and configurations
CNA: before 0.29.2. The reviewed 0.29.2 source also retains unfiltered extraction when tarfile.data_filter is unavailable.
Fix and mitigation status
0.29.2 adds filter="data" only when the Python runtime exposes tarfile.data_filter; no universally safe fallback was verified.
Practical next steps
Use a corrected TorchVision version with a supported Python runtime providing data_filter, and do not extract untrusted archives through the unchecked fallback.
Operating lesson
A security fix that depends on a runtime capability must fail closed when that capability is missing.
Evidence and limits
The original issue is June 17; release 0.29.2 is October 28; CNA publication is November 26. The release note’s broad path-traversal fix is qualified by tagged source: its else branch still calls unfiltered extractall. This is static inspection, not an exploit test or claim that every archive path is safe. Severity is attributed to VulnCheck CNA CVSS 4.0.
Sources
- Original TorchVision issue 9517
Primary source ·
- TorchVision 0.29.2 release
Primary source ·
- Tagged tar extraction and conditional fallback
Primary source ·
- CVE Program: issuing CNA identity and scoring
Primary source ·