Browse / AI Framework and Platform Flaws / CVE-2024-31580
PyTorch heap buffer overflow vulnerability
- Class
- AI Framework and Platform Flaws (filed by a model that read the advisory)
- Technique
- Denial of service
- Affected
- torch (PyPI)
- CVSS
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- EPSS
- 0.2% chance of exploitation in 30 days
How it works, in short
A heap buffer overflow in PyTorch's vararg function handling can be triggered by crafted input, crashing the process. (Our summary, written by a model. The source text is below.)
Details
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.
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
Source: GitHub Advisory Database, used under CC BY 4.0.