CVE-2026-137507
torchvision before 0.29.2 Path Traversal via Tar Archive Extraction
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)
| Artifact | Affected versions | Fixed in |
|---|---|---|
| org.pytorch » torchvision_opspreliminary | < 0.29.2< 7a7520f83957fe6a0f934fe7035f07b5ef32e8f9< b22811118b30f18ef02006fc6215a52140fd689f< f12281517f1b2f6255904639b027c9436f3e5008 | 0.29.2, 7a7520f83957fe6a0f934fe7035f07b5ef32e8f9, b22811118b30f18ef02006fc6215a52140fd689f, f12281517f1b2f6255904639b027c9436f3e5008 |
Blast radius
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.
References
| Advisory | CVE record CVE-2026-137507 | github.com |
| Advisory | pytorch/vision release v0.29.2 | github.com |
| Advisory | NVD CVE-2026-137507 | nvd.nist.gov |
| Advisory | advisories/torchvision-before-0.29.2-path-traversal-via-tar-archive-extraction | vulncheck.com |
| Fix | pytorch/vision commit 7a7520f | github.com |
| Fix | pytorch/vision commit b228111 | github.com |
| Report | pytorch/vision issue #9517 | github.com |
| Article | pytorch/vision utils.py | github.com |
| Package | pytorch/vision | github.com |
