PyTorch is vulnerable to memory corruption through its torch.jit.script function
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.
Affected software
Click a technology to see all vulnerabilities affecting it.
| Platform | Package | Vulnerable versions | Fixed in |
|---|---|---|---|
| Python (PyPI) | torch | < 2.13.0 | 2.13.0 |
References
- https://vuldb.com/?id.302049
- https://vuldb.com/?submit.524197
- https://github.com/pytorch/pytorch/issues/149623
- https://github.com/pytorch/pytorch/issues/149623#issue-2935703015
- https://vuldb.com/?ctiid.302049
- https://github.com/advisories/GHSA-rrmf-rvhw-rf47
- https://nvd.nist.gov/vuln/detail/CVE-2025-3000
- https://github.com/pytorch/pytorch/commit/b90c94991cdf8b87c8f7439f79518e0ef2c4ca4f
- https://github.com/pypa/advisory-database/tree/main/vulns/torch/PYSEC-2025-194.yaml
- https://github.com/pytorch/pytorch
- CVSS vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L- Weakness (CWE)
CWE-119- Platform
- Python (PyPI)
- Package
torch- Disclosed
- 31.03.2025
- Updated
- 11.10.2026 15:17
Sources and licenses
OSV / GitHub Advisory Database - PYSEC-2025-194 - PyPA Advisory Database; CC BY 4.0
OSV / GitHub Advisory Database - GHSA-rrmf-rvhw-rf47 - CC BY 4.0
Vulnerability history: torch
All published vulnerabilities of this package (Python (PyPI)), newest first. Shows whether this is a one-off slip or a package that needs watching.
- Total entries
- 31
- First → latest
- 11.2022 03.2026
- Without a fix
- 9
- Exploited in attacks
- 0
Severity breakdown
- Critical 3
- High 10
- Medium 11
- Low 5
- Unrated 2
Disclosures per year
- 2022: 1
- 2023: 0
- 2024: 4
- 2025: 24
- 2026: 2
-
PyTorch is vulnerable to memory corruption through its torch.jit.script function this entry
Know which vulnerabilities affect your application
With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.