4.0medium
PyTorch heap buffer overflow vulnerability
- Severity
- 4.0medium CVSS:3.1 by CISA-ADP
- Exploit likelihood
- 0.22% (higher than 14% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- mitre
- Also known as
- GHSA-5pcm-hx3q-hm94BIT-PYTORCH-2024-31580PYSEC-2024-252PYSEC-2024-328
Description
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
| Product or package | Versions | Reported by |
|---|---|---|
| Unspecified product | n/a | CVE List |
| pytorch pytorch | before 2.2.0 | CVE List |
| torch (PyPI) | before 2.2.0, before b5c3a17c2c207ebefcb85043f0cf94be9b2fef81 | GitHub Advisory Database, PyPA Advisory Database |
| linuxfoundation pytorch | before 2.2.0 | NVD |
| torch-npu (PyPI) | before 2.2.0 | PyPA Advisory Database |
| pytorch (Bitnami) | before 2.2.1 | Bitnami Vulnerability Database |
All scores
| CISA-ADP | 4.0medium CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L |
| GitHub | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| GitHub | high CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N |
| PyPA Advisory Database | 4.0medium CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L |
| Bitnami Vulnerability Database | medium rating |
Classification
SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial.
What each source says
CVE List
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.
NVD (es)
Se descubrió que PyTorch anterior a v2.2.0 contenía una vulnerabilidad de desbordamiento de búfer de almacenamiento dinámico en el componente /runtime/vararg_functions.cpp. Esta vulnerabilidad permite a los atacantes provocar una denegación de servicio (DoS) mediante una entrada manipulada.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2024-31580 changed 2025-03-28 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-5pcm-hx3q-hm94 changed 2026-07-27 | CC-BY-4.0 |
| NVD | CVE-2024-31580 changed 2026-06-17 | Public domain |
| PyPA Advisory Database | PYSEC-2024-252 changed 2026-07-27 | CC-BY-4.0 |
| PyPA Advisory Database | PYSEC-2024-328 changed 2026-07-27 | CC-BY-4.0 |
| Bitnami Vulnerability Database | BIT-PYTORCH-2024-31580 changed 2026-09-08 | Apache-2.0 |