CVE-2026-137507
torchvision before 0.29.2 Path Traversal via Tar Archive Extraction
High · 7.1Fix available
- CVSS
- 7.1
- EPSS
- 0.69% (p48)
- Published
- 2026-11-26
- Age
- 2d old
- Modified
- 2026-11-26
- Product
- pytorch vision
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N
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.
Fixed in
0.29.2
Affected packages
| Ecosystem | Package | Range | Fixed |
|---|---|---|---|
| vendor | vision | >=0, <0.29.2 | 0.29.2 |
Sources
- NVD · first seen 2d ago · NVD terms of use
- OSV · first seen 2d ago · CC-BY 4.0
- CVE List · first seen 2d ago · CVE Terms of Use
References
- https://github.com/pytorch/vision/issues/9517 issue-tracking
- https://github.com/pytorch/vision/commit/7a7520f83957fe6a0f934fe7035f07b5ef32e8f9 patch
- https://github.com/pytorch/vision/commit/b22811118b30f18ef02006fc6215a52140fd689f patch
- https://github.com/pytorch/vision/releases/tag/v0.29.2 release-notes
- https://github.com/pytorch/vision/blob/v0.29.1/torchvision/datasets/utils.py#L209-L213 technical-description
- https://www.vulncheck.com/advisories/torchvision-before-0.29.2-path-traversal-via-tar-archive-extraction third-party-advisory
- https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/137xxx/CVE-2026-137507.json advisory
- https://github.com/pytorch/vision package
- https://nvd.nist.gov/vuln/detail/CVE-2026-137507 advisory