Skip to main content

torchvision EUVDEUVD-2026-136873

| CVE-2026-137507 HIGH
Path Traversal (CWE-22)
2026-11-26 disclosure@vulncheck.com
7.1
CVSS 4.0 · Vendor: vulncheck
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Host malicious tar archive
  2. Delivery
    Victim calls extract_archive/download_and_extract_archive
  3. Exploit
    Tar member escapes via ../ or symlink
  4. Execution
    Overwrite Python module on disk
  5. Impact
    Code execution on next import

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V5 - File Handling Path canonicalization, traversal prevention
MITRE ATT&CK

2 techniques across 2 tactics: Discovery, Collection

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires that an attacker-controlled tar archive be passed to torchvision's extract_archive() or download_and_extract_archive() in a version before 0.29.2; the archive must contain members using '..' paths, absolute paths, or symlinks pointing outside the extraction directory, and code execution additionally requires overwriting a Python module that the victim process subsequently imports. Limiting factors: the victim must take action to extract an attacker-supplied/attacker-hosted archive (CVSS UI:P), so this is not a direct unauthenticated server exploit; the attacker must control the archive content or its download source; and per the fix commit the protective tarfile data filter only exists on Python 3.11.4+ (PEP 706), so the relevant trigger surface and the fix's effectiveness are tied to the Python runtime version.

Impact

The input CVSS 4.0 vector (7.1, High) shows AV:N, AC:L, PR:N but UI:P - unauthenticated and network-reachable, yet gated on the victim actively extracting an attacker-controlled archive, so this is not a drive-by remote exploit. The vuln.today Decision label is this_week (not act_now/emergency), and the input provides no CISA KEV listing and no EPSS score, so there is no evidence of active or at-scale exploitation. The realistic risk profile is supply-chain / malicious-dataset: an attacker who controls a tar archive (a poisoned dataset, a compromised download URL, or a MITM position on download_and_extract_archive) can overwrite Python modules and reach code execution. The official vector rates only integrity (VI:H), but the description explicitly states code execution is achievable via module overwrite, so the practical impact is higher than the raw score implies. Important nuance from the fix commit: the patch only applies tarfile's data filter when Python's tarfile.data_filter exists (Python 3.11.4+, PEP 706); on older Python the patched code still calls extractall without a filter, so completeness of the fix depends on the Python runtime. Priority is genuine but moderate - driven by the required user interaction and attacker control of the archive source rather than by confirmed widespread exploitation.

Exploit ScenarioDerived

An attacker publishes a malicious dataset tar archive (or controls/MITMs a URL a victim fetches) and the victim's ML pipeline calls torchvision's extract_archive() or download_and_extract_archive(). A tar member using a '..' or absolute path, or a symlink, escapes the extraction directory and overwrites a Python module that the pipeline later imports, yielding code execution in the process context. The fix commit includes a reproduction test demonstrating the '../outside.txt' traversal, but no weaponized exploit is referenced in the input.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.7% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Nov 26, 2026

torchvision before 0.29.2 extracts tar archives without validating member paths, so a crafted archive containing '../' entries, absolute paths, or symlinks that point outside the destination can write files anywhere the extracting process has permissions - including over Python modules that the process later imports, which turns the write primitive into code execution. The trigger is not remote on its own: exploitation requires the victim to pass an attacker-controlled archive (or an attacker-hosted download) to extract_archive() or download_and_extract_archive(), which is why the CVSS 4.0 vector scores 7.1 with UI:P rather than as a drive-by network exploit. Fixes are published in the 0.29.2 release; no public exploit code has been identified at time of analysis and the CVE is not in CISA KEV.

RemediationAI

