torchvision before 0.29.2 contains a path traversal vulnerability in _extract_tar() that allows attackers to write
Source GCVE Database
Not known to be exploited · CVSS 7.1 High : upgrade to 0.29.2 soon.
Data as of 27 Nov 2026, 03:29 UTC
Thin evidence
One scorer or none| CNA (VulnCheck) | CVSS 4.0 | 7.1 |
|---|---|---|
| CNA (VulnCheck) | CVSS 3.1 | 6.5 |
- Patch
- Available – fixed in 0.29.2
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:H/VA:N/SC:N/SI:N/SA:NExploitation evidence
Disclosed: evidence found.
CVE published 26 Nov 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 26 Nov 2026.
What to do
Upgrade vision to 0.29.2.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| pytorchvision | Affected
| Fixed in
|
PyPIvisionpkg:pypi/visionOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
Upgrade torchvision to version 0.29.2 or later where this vulnerability is fixed. No other mitigation or temporary workaround is indicated.
Description
A path traversal vulnerability exists in torchvision versions before 0.29.2 in the _extract_tar() function. This flaw allows attackers to write files outside the intended extraction directory by crafting malicious tar archives. Exploitation can lead to overwriting Python modules and achieving code execution.
References
- nvd.nist.gov/vuln/detail/CVE-2026-137507 (opens in a new tab)
- github.com/pytorch/vision/issues/9517 (opens in a new tab)
- github.com/pytorch/vision/commit/7a7520f83957fe6a0f934fe7035f07b5ef32e8f9 (opens in a new tab)
- github.com/pytorch/vision/commit/b22811118b30f18ef02006fc6215a52140fd689f (opens in a new tab)
- github.com/pytorch/vision/blob/v0.29.1/torchvision/datasets/utils.py (opens in a new tab)
- github.com/pytorch/vision/releases/tag/v0.29.2 (opens in a new tab)
- vulncheck.com/advisories/torchvision-before-0.29.2-path-traversal-via-tar-archive-extraction (opens in a new tab)