CVE-2026-137507
mediumtorchvision before 0.29.2 contains a path traversal vulnerability in _extract_tar() that allows attackers to write files outside the extraction directory by su…
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.
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N Affected products
Not reported by the source (unknown — not "none").
Weakness classification (CWE)
Source: NVD / CISA. “NVD-CWE-Other” and “NVD-CWE-noinfo” mean NVD could not assign a specific weakness.
Mitigation & advisories
No vendor advisory or patch reference tagged by NVD. Check the references below.
References
- https://github.com/pytorch/vision/blob/v0.29.1/torchvision/datasets/utils.py#L209-L213 disclosure@vulncheck.com
- https://github.com/pytorch/vision/commit/7a7520f83957fe6a0f934fe7035f07b5ef32e8f9 disclosure@vulncheck.com
- https://github.com/pytorch/vision/commit/b22811118b30f18ef02006fc6215a52140fd689f disclosure@vulncheck.com
- https://github.com/pytorch/vision/issues/9517 disclosure@vulncheck.com
- https://github.com/pytorch/vision/releases/tag/v0.29.2 disclosure@vulncheck.com
- https://www.vulncheck.com/advisories/torchvision-before-0.29.2-path-traversal-via-tar-arch... disclosure@vulncheck.com

