torch: known vulnerabilities and the safe version
The version to be on
Version 2.10.0 or later fixes every vulnerability on this page that has a recorded fix.
Upgrade torch with pip
pip install --upgrade "torch>=2.10.0"
pip show torch | grep VersionPin it in requirements.txt
torch>=2.10.0Check the release notes before a large jump in version. Newer vulnerabilities may have been found since this page was updated.
Watch torch
Get an email only when torch has a new vulnerability record. Unsubscribe with one click.
Badge for your README
Shows the number of known critical and high vulnerabilities in torch and the version that fixes them. It updates by itself.
Markdown
[](https://securityelites.com/ai-vulnerabilities/package/torch/)All records
- A vulnerability was identified in PyTorch 2.10.0. The affected element is an unknown function of the componentUnknown · CVE-2026-4538 · no fix recorded · 22 Mar 2026
- PyTorch Vulnerable to Remote Code Execution via Untrusted Checkpoint FilesUnknown · CVE-2026-24747 · fixed in 2.10.0 · 28 Jan 2026
- An issue was discovered in PyTorch v2.5 and v2.7.1. Omission of profiler.stop() can cause torch.profiler.profiUnknown · CVE-2025-63396 · no fix recorded · 13 Nov 2025
- An issue in pytorch v2.7.0 can lead to a Denial of Service (DoS) when a PyTorch model consists of torch.TensorUnknown · CVE-2025-55560 · fixed in 2.7.1 · 25 Sep 2025
- pytorch v2.8.0 was discovered to display unexpected behavior when the components torch.rot90 and torch.randn_lUnknown · CVE-2025-55552 · fixed in 2.9.0 · 25 Sep 2025
- pytorch v2.8.0 was discovered to contain an integer overflow in the component torch.nan_to_num-.long().Unknown · CVE-2025-55554 · fixed in 2.9.0 · 25 Sep 2025
- A syntax error in the component proxy_tensor.py of pytorch v2.7.0 allows attackers to cause a Denial of ServicUnknown · CVE-2025-55553 · fixed in 2.7.1 · 25 Sep 2025
- A Name Error occurs in pytorch v2.7.0 when a PyTorch model consists of torch.cummin and is compiled by InductoUnknown · CVE-2025-55557 · fixed in 2.7.1 · 25 Sep 2025
- A buffer overflow occurs in pytorch v2.7.0 when a PyTorch model consists of torch.nn.Conv2d, torch.nn.functionUnknown · CVE-2025-55558 · fixed in 2.7.1 · 25 Sep 2025
- In PyTorch before 2.7.0, when inductor is used, nn.Fold has an assertion error.Unknown · CVE-2025-46149 · fixed in 2.7.0 · 25 Sep 2025
- An issue in the component torch.linalg.lu of pytorch v2.8.0 allows attackers to cause a Denial of Service (DoSUnknown · CVE-2025-55551 · fixed in 2.9.0 · 25 Sep 2025
- In PyTorch through 2.6.0, when eager is used, nn.PairwiseDistance(p=2) produces incorrect results.Unknown · CVE-2025-46148 · fixed in 2.7.0 · 25 Sep 2025
- In PyTorch before 2.7.0, when torch.compile is used, FractionalMaxPool2d has inconsistent results.Unknown · CVE-2025-46150 · fixed in 2.7.0 · 25 Sep 2025
- In PyTorch before 2.7.0, bitwise_right_shift produces incorrect output for certain out-of-bounds values of theUnknown · CVE-2025-46152 · fixed in 2.7.0 · 25 Sep 2025
- PyTorch before 3.7.0 has a bernoulli_p decompose function in decompositions.py even though it lacks full consiUnknown · CVE-2025-46153 · fixed in 2.7.0 · 25 Sep 2025
- PyTorch: `torch.load` with `weights_only=True` leads to remote code executionUnknown · CVE-2025-32434 · fixed in 2.6.0 · 18 Apr 2025
- PyTorch Improper Resource Shutdown or Release vulnerabilityUnknown · CVE-2025-3730 · fixed in 2.8.0 · 17 Apr 2025
- A vulnerability, which was classified as problematic, has been found in PyTorch 2.6.0. This issue affects theUnknown · CVE-2025-3136 · no fix recorded · 3 Apr 2025
- A vulnerability classified as problematic has been found in PyTorch 2.6.0. Affected is the function torch.jit.Unknown · CVE-2025-3121 · no fix recorded · 3 Apr 2025
- PyTorch is vulnerable to memory corruption through its torch.lstm_cell functionUnknown · CVE-2025-3001 · no fix recorded · 1 Apr 2025
- PyTorch is Vulnerable to Memory Consumption through pad_packed_sequence FunctionUnknown · CVE-2025-2998 · no fix recorded · 31 Mar 2025
- PyTorch is vulnerable to memory corruption through its unpack_sequence functionUnknown · CVE-2025-2999 · no fix recorded · 31 Mar 2025
- PyTorch is vulnerable to memory corruption through its torch.jit.script functionUnknown · CVE-2025-3000 · no fix recorded · 31 Mar 2025
- PyTorch susceptible to local Denial of ServiceUnknown · CVE-2025-2953 · no fix recorded · 31 Mar 2025
- PyTorch: Manipulation of the argument scale/zero_point leads to improper initialization via Quantized Sigmo…Unknown · CVE-2025-2149 · no fix recorded · 10 Mar 2025
- PyTorch Tuple Handler is Vulnerable to Memory Corruption through Manipulation of None ArgumentUnknown · CVE-2025-2148 · no fix recorded · 10 Mar 2025
- In PyTorchUnknown · CVE-2024-48063 · fixed in 2.5.0 · 30 Oct 2024
- Pytorch before v2.2.0 has an Out-of-bounds Read vulnerability via the component torch/csrc/jit/mobile/flatbuffUnknown · CVE-2024-31584 · fixed in 2.2.0 · 20 Apr 2024
- Pytorch use-after-free vulnerabilityUnknown · CVE-2024-31583 · fixed in 2.2.0 · 18 Apr 2024
- PyTorch heap buffer overflow vulnerabilityUnknown · CVE-2024-31580 · fixed in 2.2.0 · 18 Apr 2024
- PyTorch vulnerable to arbitrary code executionUnknown · CVE-2022-45907 · fixed in 1.13.1 · 26 Nov 2022