CVE-2026-137507
published high CVSS 4.0 · 7.1torchvision before 0.29.2 Path Traversal via Tar Archive Extraction
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| pytorch | — | vision0 to < 0.29.2 · Other versions: unaffected | Affected | Not stated | VulnCheck |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 7.1 / 10
- Severity
- high
- Provider
- VulnCheck · cna
- Vector string
- 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
Additional Assessments
| Version | Score | Severity | Provider | Vector | Scenarios |
|---|---|---|---|---|---|
| 3.1 | 6.5 | medium | VulnCheck · cna | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N | — |
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| pytorch | vision | 0 to < 0.29.2 (affected · semver)Default: unaffected | VulnCheck · cna |
Weaknesses
1- CWE-22 Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
References
6- https://github.com/pytorch/vision/blob/v0.29.1/torchvision/datasets/utils.py#L209-L213
- https://github.com/pytorch/vision/commit/7a7520f83957fe6a0f934fe7035f07b5ef32e8f9
- https://github.com/pytorch/vision/commit/b22811118b30f18ef02006fc6215a52140fd689f
- https://github.com/pytorch/vision/issues/9517
- vision v0.29.2 Release Notes https://github.com/pytorch/vision/releases/tag/v0.29.2
- VulnCheck Advisory: torchvision before 0.29.2 Path Traversal via Tar Archive Extraction https://www.vulncheck.com/advisories/torchvision-before-0.29.2-path-traversal-via-tar-archive-extraction
Provider assertions
2VulnCheck · cna
torchvision before 0.29.2 Path Traversal via Tar Archive Extraction
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 4d03bd73154e56323c401b0442f3f76059b06c93cfd27388ee0b4b46cad1b6af
- Ingested
- 01 Dec 2026, 20:52:03 UTC
- Source record
- Official CVE record