CVE-2026-137507
Received Received - Intake

Path Traversal in Torchvision Prior to 0.29.2

Vulnerability report for CVE-2026-137507, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-11-26

Last updated on: 2026-11-26

Assigner: VulnCheck

Description

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 Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-11-26
Last Modified
2026-11-26
Generated
2026-11-26
AI Q&A
2026-11-26
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

Showing 1 associated CPE
Vendor Product Version / Range
pytorch vision From 0 (inc) to 0.29.2 (exc)

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-22 The product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This vulnerability is a path traversal issue in torchvision versions before 0.29.2. It exists in the _extract_tar() function where attackers can supply malicious tar archives to write files outside the intended extraction directory. By using relative paths with .., absolute paths, or symlinks, attackers can overwrite Python modules and potentially execute arbitrary code.

Impact Analysis

If you use torchvision before 0.29.2 and process untrusted tar archives, attackers could overwrite critical files on your system. This may lead to arbitrary code execution, allowing attackers to take control of your system or steal sensitive data. It primarily affects applications that download and extract archives automatically.

Mitigation Strategies

Upgrade torchvision to version 0.29.2 or later to address the path traversal vulnerability in _extract_tar().

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-137507. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart

Security Radar

News mentioning this vulnerability
Loading related security news...