Preliminary notice: published right away from the original source data, without editorial write-up. It will shortly be replaced by a written and reviewed version.
Summary
CVE-2026-137507: high-severity vulnerability (CVSS 7.1) in pytorch vision.
What happened
Original description from the source: 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.
Why it matters
High severity, CVSS 7.1.
Affected products and versions
pytorch vision < 0.29.2
| Product | Versions | Fixed in |
|---|---|---|
| pytorch vision | < 0.29.2 | — |
Action recommended by the source
See the official references for the fix or mitigation.
Sources and references
- https://github.com/pytorch/vision/issues/9517 — CVE Program
- https://github.com/pytorch/vision/commit/7a7520f83957fe6a0f934fe7035f07b5ef32e8f9 — CVE Program
- https://github.com/pytorch/vision/commit/b22811118b30f18ef02006fc6215a52140fd689f — CVE Program
- https://github.com/pytorch/vision/releases/tag/v0.29.2 — CVE Program
- https://github.com/pytorch/vision/blob/v0.29.1/torchvision/datasets/utils.py#L209-L213 — CVE Program
- https://www.vulncheck.com/advisories/torchvision-before-0.29.2-path-traversal-via-tar-archive-extraction — CVE Program
Weaknesses (CWE): CWE-22
Relevant change history
Published
Preliminary advisory published.