4

CVE-2024-31580: linuxfoundation pytorch Heap-based Buffer Overflow

Analyzed
AliasesGHSA-5pcm-hx3q-hm94BIT-pytorch-2024-31580PYSEC-2024-252
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 14% of scored vulnerabilities.

Priority
Routine

Not severe (CVSS 4, local access); no exploitation reported by the 5 checked sources

Source freshness unavailable

How is this decided?
CVSS score
4.0/10
010
Medium · v3.1 (CVE.org)
EPSS score
0.22%
0%100%
Low · 0.00 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits0No public exploits recorded

Timeline

  1. 17-04-2024
    PublishedVulnerability first disclosed.
  2. 28-03-2025
    Last 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

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

04-11-202604-12-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

Version check

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
Ubuntu1 product
  • pytorchAll versions (No fix recorded)

4 vendors · 5 products

References

10 links