News · PyTorch (torchvision project) · 2 min read
Event date: · Published:
torchvision patches path-traversal flaw in its dataset tar-extraction helpers
torchvision disclosed CVE-2026-137507, a high-severity path-traversal bug in its tar extraction helpers that could let a crafted archive overwrite Python modules; fixed in torchvision 0.29.2.
PyTorch's torchvision project disclosed CVE-2026-137507, a high-severity path-traversal vulnerability in its dataset tar-extraction helpers, on November 26, 2026, according to a GitHub Security Advisory.
What changed
- CVE-2026-137507 (GHSA-c26x-8h8m-rv92) was published on November 26, 2026.
- The vulnerable function is
_extract_tar, reachable through the publicextract_archive()anddownload_and_extract_archive()helpers. - Attackers can exploit relative paths containing '..', absolute paths, or symlinks embedded in a crafted tar archive.
- The flaw carries a CVSS score of 7.1, rated High severity.
- It is classified under CWE-22 (path traversal).
- The issue is fixed in torchvision 0.29.2.
What it means for AI builders
torchvision's download-and-extract helpers are used across a huge share of AI and ML training pipelines, so a path-traversal bug there is a supply-chain risk for anyone pulling third-party dataset archives. A crafted tar file could write files outside the intended target directory and potentially overwrite Python modules on disk, leading to code execution the next time that module is imported.
Who is exposed
Any pipeline that downloads and extracts untrusted dataset archives using extract_archive() or download_and_extract_archive() is exposed to the flaw. Teams relying on these helpers should upgrade to torchvision 0.29.2 to apply the fix.
Sources
- GHSA-c26x-8h8m-rv92: torchvision path traversal in tar extraction (GitHub Security Advisories, November 26, 2026, official)
Written with AI assistance, strictly from the sources listed above. Before it went live, automated checks verified its dates, sources and every language edition.