PyPI package
torch 2.5.1 vulnerabilities, and what to upgrade to
torch 2.5.1 has 19 known vulnerabilities (1 rated high or critical); 2.13.0 fixes 15 of them, and 4 have no fixed version yet.
PyPI (opens in a new tab) describes it as “Tensors and Dynamic neural networks in Python with strong GPU acceleration”
- Known vulnerabilities
- 19
- 1 rated high or critical
- Released
- Oct 29, 2024
- Latest is 2.14.1
- Licence
- Apache-2.0 AND Apache-2.0 WITH LLVM-exception AND BSD-2-Clause AND BSD-3-Clause AND BSL-1.0 AND MIT
- Pulls in
- 21 packages
- Resolved by deps.dev
What to upgrade to
2.13.0 is the closest release with no known vulnerabilities.
2.13.0Upgrade to this
Fixes 15 of the 19 known vulnerabilities. Released Jul 8, 2026.
No known vulnerabilitiesNewest 2.x release and the latest release. Released Sep 30, 2026.
No known vulnerabilities
2.13.0 came out on Jul 8, 2026. A coding agent trained before then doesn’t know it exists, so it may suggest an older release. AI knowledge cutoff dates
Hand the fix to your coding agent
One task with the upgrade, the file to change and why. Paste it into Claude Code, Cursor or Codex.
Findings
- CriticalVulnerability
19 known vulnerabilities in torch 2.5.1
EPSS: top 17%1 rated high or critical. Most serious: CVE-2025-32434, PyTorch: `torch.load` with `weights_only=True` leads to remote code execution. Upgrading to 2.13.0 fixes 15 of them; 4 have no fixed version listed.
- LowOutdated
torch 2.5.1 is a minor version behind
Latest release is 2.14.1.
Every advisory for torch 2.5.1
Known exploited first (CISA KEV), then by how likely they are to be exploited (FIRST EPSS), then by severity. Each id links to its OSV.dev record.
CriticalCVE-2025-32434 on OSV.dev (opens in a new tab)GHSA-53q9-r3pm-6pq6EPSS: top 17%
PyTorch: `torch.load` with `weights_only=True` leads to remote code execution
Fixed in 2.6.0. Published Apr 18, 2025.
WarningCVE-2026-24747 on OSV.dev (opens in a new tab)GHSA-63cw-57p8-fm3pEPSS: top 44%
PyTorch is a Python package that provides tensor computation. Prior to version 2.10.0, a vulnerability in PyTorch's `weights_only` unpickler allows an attacker to craft a malicious checkpoint file (`…
Fixed in 2.10.0. Published Jan 27, 2026.
WarningCVE-2025-55558 on OSV.dev (opens in a new tab)PYSEC-2025-208EPSS: top 63%
A buffer overflow occurs in pytorch v2.7.0 when a PyTorch model consists of torch.nn.Conv2d, torch.nn.functional.hardshrink, and torch.Tensor.view-torch.mv() and is compiled by Inductor, leading to a…
Fixed in 2.7.1. Published Sep 25, 2025.
LowCVE-2025-2148 on OSV.dev (opens in a new tab)GHSA-c678-jfcj-6jmfEPSS: top 64%
PyTorch Tuple Handler is Vulnerable to Memory Corruption through Manipulation of None Argument
No fixed version listed yet. Published Mar 10, 2025.
WarningCVE-2025-55551 on OSV.dev (opens in a new tab)PYSEC-2025-203EPSS: top 65%
An issue in the component torch.linalg.lu of pytorch v2.8.0 allows attackers to cause a Denial of Service (DoS) when performing a slice operation.
Fixed in 2.9.0. Published Sep 25, 2025.
WarningCVE-2025-55552 on OSV.dev (opens in a new tab)PYSEC-2025-204EPSS: top 66%
pytorch v2.8.0 was discovered to display unexpected behavior when the components torch.rot90 and torch.randn_like are used together.
Fixed in 2.9.0. Published Sep 25, 2025.
WarningCVE-2025-55560 on OSV.dev (opens in a new tab)PYSEC-2025-209EPSS: top 67%
An issue in pytorch v2.7.0 can lead to a Denial of Service (DoS) when a PyTorch model consists of torch.Tensor.to_sparse() and torch.Tensor.to_dense() and is compiled by Inductor.
Fixed in 2.7.1. Published Sep 25, 2025.
WarningCVE-2025-55557 on OSV.dev (opens in a new tab)PYSEC-2025-207EPSS: top 67%
A Name Error occurs in pytorch v2.7.0 when a PyTorch model consists of torch.cummin and is compiled by Inductor, leading to a Denial of Service (DoS).
Fixed in 2.7.1. Published Sep 25, 2025.
WarningCVE-2025-55553 on OSV.dev (opens in a new tab)PYSEC-2025-205EPSS: top 67%
A syntax error in the component proxy_tensor.py of pytorch v2.7.0 allows attackers to cause a Denial of Service (DoS).
Fixed in 2.7.1. Published Sep 25, 2025.
WarningCVE-2025-46148 on OSV.dev (opens in a new tab)PYSEC-2025-198EPSS: top 68%
In PyTorch through 2.6.0, when eager is used, nn.PairwiseDistance(p=2) produces incorrect results.
Fixed in 2.7.0. Published Sep 25, 2025.
WarningCVE-2026-4538 on OSV.dev (opens in a new tab)PYSEC-2026-139EPSS: top 68%
A vulnerability was identified in PyTorch 2.10.0. The affected element is an unknown function of the component pt2 Loading Handler. The manipulation leads to deserialization. The attack can only be p…
No fixed version listed yet. Published Mar 22, 2026.
WarningCVE-2025-3730 on OSV.dev (opens in a new tab)GHSA-887c-mr87-cxwpEPSS: top 76%
PyTorch Improper Resource Shutdown or Release vulnerability
Fixed in 2.8.0. Published Apr 16, 2025.
WarningCVE-2025-55554 on OSV.dev (opens in a new tab)PYSEC-2025-206EPSS: top 78%
pytorch v2.8.0 was discovered to contain an integer overflow in the component torch.nan_to_num-.long().
Fixed in 2.9.0. Published Sep 25, 2025.
LowCVE-2025-2149 on OSV.dev (opens in a new tab)GHSA-x3gm-94wq-g975EPSS: top 84%
PyTorch: Manipulation of the argument scale/zero_point leads to improper initialization via Quantized Sigmoid Module
No fixed version listed yet. Published Mar 10, 2025.
LowCVE-2025-2953 on OSV.dev (opens in a new tab)GHSA-3749-ghw9-m3mgEPSS: top 84%
PyTorch susceptible to local Denial of Service
Fixed in 2.7.1-rc1. Published Mar 30, 2025.
LowCVE-2025-3000 on OSV.dev (opens in a new tab)GHSA-rrmf-rvhw-rf47EPSS: top 91%
PyTorch is vulnerable to memory corruption through its torch.jit.script function
Fixed in 2.13.0. Published Mar 31, 2025.
WarningCVE-2025-2998 on OSV.dev (opens in a new tab)GHSA-f4hp-rmr7-r7v8EPSS: top 92%
PyTorch is Vulnerable to Memory Consumption through pad_packed_sequence Function
No fixed version listed yet. Published Mar 31, 2025.
WarningCVE-2025-2999 on OSV.dev (opens in a new tab)GHSA-vgrw-7cvw-pwgxEPSS: top 92%
PyTorch is vulnerable to memory corruption through its unpack_sequence function
Fixed in 2.9.1. Published Mar 31, 2025.
LowCVE-2025-3001 on OSV.dev (opens in a new tab)GHSA-qfhq-4f3w-5fphEPSS: top 92%
PyTorch is vulnerable to memory corruption through its torch.lstm_cell function
Fixed in 2.10.0. Published Mar 31, 2025.
Is torch the only one?
Paste a public GitHub repo or drop your requirements.txt or pyproject.toml and see every vulnerable, end-of-life or deprecated dependency, with one fix task. Free, no sign-up.
How this page is checked
StackPrism asks OSV.dev which advisories affect exactly torch 2.5.1, merges duplicates filed under several ids, and ranks them with CISA’s Known Exploited Vulnerabilities list and FIRST EPSS. Release dates and deprecation come from deps.dev and PyPI. No AI writes this page: every sentence comes from that data, refreshed every few hours.
Last checked against PyPI, OSV.dev, deps.dev, CISA KEV and FIRST EPSS.