CVE-2026-137507 PUBLISHED

torchvision before 0.29.2 Path Traversal via Tar Archive Extraction

Assigner: VulnCheck
Reserved: 26.11.2026 Published: 26.11.2026 Updated: 26.11.2026

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.

Metrics

CVSS Vector: 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
CVSS Score: 7.1

Product Status

Vendor pytorch
Product vision
Versions Default: unaffected
  • affected from 0 to 0.29.2 (excl.)

Credits

  • Yeonghyeon Choi finder
  • Duyeong Kim finder

References

Problem Types

  • Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') CWE