Vulnerability · Published Apr 17, 2024 · Assigned by mitre
CVE-2024-31580
Medium 4.0
In plain English
A medium-severity heap buffer overflow in the pytorch package (Debian). There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.2% (higher than 13% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Severity (CVSS 3.1)4.0Medium
Exploit odds (30 days)0.2%top 86.7% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known
Official 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 packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | pytorch | no fix listed | DEBIAN-CVE-2024-31580 |
| Debian:13 | pytorch | 2.4.1-1 | DEBIAN-CVE-2024-31580 |
| Debian:14 | pytorch | 2.4.1-1 | DEBIAN-CVE-2024-31580 |
| PyPI | torch | 2.2.0 | GHSA-5pcm-hx3q-hm94 |
| PyPI | torch | 2.2.0 | PYSEC-2024-252 |
| PyPI | torch-npu | 2.2.0 | PYSEC-2024-328 |
| Ubuntu:22.04:LTS | pytorch | no fix listed | UBUNTU-CVE-2024-31580 |
| Ubuntu:25.10 | pytorch | no fix listed | UBUNTU-CVE-2024-31580 |
| Ubuntu:26.04:LTS | pytorch | no fix listed | UBUNTU-CVE-2024-31580 |
| Ubuntu:26.10 | pytorch | no fix listed | UBUNTU-CVE-2024-31580 |
Affected products (as reported)
Weakness: CWE-122 · Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L