4.0
MEDIUM
CVE-2024-31580
PyTorch Heap Buffer Overflow Vilnerability
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.

INFO

Published Date :

April 17, 2024, 7:15 p.m.

Last Modified :

June 10, 2025, 5:38 p.m.

Remotely Exploitable :

No

Impact Score :

1.4

Exploitability Score :

2.5
Affected Products

The following products are affected by CVE-2024-31580 vulnerability. Even if cvefeed.io is aware of the exact versions of the products that are affected, the information is not represented in the table below.

ID Vendor Product Action
1 Linuxfoundation pytorch
References to Advisories, Solutions, and Tools

Here, you will find a curated list of external links that provide in-depth information, practical solutions, and valuable tools related to CVE-2024-31580.

URL Resource
https://gist.github.com/1047524396/038c78f2f007345e6f497698ace2aa3d Third Party Advisory
https://github.com/pytorch/pytorch/commit/b5c3a17c2c207ebefcb85043f0cf94be9b2fef81 Patch
https://gist.github.com/1047524396/038c78f2f007345e6f497698ace2aa3d Third Party Advisory
https://github.com/pytorch/pytorch/commit/b5c3a17c2c207ebefcb85043f0cf94be9b2fef81 Patch

We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).

Results are limited to the first 15 repositories due to potential performance issues.

The following list is the news that have been mention CVE-2024-31580 vulnerability anywhere in the article.

The following table lists the changes that have been made to the CVE-2024-31580 vulnerability over time.

Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.

  • Initial Analysis by [email protected]

    Jun. 10, 2025

    Action Type Old Value New Value
    Added CPE Configuration OR *cpe:2.3:a:linuxfoundation:pytorch:*:*:*:*:*:python:*:* versions up to (excluding) 2.2.0
    Added Reference Type CVE: https://gist.github.com/1047524396/038c78f2f007345e6f497698ace2aa3d Types: Third Party Advisory
    Added Reference Type MITRE: https://gist.github.com/1047524396/038c78f2f007345e6f497698ace2aa3d Types: Third Party Advisory
    Added Reference Type CVE: https://github.com/pytorch/pytorch/commit/b5c3a17c2c207ebefcb85043f0cf94be9b2fef81 Types: Patch
    Added Reference Type MITRE: https://github.com/pytorch/pytorch/commit/b5c3a17c2c207ebefcb85043f0cf94be9b2fef81 Types: Patch
  • CVE Modified by 134c704f-9b21-4f2e-91b3-4a467353bcc0

    Mar. 29, 2025

    Action Type Old Value New Value
    Added CVSS V3.1 AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
  • CVE Modified by af854a3a-2127-422b-91ae-364da2661108

    Nov. 21, 2024

    Action Type Old Value New Value
    Added Reference https://gist.github.com/1047524396/038c78f2f007345e6f497698ace2aa3d
    Added Reference https://github.com/pytorch/pytorch/commit/b5c3a17c2c207ebefcb85043f0cf94be9b2fef81
  • CVE Modified by 134c704f-9b21-4f2e-91b3-4a467353bcc0

    Jul. 03, 2024

    Action Type Old Value New Value
    Added CWE CISA-ADP CWE-122
  • CVE Modified by [email protected]

    May. 14, 2024

    Action Type Old Value New Value
  • CVE Received by [email protected]

    Apr. 17, 2024

    Action Type Old Value New Value
    Added 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.
    Added Reference MITRE https://github.com/pytorch/pytorch/commit/b5c3a17c2c207ebefcb85043f0cf94be9b2fef81 [No types assigned]
    Added Reference MITRE https://gist.github.com/1047524396/038c78f2f007345e6f497698ace2aa3d [No types assigned]
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.
CWE - Common Weakness Enumeration

While CVE identifies specific instances of vulnerabilities, CWE categorizes the common flaws or weaknesses that can lead to vulnerabilities. CVE-2024-31580 is associated with the following CWEs:

Common Attack Pattern Enumeration and Classification (CAPEC)

Common Attack Pattern Enumeration and Classification (CAPEC) stores attack patterns, which are descriptions of the common attributes and approaches employed by adversaries to exploit the CVE-2024-31580 weaknesses.

CVSS31 - Vulnerability Scoring System
Attack Vector
Attack Complexity
Privileges Required
User Interaction
Scope
Confidentiality
Integrity
Availability
© cvefeed.io
Latest DB Update: Jun. 24, 2025 11:49