CVE-2024-31580
CVE-2024-31580 is a medium-severity vulnerability in Linuxfoundation Pytorch with a CVSS 3.x base score of 4.0. It is not currently listed as actively exploited by CISA, and its EPSS exploit-prediction score is low. The underlying weakness is classified as CWE-122.
Key facts
- Severity: Medium (CVSS 3.x base score 4.0)
- EPSS exploit prediction: 0% (13th percentile)
- Actively exploited: Not listed in CISA KEV
- EU (EUVD) id: EUVD-2024-1105
- Weakness: CWE-122
- Affected product: Linuxfoundation Pytorch
- Published:
- Last modified:
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.
Frequently asked questions
- What is CVE-2024-31580?
- 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.
- How severe is CVE-2024-31580?
- CVE-2024-31580 has a CVSS 3.x base score of 4.0, rated medium severity. It is exploitable over local access with low attack complexity, requires no privileges and no user interaction. Impact on confidentiality is none, integrity none, and availability low.
- Is CVE-2024-31580 being actively exploited?
- It is not currently listed in CISA's KEV catalog. Its EPSS exploit-prediction score is 0% (13th percentile), an estimate of the probability of exploitation in the next 30 days.
- What products are affected by CVE-2024-31580?
- CVE-2024-31580 affects Linuxfoundation Pytorch. See the affected-products list for the exact vulnerable versions.
- How do I fix CVE-2024-31580?
- Review the linked vendor and NVD advisories for patched versions and mitigations, then upgrade or apply the recommended workaround.
- Does CVE-2024-31580 have an EU (EUVD) identifier?
- Yes. CVE-2024-31580 is tracked in the ENISA EU Vulnerability Database (EUVD) as EUVD-2024-1105.
- When was CVE-2024-31580 published?
- CVE-2024-31580 was published on 2024-04-17 and last updated on 2026-06-17.
References
- https://gist.github.com/1047524396/038c78f2f007345e6f497698ace2aa3d
- https://github.com/pytorch/pytorch/commit/b5c3a17c2c207ebefcb85043f0cf94be9b2fef81
Affected products (1)
- cpe:2.3:a:linuxfoundation:pytorch:*:*:*:*:*:python:*:*
More vulnerabilities in Linuxfoundation Pytorch
- CVE-2025-32434 — Critical (CVSS 9.8): PyTorch is a Python package that provides tensor computation with strong GPU acceleration and deep neural networks…
- CVE-2024-48063 — Critical (CVSS 9.8): In PyTorch <=2.4.1, the RemoteModule has Deserialization RCE. NOTE: this is disputed by multiple parties because this…
- CVE-2022-45907 — Critical (CVSS 9.8): In PyTorch before trunk/89695, torch.jit.annotations.parse_type_line can cause arbitrary code execution because eval is…
- CVE-2026-24747 — High (CVSS 8.8): PyTorch is a Python package that provides tensor computation. Prior to version 2.10.0, a vulnerability in PyTorch's…
- CVE-2024-31583 — High (CVSS 7.8): Pytorch before version v2.2.0 was discovered to contain a use-after-free vulnerability in…
- CVE-2025-55560 — High (CVSS 7.5): An issue in pytorch v2.7.0 can lead to a Denial of Service (DoS) when a PyTorch model consists of…
All CVEs affecting Linuxfoundation Pytorch →
Other CWE-122 (Heap-based Buffer Overflow) vulnerabilities
- CVE-2026-46752 — Critical (CVSS 10.0): Redis Lua HEAP overflow in cjson library vulnerability in Apache Kvrocks. This issue affects Apache Kvrocks: from…
- CVE-2026-24822 — Critical (CVSS 10.0): Out-of-bounds Write, Heap-based Buffer Overflow vulnerability in ttttupup wxhelper (src modules). This vulnerability is…
- CVE-2025-23123 — Critical (CVSS 10.0): A malicious actor with access to the management network could execute a remote code execution (RCE) by exploiting a…
- CVE-2022-34819 — Critical (CVSS 10.0): A vulnerability has been identified in SIMATIC CP 1242-7 V2 (All versions < V3.3.46), SIMATIC CP 1243-1 (All versions <…
- CVE-2026-44050 — Critical (CVSS 9.9): A heap-based buffer overflow in the CNID daemon comm_rcv() function in Netatalk 2.0.0 through 4.4.2 allows a remote…
- CVE-2026-49841 — Critical (CVSS 9.8): FreeSWITCH is a Software Defined Telecom Stack enabling the digital transformation from proprietary telecom switches to…
Browse all CWE-122 (Heap-based Buffer Overflow) vulnerabilities →