torchvision before 0.29.2 Path Traversal via Tar Archive Extraction
- State
- Published
- Severity
- 7.1 High
- Published
- Nov 26, 2026
- Updated
- Nov 26, 2026
- Reserved
- Nov 26, 2026
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.
| Product | Versions |
|---|---|
| vision pytorch | before 0.29.2 Affected |
| CVSS | Score | How It's Reached | Source |
|---|---|---|---|
| 4.0 | 7.1 High | VulnCheck | |
| 3.1 | 6.5 Medium | VulnCheck |
Weaknesses
- CWE-22 Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
References
- https://github.com/pytorch/vision/issues/9517Issue Tracker
- https://github.com/pytorch/vision/commit/7a7520f83957fe6a0f934fe7035f07b5ef32e8f9Patch
- https://github.com/pytorch/vision/commit/b22811118b30f18ef02006fc6215a52140fd689fPatch
- vision v0.29.2 Release NotesRelease Notes
- https://github.com/pytorch/vision/blob/v0.29.1/torchvision/datasets/utils.py#L209-L213Technical Details
- VulnCheck Advisory: torchvision before 0.29.2 Path Traversal via Tar Archive ExtractionThird-Party Advisory
Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.