Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessHost malicious tar archive
-
DeliveryVictim calls extract_archive/download_and_extract_archive
-
ExploitTar member escapes via ../ or symlink
-
ExecutionOverwrite Python module on disk
-
ImpactCode 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
Affected Packages
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
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
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.
Primary rating from Vendor (vulncheck).
CVSS VectorVendor: vulncheck
Lifecycle Timeline
2DescriptionCVE.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
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.
Apply vendor patch.
Threat Intelligence Overview
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.
What every action level means
SSVC AssessmentENISA
Priority Score
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.
Wazuh SIEM platform versions 4.4.0 through 4.9.0 contain an unsafe deserialization vulnerability in the DistributedAPI t
BentoML version 1.4.2 and earlier contains an unauthenticated remote code execution vulnerability through insecure deser
pgAdmin 4 contains critical remote code execution vulnerabilities in the Query Tool download and Cloud Deployment endpoi
The renderLocalView function in render/views.py in graphite-web in Graphite 0.9.5 through 0.9.10 uses the pickle Python
BentoML is a Python library for building online serving systems optimized for AI apps and model inference. Rated critica
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
pyLoad download manager version prior to 0.5.0b3.dev77 exposes the Flask SECRET_KEY through an unauthenticated endpoint.
Langflow (a visual LLM pipeline builder) contains a critical unauthenticated code execution vulnerability (CVE-2026-3301
In Mercurial before 4.1.3, "hg serve --stdio" allows remote authenticated users to launch the Python debugger, and conse
Unauthenticated remote code execution affects Kestra OSS (the open-source event-driven orchestration platform) prior to
Unauthenticated remote code execution in Marimo ≤0.20.4 allows attackers to execute arbitrary system commands via the `/
pyLoad is the free and open-source Download Manager written in pure Python. Rated medium severity (CVSS 5.3), this vulne
EUVD-2026-136873
NVD
CVE.org
EPSS
GitHub
Exploit-DB