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

Published Nov 26, 2026
·
Updated

torchvision before 0.29.2 contains a path traversal vulnerability in extracttar() that allows attackers to write files outside the extraction directory by supplying crafted tar archives. Attackers controlling archives passed to extractarchive() or downloadandextractarchive() can use .. paths, absolute paths, or symlinks to overwrite Python modules and achieve code execution.

Affected Software

1 affected component
pypi/torchvision<0.29.2

Event History

Nov 26, 2026
CVE Published
via MITRE·08:02 PM
Data Sourced
via MITRE·08:02 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·08:17 PM
DescriptionSeverityWeakness
Event
via NVD·08:17 PM

Frequently Asked Questions

1

Who is exposed to this issue?

Applications using torchvision before 0.29.2 are exposed when they pass attacker-controlled tar archives to extract_archive() or download_and_extract_archive(). The issue is relevant where an attacker can influence an archive that the application downloads or extracts.

2

What does an attacker need to exploit it?

The attacker needs to supply a crafted tar archive to a vulnerable extraction call. The archive can contain ../ paths, absolute paths, or symlinks that cause files to be written outside the intended extraction directory.

3

What is the potential impact?

A crafted archive can overwrite files outside the extraction directory, including Python modules. Overwriting Python modules can lead to code execution.

4

How can this be remediated?

Upgrade torchvision to version 0.29.2 or later. If an upgrade cannot be applied immediately, do not extract untrusted tar archives through the affected functions.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203