CVE-2024-31580: linuxfoundation pytorch Heap-based Buffer Overflow
Vulnerability summary
CVE-2024-31580 is a medium (CVSS 4.0) Heap-based Buffer Overflow vulnerability in linuxfoundation pytorch. EPSS estimates a 0.22% chance of exploitation in the next 30 days, higher than 14% of scored vulnerabilities.
Not severe (CVSS 4, local access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Timeline
- 17-04-2024PublishedVulnerability first disclosed.
- 28-03-2025Last modifiedVulnerability information updated.
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.
CVSS metrics
5 scores · 5 sources · 1 version- OSV · PypiEcosystem advisory · calculated4.0MediumCVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
- OSV · UbuntuEcosystem advisory · calculated4.0MediumCVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
- OSV · DebianEcosystem advisory · calculated4.0MediumCVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
- NVDNIST4.0MediumCVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
EPSS trend
Probability
0.22%
Chance of exploitation in the next 30 days
Percentile
14%
Versus all other CVEs
30-day change
No change 0.00 pp
From 0.22% on 04-11-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Known conditions: local access, no authentication, no user interaction (CVSS vector). Other conditions: not stated in public data.
PyPI2 products
- torch< b5c3a17c2c207ebefcb85043f0cf94be9b2fef81 | < 2.2.0
- torch-npu< 2.2.0
Debian1 product
- pytorchAll versions (No fix recorded) | < 2.4.1-1
Linuxfoundation1 product
- pytorch< 2.2.0
Ubuntu1 product
- pytorchAll versions (No fix recorded)
4 vendors · 5 products
References
10 links- github.com/pytorch/pytorchPACKAGE