CVE-2026-137507 - torchvision before 0.29.2 Path Traversal via Tar Archive Extraction

Vulnerability · Reported by NVD · · CWE-22

Severity
High Risk score 71/100
CVSS
7.1 v4.0 · from NVD
Exploit chance (EPSS)
0.68% Higher than 47% of CVEs
Known exploited
No Not in CISA KEV

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.

How this vulnerability can be exploited

This is a path traversal flaw (CWE-22). An attacker can exploit this vulnerability remotely over the network, without any login. Attack complexity is low, so no special conditions are needed.

Is it being exploited?

The EPSS model estimates a 0.68% chance this CVE will be exploited in the next 30 days, which is low and higher than 47% of all published CVEs.

Patch priority and what to do

Patch as soon as possible, ideally within days. It is remotely reachable or critical severity, so exposure to the internet greatly increases risk. 1) Check whether you run the affected product and version. 2) Apply the vendor update or patch listed in the advisory. 3) Until patched, restrict network access to the service (firewall, VPN, WAF rules). 4) Review logs for signs of exploitation since the publication date.

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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S

See what each part means in the official CVSS calculator ↗

Tags

CVE-2026-137507

Sources & references

How this data is collected: methodology & sources.

Run this software? Get free alerts for new vulnerabilities →

Need to block attackers? Free hourly IOC blocklists (IPs, domains, URLs, hashes) →

Open the live threat dashboard →

Subscribe via RSS.