CVE-2026-137507

torchvision before 0.29.2 Path Traversal via Tar Archive Extraction

High published · updated

7.1
CVSS score out of 10 · NVD (vulncheck.com)

Description

torchvision before 0.29.2 contains a path traversal vulnerability in _extract_tar() that allows attackers to write files outside the extraction directory by supplying crafted tar archives. Attackers controlling archives passed to extract_archive() or download_and_extract_archive() can use .. paths, absolute paths, or symlinks to overwrite Python modules and achieve code execution.

Affected products and versions

Product / packageEcosystem / vendorVersionsFixed inSource
vision pytorch 0 → <0.29.20.29.2 CVE.org

References