PyTorch vulnerabilities
CVEs that NVD lists for PyTorch, newest first. NVD names the product cpe:2.3:a:linuxfoundation:pytorch; every CVE here lists a version of it as affected. The CISA KEV column marks the ones CISA lists as exploited in the wild.
Source: the National Vulnerability Database CVE API, https://nvd.nist.gov/developers/vulnerabilities, queried by each product’s CPE name, read weekly. CVEs published since November 27, 2023 (the last three years). Checked: November 27, 2026.
Download: CSV, under CC BY 4.0.
Cite as: CIOPages, “Vulnerabilities in AI software,” https://www.ciopages.com/trackers/ai-software-vulnerabilities/product/pytorch, from the NVD CVE API, checked November 27, 2026. CC BY 4.0.
| CVE | Description | Published | CVSS | CWE | CISA KEV | Checked |
|---|---|---|---|---|---|---|
| CVE-2026-4538 | 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 performed from a local environment. The exploit is publicly available and might… | 2026-03-22 | 7.8 High v3.1 | CWE-20, CWE-502 | 2026-11-27 | |
| CVE-2026-24747 | 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 (`.pth`) that, when loaded with `torch.load(..., weights_only=True)`, can corrupt… | 2026-01-27 | 8.8 High v3.1 | CWE-94, CWE-502 | 2026-11-27 | |
| CVE-2025-63396 | An issue was discovered in PyTorch v2.5 and v2.7.1. Omission of profiler.stop() can cause torch.profiler.profile (PythonTracer) to crash or hang during finalization, leading to a Denial of Service (DoS). | 2025-11-12 | 3.3 Low v3.1 | CWE-667 | 2026-11-27 | |
| CVE-2025-55560 | 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. | 2025-09-25 | 7.5 High v3.1 | CWE-400 | 2026-11-27 | |
| CVE-2025-55558 | 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 Denial of Service (DoS). | 2025-09-25 | 7.5 High v3.1 | CWE-400 | 2026-11-27 | |
| CVE-2025-55557 | 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). | 2025-09-25 | 7.5 High v3.1 | CWE-248 | 2026-11-27 | |
| CVE-2025-55554 | pytorch v2.8.0 was discovered to contain an integer overflow in the component torch.nan_to_num-.long(). | 2025-09-25 | 5.3 Medium v3.1 | CWE-190 | 2026-11-27 | |
| CVE-2025-55553 | A syntax error in the component proxy_tensor.py of pytorch v2.7.0 allows attackers to cause a Denial of Service (DoS). | 2025-09-25 | 7.5 High v3.1 | CWE-248 | 2026-11-27 | |
| CVE-2025-55552 | pytorch v2.8.0 was discovered to display unexpected behavior when the components torch.rot90 and torch.randn_like are used together. | 2025-09-25 | 7.5 High v3.1 | CWE-190, CWE-682 | 2026-11-27 | |
| CVE-2025-55551 | 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. | 2025-09-25 | 7.5 High v3.1 | CWE-400 | 2026-11-27 | |
| CVE-2025-46153 | PyTorch before 3.7.0 has a bernoulli_p decompose function in decompositions.py even though it lacks full consistency with the eager CPU implementation, negatively affecting nn.Dropout1d, nn.Dropout2d, and nn.Dropout3d for fallback_random=True. | 2025-09-25 | 5.3 Medium v3.1 | CWE-1176 | 2026-11-27 | |
| CVE-2025-46152 | In PyTorch before 2.7.0, bitwise_right_shift produces incorrect output for certain out-of-bounds values of the "other" argument. | 2025-09-25 | 5.3 Medium v3.1 | CWE-787 | 2026-11-27 | |
| CVE-2025-46150 | In PyTorch before 2.7.0, when torch.compile is used, FractionalMaxPool2d has inconsistent results. | 2025-09-25 | 5.3 Medium v3.1 | 2026-11-27 | ||
| CVE-2025-46149 | In PyTorch before 2.7.0, when inductor is used, nn.Fold has an assertion error. | 2025-09-25 | 5.3 Medium v3.1 | CWE-617 | 2026-11-27 | |
| CVE-2025-46148 | In PyTorch through 2.6.0, when eager is used, nn.PairwiseDistance(p=2) produces incorrect results. | 2025-09-25 | 5.3 Medium v3.1 | 2026-11-27 | ||
| CVE-2025-32434 | PyTorch is a Python package that provides tensor computation with strong GPU acceleration and deep neural networks built on a tape-based autograd system. In version 2.5.1 and prior, a Remote Command Execution (RCE) vulnerability exists in PyTorch when loading a model using… | 2025-04-18 | 9.8 Critical v3.1 | CWE-502 | 2026-11-27 | |
| CVE-2025-3730 | A vulnerability, which was classified as problematic, was found in PyTorch 2.6.0. Affected is the function torch.nn.functional.ctc_loss of the file aten/src/ATen/native/LossCTC.cpp. The manipulation leads to denial of service. An attack has to be approached locally. The exploit… | 2025-04-16 | 5.5 Medium v3.1 | CWE-404 | 2026-11-27 | |
| CVE-2025-3136 | A vulnerability, which was classified as problematic, has been found in PyTorch 2.6.0. This issue affects the function torch.cuda.memory.caching_allocator_delete of the file c10/cuda/CUDACachingAllocator.cpp. The manipulation leads to memory corruption. An attack has to be… | 2025-04-03 | 3.3 Low v3.1 | CWE-119, CWE-787 | 2026-11-27 | |
| CVE-2025-3121 | A vulnerability classified as problematic has been found in PyTorch 2.6.0. Affected is the function torch.jit.jit_module_from_flatbuffer. The manipulation leads to memory corruption. Local access is required to approach this attack. The exploit has been disclosed to the public… | 2025-04-02 | 5.5 Medium v3.1 | CWE-119 | 2026-11-27 | |
| CVE-2025-3001 | A vulnerability classified as critical was found in PyTorch 2.6.0. This vulnerability affects the function torch.lstm_cell. The manipulation leads to memory corruption. The attack needs to be approached locally. The exploit has been disclosed to the public and may be used. | 2025-03-31 | 5.3 Medium v3.1 | CWE-119 | 2026-11-27 | |
| CVE-2025-3000 | A vulnerability classified as critical has been found in PyTorch 2.6.0. This affects the function torch.jit.script. The manipulation leads to memory corruption. It is possible to launch the attack on the local host. The exploit has been disclosed to the public and may be used. | 2025-03-31 | 5.3 Medium v3.1 | CWE-119 | 2026-11-27 | |
| CVE-2025-2999 | A vulnerability was found in PyTorch 2.6.0. It has been rated as critical. Affected by this issue is the function torch.nn.utils.rnn.unpack_sequence. The manipulation leads to memory corruption. Attacking locally is a requirement. The exploit has been disclosed to the public and… | 2025-03-31 | 5.3 Medium v3.1 | CWE-119 | 2026-11-27 | |
| CVE-2025-2998 | A vulnerability was found in PyTorch 2.6.0. It has been declared as critical. Affected by this vulnerability is the function torch.nn.utils.rnn.pad_packed_sequence. The manipulation leads to memory corruption. Local access is required to approach this attack. The exploit has… | 2025-03-31 | 5.3 Medium v3.1 | CWE-119 | 2026-11-27 | |
| CVE-2025-2953 | A vulnerability, which was classified as problematic, has been found in PyTorch 2.6.0+cu124. Affected by this issue is the function torch.mkldnn_max_pool2d. The manipulation leads to denial of service. An attack has to be approached locally. The exploit has been disclosed to the… | 2025-03-30 | 5.5 Medium v3.1 | CWE-404 | 2026-11-27 | |
| CVE-2025-2149 | A vulnerability was found in PyTorch 2.6.0+cu124. It has been rated as problematic. Affected by this issue is the function nnq_Sigmoid of the component Quantized Sigmoid Module. The manipulation of the argument scale/zero_point leads to improper initialization. The attack needs… | 2025-03-10 | 2.5 Low v3.1 | CWE-665 | 2026-11-27 | |
| CVE-2025-2148 | A vulnerability was found in PyTorch 2.6.0+cu124. It has been declared as critical. Affected by this vulnerability is the function torch.ops.profiler._call_end_callbacks_on_jit_fut of the component Tuple Handler. The manipulation of the argument None leads to memory corruption… | 2025-03-10 | 7.5 High v3.1 | CWE-119 | 2026-11-27 | |
| CVE-2024-48063 | In PyTorch <=2.4.1, the RemoteModule has Deserialization RCE. NOTE: this is disputed by multiple parties because this is intended behavior in PyTorch distributed computing. | 2024-10-29 | 9.8 Critical v3.1 | CWE-502 | 2026-11-27 | |
| CVE-2024-31584 | Pytorch before v2.2.0 has an Out-of-bounds Read vulnerability via the component torch/csrc/jit/mobile/flatbuffer_loader.cpp. | 2024-04-19 | 5.5 Medium v3.1 | CWE-125 | 2026-11-27 | |
| CVE-2024-31583 | Pytorch before version v2.2.0 was discovered to contain a use-after-free vulnerability in torch/csrc/jit/mobile/interpreter.cpp. | 2024-04-17 | 7.8 High v3.1 | CWE-416 | 2026-11-27 | |
| CVE-2024-31580 | PyTorch before v2.2.0 was discovered to contain a heap buffer overflow vulnerability in the component /runtime/vararg_functions.cpp. This vulnerability allows attackers to cause a Denial of Service (DoS) via a crafted input. | 2024-04-17 | 4.0 Medium v3.1 | CWE-122 | 2026-11-27 |
More ai frameworks. All AI software.
This product uses the NVD API but is not endorsed or certified by the NVD. CVE links open the National Vulnerability Database. Descriptions are the CNA’s text as NVD publishes it, shortened here to 280 characters; the CSV has it in full. CVSS is the base score NVD lists for one CVE, version 3.1 where given, else 4.0, else 3.0: it is not a rating of a product or its vendor. Rows are ordered by the date NVD published them. The CISA KEV column comes from the CISA Known Exploited Vulnerabilities catalog, checked November 27, 2026. Change log.