torch (PyPI)

Known vulnerabilities and malicious package reports for torch on PyPI, live from OSV, with CISA KEV exploitation status and EPSS scores.

Known package reports

0 malicious package reports and 31 vulnerabilities returned by OSV. Check a specific version to see which reports apply.

PYSEC-2024-259: Vulnerability

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.

Published .

Updated .

Affected ranges: introduced 0, fixed 2.5.0.

Fix versions reported by the advisory: 2.5.0.

Severity: CRITICAL.

CVE-2024-48063

GHSA-53q9-r3pm-6pq6: Vulnerability

PyTorch: `torch.load` with `weights_only=True` leads to remote code execution

Published .

Updated .

Affected ranges: introduced 0, fixed 2.6.0.

Fix versions reported by the advisory: 2.6.0.

Severity: CRITICAL.

CVE-2025-32434

GHSA-47fc-vmwq-366v: Vulnerability

PyTorch vulnerable to arbitrary code execution

Published .

Updated .

Affected ranges: introduced 0, fixed 1.13.1.

Fix versions reported by the advisory: 1.13.1.

Severity: CRITICAL.

CVE-2022-45907

GHSA-63cw-57p8-fm3p: Vulnerability

PyTorch Vulnerable to Remote Code Execution via Untrusted Checkpoint Files

Published .

Updated .

Affected ranges: introduced 0, fixed 2.10.0.

Fix versions reported by the advisory: 2.10.0.

Severity: HIGH.

CVE-2026-24747

PYSEC-2025-208: Vulnerability

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).

Published .

Updated .

Affected ranges: introduced 0, fixed 2.7.1.

Fix versions reported by the advisory: 2.7.1.

Severity: HIGH.

CVE-2025-55558

PYSEC-2025-209: Vulnerability

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.

Published .

Updated .

Affected ranges: introduced 0, fixed 2.7.1.

Fix versions reported by the advisory: 2.7.1.

Severity: HIGH.

CVE-2025-55560

PYSEC-2025-207: Vulnerability

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).

Published .

Updated .

Affected ranges: introduced 0, fixed 2.7.1.

Fix versions reported by the advisory: 2.7.1.

Severity: HIGH.

CVE-2025-55557

PYSEC-2025-205: Vulnerability

A syntax error in the component proxy_tensor.py of pytorch v2.7.0 allows attackers to cause a Denial of Service (DoS).

Published .

Updated .

Affected ranges: introduced 0, fixed 2.7.1.

Fix versions reported by the advisory: 2.7.1.

Severity: HIGH.

CVE-2025-55553

GHSA-c678-jfcj-6jmf: Vulnerability

PyTorch Tuple Handler is Vulnerable to Memory Corruption through Manipulation of None Argument

Published .

Updated .

Affected ranges: introduced 0, last_affected 2.6.0.

Severity: HIGH.

CVE-2025-2148

PYSEC-2025-204: Vulnerability

pytorch v2.8.0 was discovered to display unexpected behavior when the components torch.rot90 and torch.randn_like are used together.

Published .

Updated .

Affected ranges: introduced 0, fixed 2.9.0.

Fix versions reported by the advisory: 2.9.0.

Severity: HIGH.

CVE-2025-55552

PYSEC-2025-201: Vulnerability

In PyTorch before 2.7.0, bitwise_right_shift produces incorrect output for certain out-of-bounds values of the "other" argument.

Published .

Updated .

Reported affected releases: 2.6.0.

Affected ranges: introduced 2.6.0, fixed 2.7.0.

Fix versions reported by the advisory: 2.7.0.

Severity: MEDIUM.

CVE-2025-46152

PYSEC-2025-203: Vulnerability

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.

Published .

Updated .

Affected ranges: introduced 0, fixed 2.9.0.

Fix versions reported by the advisory: 2.9.0.

Severity: HIGH.

CVE-2025-55551

PYSEC-2025-202: Vulnerability

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.

Published .

Updated .

Reported affected releases: 2.6.0.

Affected ranges: introduced 2.6.0, fixed 2.7.0.

Fix versions reported by the advisory: 2.7.0.

