PyPI (Python)Worst: Critical14 advisories
torch: known vulnerabilities
torch has 14 reviewed security advisories in the GitHub Advisory Database — 3 critical, 3 high, 3 moderate, 5 low. The most recent was published 2026-01-27. Each one below lists the affected version range, the release that fixes it, its CVE and severity. SkyShield matches these against the torch versions running across your servers, containers and images, and ranks what to patch first.
How to fix torch
Upgrade torch to a release at or above the fixed version shown for each advisory below. For PyPI (Python):
pip install --upgrade torch (pin torch>=2.10.0)
SkyShield checks the installed version on every machine and container, so you can see which hosts are still on an affected release after you roll the fix out.
Advisories (14)
PyTorch Vulnerable to Remote Code Execution via Untrusted Checkpoint Files
High 8.8 CWE-502 CWE-94
— Affected: before 2.10.0. Fixed in 2.10.0. Published 2026-01-27. GHSA-63cw-57p8-fm3p · CVE-2026-24747
PyTorch: `torch.load` with `weights_only=True` leads to remote code execution
Critical CWE-502
— Affected: before 2.6.0. Fixed in 2.6.0. Published 2025-04-18. GHSA-53q9-r3pm-6pq6 · CVE-2025-32434
PyTorch Improper Resource Shutdown or Release vulnerability
Moderate 3.3 CWE-404
— Affected: before 2.8.0. Fixed in 2.8.0. Published 2025-04-16. GHSA-887c-mr87-cxwp · CVE-2025-3730
PyTorch is Vulnerable to Memory Consumption through pad_packed_sequence Function
Moderate 5.3 CWE-119
— Affected: up to and including 2.6.0. No fixed release is listed. Published 2025-03-31. GHSA-f4hp-rmr7-r7v8 · CVE-2025-2998
PyTorch is vulnerable to memory corruption through its torch.lstm_cell function
Low 5.3 CWE-119
— Affected: before 2.10.0. Fixed in 2.10.0. Published 2025-03-31. GHSA-qfhq-4f3w-5fph · CVE-2025-3001
PyTorch is vulnerable to memory corruption through its torch.jit.script function
Low 5.3 CWE-119
— Affected: before 2.13.0. Fixed in 2.13.0. Published 2025-03-31. GHSA-rrmf-rvhw-rf47 · CVE-2025-3000
PyTorch is vulnerable to memory corruption through its unpack_sequence function
Moderate 5.3 CWE-119
— Affected: before 2.9.1. Fixed in 2.9.1. Published 2025-03-31. GHSA-vgrw-7cvw-pwgx · CVE-2025-2999
PyTorch susceptible to local Denial of Service
Low 3.3 CWE-404
— Affected: before 2.7.1-rc1. Fixed in 2.7.1-rc1. Published 2025-03-30. GHSA-3749-ghw9-m3mg · CVE-2025-2953
Withdrawn Advisory: PyTorch deserialization vulnerability
Critical 9.8 CWE-502
— Affected: up to and including 2.3.1. No fixed release is listed. Published 2025-03-20. GHSA-4vmg-rw8f-92f9 · CVE-2024-7804
PyTorch Tuple Handler is Vulnerable to Memory Corruption through Manipulation of None Argument
Low 5.0 CWE-119
— Affected: up to and including 2.6.0. No fixed release is listed. Published 2025-03-10. GHSA-c678-jfcj-6jmf · CVE-2025-2148
PyTorch: Manipulation of the argument scale/zero_point leads to improper initialization via Quantized Sigmoid Module
Low 2.5 CWE-665
— Affected: up to and including 2.6.0. No fixed release is listed. Published 2025-03-10. GHSA-x3gm-94wq-g975 · CVE-2025-2149
PyTorch heap buffer overflow vulnerability
High 7.5 CWE-122
— Affected: before 2.2.0. Fixed in 2.2.0. Published 2024-04-17. GHSA-5pcm-hx3q-hm94 · CVE-2024-31580
Pytorch use-after-free vulnerability
High 7.8 CWE-416
— Affected: before 2.2.0. Fixed in 2.2.0. Published 2024-04-17. GHSA-pg7h-5qx3-wjr3 · CVE-2024-31583
PyTorch vulnerable to arbitrary code execution
Critical 9.8 CWE-77
— Affected: before 1.13.1. Fixed in 1.13.1. Published 2022-11-26. GHSA-47fc-vmwq-366v · CVE-2022-45907
Find torch across your fleet
Install one agent per server and connect your cloud. SkyShield matches your packages and images against GHSA,
CISA KEV and EPSS and shows the fix per machine. Free for one server, then from $49 per server a month.
Start free.