MODERATE 6.5

CVE-2026-137507

torchvision before 0.29.2 Path Traversal via Tar Archive Extraction

Preliminary: affected artifacts were inferred from the fix commits of the source repository and have not been reviewed yet. They will be replaced by the reviewed advisory when it is published.

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 Maven artifacts (1)

ArtifactAffected versionsFixed in
org.pytorch » torchvision_opspreliminary
< 0.29.2< 7a7520f83957fe6a0f934fe7035f07b5ef32e8f9< b22811118b30f18ef02006fc6215a52140fd689f< f12281517f1b2f6255904639b027c9436f3e5008
0.29.2, 7a7520f83957fe6a0f934fe7035f07b5ef32e8f9, b22811118b30f18ef02006fc6215a52140fd689f, f12281517f1b2f6255904639b027c9436f3e5008

Blast radius

1affected artifacts
7affected versions
0dependent artifacts (est.)
0dependent versions

Computed from the dependency graph of build 20261126.1706 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.