Skip to content
OpenAdvisories
Medium · 6.5 CVE-2026-137507 EUVD-2026-136873GHSA-c26x-8h8m-rv92

torchvision before 0.29.2 Path Traversal via Tar Archive Extraction

Published Nov 26, 2026 · Updated Dec 1, 2026 · Assigned by VulnCheck

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

VendorProductAffectedFixed
pytorch vision < 0.29.2 0.29.2

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 pytorch-vision No fix yet —
Debian 13 pytorch-vision No fix yet —
Debian 12 pytorch-vision No fix yet —
ReleasePackageFixed inAdvisory
Ubuntu 26.10 pytorch-vision No fix yet —
Ubuntu 22.04 LTS pytorch-vision No fix yet —
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed python-torchvision 0.29.2-1.1 openSUSE-SU-2026:12751-1

Advisories 1

References