Path Traversal Vulnerability in torchvision by PyTorch
CVE-2026-137507
7.1HIGH
What is CVE-2026-137507?
A vulnerability in torchvision (prior to version 0.29.2) allows attackers to exploit the _extract_tar() function, leading to potential file writing outside of the designated extraction directory. By utilizing specially crafted tar archives, attackers can manipulate the extraction process to inject harmful payloads through relative paths, absolute paths, or symbolic links. This can ultimately result in overwriting critical Python modules, opening the door for unauthorized code execution that can compromise the integrity of the affected system.
Affected Version(s)
vision 0 < 0.29.2