Severity: MEDIUM.

CVE-2025-46153

PYSEC-2025-198: Vulnerability

In PyTorch through 2.6.0, when eager is used, nn.PairwiseDistance(p=2) produces incorrect results.

Published .

Updated .

Affected ranges: introduced 0, fixed 2.7.0.

Fix versions reported by the advisory: 2.7.0.

Severity: MEDIUM.

CVE-2025-46148

PYSEC-2025-200: Vulnerability

In PyTorch before 2.7.0, when torch.compile is used, FractionalMaxPool2d has inconsistent results.

Published .

Updated .

Reported affected releases: 2.6.0.

Affected ranges: introduced 2.6.0, fixed 2.7.0.

Fix versions reported by the advisory: 2.7.0.

Severity: MEDIUM.

CVE-2025-46150

PYSEC-2025-199: Vulnerability

In PyTorch before 2.7.0, when inductor is used, nn.Fold has an assertion error.

Published .

Updated .

Reported affected releases: 2.6.0.

Affected ranges: introduced 2.6.0, fixed 2.7.0.

Fix versions reported by the advisory: 2.7.0.

Severity: MEDIUM.

CVE-2025-46149

PYSEC-2025-206: Vulnerability

pytorch v2.8.0 was discovered to contain an integer overflow in the component torch.nan_to_num-.long().

Published .

Updated .

Affected ranges: introduced 0, fixed 2.9.0.

Fix versions reported by the advisory: 2.9.0.

Severity: MEDIUM.

CVE-2025-55554

PYSEC-2024-250: Vulnerability

Pytorch before v2.2.0 has an Out-of-bounds Read vulnerability via the component torch/csrc/jit/mobile/flatbuffer_loader.cpp.

Published .

Updated .

Affected ranges: introduced 0, fixed 7c35874ad664e74c8e4252d67521f3986eadb0e6, fixed 7c35874ad664e74c8e4252d67521f3986eadb0e6; introduced 0, fixed 2.2.0.

Fix versions reported by the advisory: 2.2.0.

Severity: MEDIUM.

CVE-2024-31584

PYSEC-2026-139: Vulnerability

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 be used. The project …

Published .

Updated .

Affected ranges: introduced 0, last_affected 2.10.0.

Severity: HIGH.

CVE-2026-4538

GHSA-pg7h-5qx3-wjr3: Vulnerability

Pytorch use-after-free vulnerability

Published .

Updated .

Affected ranges: introduced 0, fixed 2.2.0.

Fix versions reported by the advisory: 2.2.0.

Severity: HIGH.

CVE-2024-31583

GHSA-3749-ghw9-m3mg: Vulnerability

PyTorch susceptible to local Denial of Service

Published .

Updated .

Affected ranges: introduced 0, fixed 2.7.1-rc1.

Fix versions reported by the advisory: 2.7.1-rc1.

Severity: MEDIUM.

CVE-2025-2953

GHSA-887c-mr87-cxwp: Vulnerability

PyTorch Improper Resource Shutdown or Release vulnerability

Published .

Updated .

Affected ranges: introduced 0, fixed 2.8.0.

Fix versions reported by the advisory: 2.8.0.

Severity: MEDIUM.

CVE-2025-3730

PYSEC-2025-196: Vulnerability

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 and may be used.

Published .

Updated .

Affected ranges: introduced 0, last_affected 2.6.0-NA.

Severity: MEDIUM.

CVE-2025-3121

PYSEC-2025-197: Vulnerability

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 approached locally. The e…

Published .

Updated .

Affected ranges: introduced 0, last_affected 2.6.0-NA.

Severity: LOW.

CVE-2025-3136

GHSA-5pcm-hx3q-hm94: Vulnerability

PyTorch heap buffer overflow vulnerability

Published .

Updated .

Affected ranges: introduced 0, fixed 2.2.0.

Fix versions reported by the advisory: 2.2.0.

Severity: MEDIUM.

CVE-2024-31580

More reports are available in the interactive package view.

Source: OSV, including OpenSSF malicious-package reports and GitHub advisories. No known report is not proof a package is safe.