A path traversal vulnerability in PyTorch’s TorchVision library could allow a malicious archive to write files outside its intended extraction directory, potentially giving attackers a way to replace Python modules and execute code. The issue has been assigned CVE-2026-137507 and carries a CVSS 4.0 score of 7.1, rated High.

The flaw affects TorchVision versions before 0.29.2. According to the vulnerability record, the problem lies in the library’s TAR extraction routine, which can process archives containing directory traversal paths, absolute paths or symbolic links. An attacker who can persuade an application to extract a crafted archive could use those entries to write files outside the target folder.

That file-writing capability could become more serious in Python environments if an attacker overwrites a module or another file that an application later loads. In that situation, the malicious file could be used to run code in the context of the affected application. The vulnerability affects the extract_archive() and download_and_extract_archive() workflows.

The CVE was published on November 26 by VulnCheck. The issue had already been addressed in TorchVision 0.29.2, released on October 28. The public record does not list known exploitation, and the disclosure does not indicate that the flaw is being actively used in attacks.

Developers should update TorchVision to version 0.29.2 or later and review applications that automatically unpack datasets or other TAR archives from untrusted sources. The technical details and fix are available in the TorchVision security issue and the 0.29.2 release notes. The vulnerability record is also available through the NVD CVE entry.

READ
MONAI Label 0.8.6 Fixes Critical CVE-2026-133968

The issue adds to security concerns around software used in machine-learning environments, where downloaded datasets and third-party components can become part of an application’s execution path. Abijita previously covered a separate vulnerability affecting AI development tools in its report on the MONAI Label flaw added to CISA’s Known Exploited Vulnerabilities catalog.


Buy ExpressVPN with PayPal or Credit Card

Advertisement