- Home
- Vulnerabilities
- CVE-2026-137507
CVE-2026-137507
torchvision before 0.29.2 Path Traversal via Tar Archive Extraction
Medium
50/100
Summary
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
Pytorch (1 line(s))
| Product | Versions | Fixed in | Source |
|---|---|---|---|
| vision | before 0.29.2 (excluded) |
— | CNA (vendor or assigner) |
Fix
Not provided by the vendor.
Workaround
No workaround provided.
Check whether you are affected
Exploit reported by sources
These links are tagged “exploit” by the NVD or CVE.org. We have neither verified nor copied them; open with care.
Timeline
- — CVE published (cve)
References
- https://github.com/pytorch/vision/commit/7a7520f83957fe6a0f934fe7035f07b5ef32e8f9patch
- https://github.com/pytorch/vision/commit/b22811118b30f18ef02006fc6215a52140fd689fpatch
- https://github.com/pytorch/vision/issues/9517exploit
- https://github.com/pytorch/vision/releases/tag/v0.29.2release-notes
- https://github.com/pytorch/vision/blob/v0.29.1/torchvision/datasets/utils.py#L209-L213technical-description
- https://www.vulncheck.com/advisories/torchvision-before-0.29.2-path-traversal-via-tar-archive-extractionthird-party-advisory
Data provenance
- Status
- NVD
- Publication date
- NVD
- Description
- CNA (vendor or assigner)
- CVSS score
- NVD
- Weakness (CWE)
- NVD
- CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N(CVSS 3.1, NVD)- Weakness
- CWE-22 · Traversée de chemin / fichiers