CVEfocus › CVE database › CVE-2024-31580

CVE-2024-31580

CVSS 4.0 MediumEPSS 0.3% (higher than 15% of CVEs)Published 2024-04-17Updated 2025-03-28Assigner: mitre

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.

CWE-122

What to do

Fixed builds are available from Debian, PyPI: see the table below for the fixed version per release.

Debian, Ubuntu have not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

4Fixed
3Fix pending
1Will not fix
1Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.10pytorchFix pendingUBUNTU-CVE-2024-31580
Ubuntu 26.04pytorchNot affected
vulnerable_code_not_present
Ubuntu 25.10pytorchWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2024-31580
Ubuntu 22.04pytorchFix pendingUBUNTU-CVE-2024-31580
Debian 14pytorchFixed2.4.1-1DEBIAN-CVE-2024-31580
Debian 13pytorchFixed2.4.1-1DEBIAN-CVE-2024-31580
Debian 12pytorchFix pendingDEBIAN-CVE-2024-31580
PyPI librarytorchFixed2.2.0PYSEC-2024-252
PyPI librarytorch-npuFixed2.2.0PYSEC-2024-328

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.