CVE-2024-31580: linuxfoundation pytorch Heap-based Buffer Overflow
CVSS: 4.0v3.1MediumAnalyzed
AliasesGHSA-5pcm-hx3q-hm94BIT-pytorch-2024-31580PYSEC-2024-252PYSEC-2024-328UBUNTU-CVE-2024-31580DEBIAN-CVE-2024-31580
Published 17-04-2024Last modified 28-03-2025
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 12.4% of scored vulnerabilities.
CVSS score
4.0/10
010
Medium · v3.1 (CVE.org)EPSS score
0.22%
0%100%
Low · 0.00 pp in 30 daysKEVNot listedIn no KEV catalog
RansomwareNone recordedNo known use recorded
Public exploits0No public exploits recorded
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 versionMedium 4.0Preferred score · CVE.org (CNA)
CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:LSourcesAll 5 agree
- 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
12%
Versus all other CVEs
30-day change
0.00 pp
From 0.22% on 20-09-2026
20-09-202620-10-2026
EPSS score0.22%
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
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