Read the docs

Path traversal in PyTorch torchvision lets attackers write files

Priority LOW 32CWE-22Published · Updated

Key facts

Attack vector
Network
Privileges required
None
User interaction
Passive
Attack complexity
Low
Attack requirements
None
Impact type
—
Confidentiality · integrity · availability
None · High · None
Fix status
Fixed

Attack profile from CVSS 4.0 · CNA. Fix status from CNA.

Summary

pytorch torchvision before 0.29.2 contains a path traversal flaw (CWE-22) in its tar extraction code. Crafted tar archives can use .. paths, absolute paths, or symlinks to write files outside the extraction directory. A remote attacker with no privileges needs a user to process a crafted archive, and can overwrite Python modules to execute code.

Written with Claude Haiku 5.5 from the sources below · 2026-11-27

Description from the CNA

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.

Why it matters now

EPSS 0.00679 47th percentileScored 2026-11-30
Fix Fixed vision (pytorch): 0.29.2

SSVC decision points

Not available: CISA has not published SSVC decision points for this record.

Affected products

VendorProductAffected versionsFixed inStatusSource
pytorchvisionbefore 0.29.20.29.2Patch availableCNA
  • vision Vendorpytorch Affected before 0.29.2 Fixed in 0.29.2 Patch available CNA

Remediation

Upgrade torchvision to version 0.29.2 or later.

Written with Claude Haiku 5.5 from the sources below · 2026-11-27

  • Fix · CNA vision (pytorch) Fixed in 0.29.2

Timeline

  1. 2026-11-26 Threatist record created from CVE-2026-137507
  2. 2026-11-27 Alias added: GHSA-c26x-8h8m-rv92

References

  • TI-2023-23379 TorchServe Server-Side Request Forgery CVSS 3.1CRITICAL 10.0
  • TI-2026-86102 Predictable temp path in TorchServe enables local privilege escalation CVSS 3.1HIGH 7.8
  • TI-2026-46956 PyTorch torchvision GIF Decoder Out-of-bounds Heap Read CVSS 4.0HIGH 7.1
  • TI-2024-06099 Unclaimed S3 Bucket Usage in pytorch/serve CVSS 3.0MEDIUM 6.3
  • TI-2025-23505 PyTorch: `torch.load` with `weights_only=True` leads to remote code execution CVSS 4.0CRITICAL 9.3
  • TI-2024-23270 TorchServe bypass allowed_urls configuration CVSS 3.1CRITICAL 9.8
See all 9 →

Sources