1. Home
  2. Vulnerabilities
  3. CVE-2026-137507

CVE-2026-137507

torchvision before 0.29.2 Path Traversal via Tar Archive Extraction

Published 26 Nov 2026 · modified 4 Dec 2026 · Sources: NVD, CNA (vendor or assigner), EPSS (FIRST)

Medium 50/100

Summary

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.

Affected products and versions

Pytorch (1 line(s))
Pytorch
ProductVersionsFixed inSource
vision before 0.29.2 (excluded) — CNA (vendor or assigner)

Fix

Not provided by the vendor.

Workaround

No workaround provided.

Check whether you are affected

Exploit reported by sources

These links are tagged “exploit” by the NVD or CVE.org. We have neither verified nor copied them; open with care.

Timeline

  1. — CVE published (cve)

References

Data provenance

Status
NVD
Publication date
NVD
Description
CNA (vendor or assigner)
CVSS score
NVD
Weakness (CWE)
NVD
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N (CVSS 3.1, NVD)
Weakness
CWE-22 · Traversée de chemin / fichiers

How this data is obtained and calculated