Upgrade torchvision to the fixed 0.29.2 release (https://github.com/pytorch/vision/releases/tag/v0.29.2), which contains commits 7a7520f83957fe6a0f934fe7035f07b5ef32e8f9 and b22811118b30f18ef02006fc6215a52140fd689f; track exposure and status via https://github.com/pytorch/vision/issues/9517. Because the shipped guard is applied only when tarfile.data_filter exists (PEP 706, Python 3.11.4+), run the upgraded package on Python 3.11.4 or later so the filter is actually enforced - the trade-off is that the filter rejects unusual but legitimate archives, such as members with absolute paths or links resolving outside the destination, so dataset archives that previously extracted silently may now raise tarfile.OutsideDestinationError. Where the interpreter cannot be upgraded, do not pass untrusted archives to extract_archive() or download_and_extract_archive(): pre-validate members (reject names containing '..', absolute paths, and link targets resolving outside the destination) or extract with tarfile.extractall(..., filter='data') in your own wrapper, at the cost of maintaining that validation yourself. Additional compensating measures consistent with the described attack chain: extract into a temporary directory outside any sys.path entry and move only expected files into place, pin and checksum-verify dataset downloads so an attacker cannot substitute archive contents, and keep site-packages unwritable by the account performing extraction. The vendor's complete fix is the 0.29.2 upgrade on a filtered Python runtime; the other measures reduce but do not eliminate exposure.

Affected VersionsENISA

vision 0 <0.29.2

Affected Packages

euvd vision fix: 0.29.2

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The flaw is a CWE-22 path traversal inside torchvision.datasets.utils._extract_tar(), the helper reached through extract_archive() and download_and_extract_archive() - the routines datasets use to unpack downloaded corpus files. The vulnerable code called tar.extractall(to_path) directly, and Python's tarfile module does not reject members whose names escape the destination unless an extraction filter is requested. The supplied commit 7a7520f adds exactly that filter (tar.extractall(to_path, filter='data')), which rejects absolute paths, '..' members and links resolving outside the target, and adds a regression test that plants '../outside.txt' and 'sub/../../outside.txt' members and asserts tarfile.OutsideDestinationError plus the absence of the escaped file. Because that test and the fix are both gated on hasattr(tarfile, 'data_filter'), the protection only engages on Python 3.11.4 and later, where PEP 706 introduced extraction filters; the visible diff keeps a fallback branch that calls plain extractall without filtering, so the runtime Python version materially affects whether the patched code actually blocks traversal. A second referenced commit (b228111) is cited by NVD alongside the release; the supplied evidence does not show its contents, so any behaviour it adds for older interpreters is unverified here. Impact escalates from arbitrary file write to code execution because an attacker who can place a file inside site-packages, a vendored dependency directory, or any module search path can have that code imported by the victim process afterwards; the accompanying tags (RCE, Python, Path Traversal) reflect that chain.

Know when Python gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (vulncheck) PRIMARY 7.1 HIGH
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
vuln.today AI 8.8 HIGH

Network-reachable archive with low complexity and no auth, but UI:R because the victim must extract it; arbitrary file write lets an attacker overwrite executed modules, yielding full C/I/A code execution.

3.1 AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
4.0 AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (vulncheck).

CVSS VectorVendor: vulncheck

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
Passive
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
High
Vulnerable system: Availability
None
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

2
Patch available
Nov 26, 2026 - 21:03 EUVD
CVE Published
Nov 26, 2026 - 20:17 cve.org
HIGH 7.1

DescriptionCVE.org

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.

Executive ViewAI

Why It Matters

A high-severity vulnerability in torchvision, a widely used machine learning library, could allow an attacker to write arbitrary files and potentially execute code when a user extracts a malicious tar archive. This affects any team or system using torchvision versions before 0.29.2 for model loading or data processing, requiring user interaction to trigger. Leadership should prioritize patching because successful exploitation could lead to unauthorized code execution and data compromise within ML pipelines.

Business Impact: Medium
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.7%
Top 52% exploitable
Prevalence
High
torchvision is a very widely deployed PyTorch computer-vision library in ML pipelines
Social Media
1
Sightings
Data Quality
3 sources
Confidence: Low

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.7%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact
Medium

Priority Score

37
Low Medium High Critical
KEV: 0
EPSS: +1
CVSS: +36
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Path traversal exploits occur when applications use user-controlled input to construct file system paths without proper validation.

Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.

More in Python

View all
CVE-2025-24016 CRITICAL POC
9.9 Feb 10

Wazuh SIEM platform versions 4.4.0 through 4.9.0 contain an unsafe deserialization vulnerability in the DistributedAPI t

CVE-2025-27520 CRITICAL POC
9.8 Apr 04

BentoML version 1.4.2 and earlier contains an unauthenticated remote code execution vulnerability through insecure deser

CVE-2025-2945 CRITICAL POC
9.9 Apr 03

pgAdmin 4 contains critical remote code execution vulnerabilities in the Query Tool download and Cloud Deployment endpoi

CVE-2013-5093 MEDIUM POC
6.8 Sep 27

The renderLocalView function in render/views.py in graphite-web in Graphite 0.9.5 through 0.9.10 uses the pickle Python

CVE-2025-32375 CRITICAL POC
9.8 Apr 09

BentoML is a Python library for building online serving systems optimized for AI apps and model inference. Rated critica

CVE-2014-0224 HIGH POC
7.4 Jun 05

OpenSSL before 0.9.8za, 1.0.0 before 1.0.0m, and 1.0.1 before 1.0.1h does not properly restrict processing of ChangeCiph

CVE-2024-21644 HIGH POC
7.5 Jan 08

pyLoad download manager version prior to 0.5.0b3.dev77 exposes the Flask SECRET_KEY through an unauthenticated endpoint.

CVE-2026-33017 CRITICAL POC
9.3 Mar 17

Langflow (a visual LLM pipeline builder) contains a critical unauthenticated code execution vulnerability (CVE-2026-3301

CVE-2017-9462 HIGH POC
8.8 Jun 06

In Mercurial before 4.1.3, "hg serve --stdio" allows remote authenticated users to launch the Python debugger, and conse

CVE-2026-49869 CRITICAL POC
10.0 Jun 26

Unauthenticated remote code execution affects Kestra OSS (the open-source event-driven orchestration platform) prior to

CVE-2026-39987 CRITICAL POC
9.3 Apr 08

Unauthenticated remote code execution in Marimo ≤0.20.4 allows attackers to execute arbitrary system commands via the `/

CVE-2024-21645 MEDIUM POC
5.3 Jan 08

pyLoad is the free and open-source Download Manager written in pure Python. Rated medium severity (CVSS 5.3), this vulne

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy