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 (D
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.
Affected software
Click a technology to see all vulnerabilities affecting it.
| Platform | Package | Vulnerable versions | Fixed in |
|---|---|---|---|
| Python (PyPI) | torch | < 2.2.0 | 2.2.0 |
| Python (PyPI) | torch-npu | < 2.2.0 | 2.2.0 |
References
- https://nvd.nist.gov/vuln/detail/CVE-2024-31580
- https://github.com/pytorch/pytorch/commit/b5c3a17c2c207ebefcb85043f0cf94be9b2fef81
- https://gist.github.com/1047524396/038c78f2f007345e6f497698ace2aa3d
- https://github.com/pypa/advisory-database/tree/main/vulns/torch/PYSEC-2024-252.yaml
- https://github.com/pytorch/pytorch
- https://security.snyk.io/vuln/SNYK-PYTHON-TORCH-6649934
- https://github.com/advisories/GHSA-5pcm-hx3q-hm94
- CVSS vector
CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L- Weakness (CWE)
CWE-122- Platform
- Python (PyPI)
- Package
torch, torch-npu- Disclosed
- 17.04.2024
- Updated
- 11.10.2026 14:18
Sources and licenses
OSV / GitHub Advisory Database - PYSEC-2024-252 - PyPA Advisory Database; CC BY 4.0
OSV / GitHub Advisory Database - GHSA-5pcm-hx3q-hm94 - CC BY 4.0
OSV / GitHub Advisory Database - PYSEC-2024-328 - PyPA Advisory Database; CC BY 4.0
Vulnerability history: torch-npu
All published vulnerabilities of this package (Python (PyPI)), newest first. Shows whether this is a one-off slip or a package that needs watching.
This is the only known vulnerability of this package.
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.