NewApp Monitoring is liveSign up free
AgentbeamBeta
Open-source package vulnerability · PyPI

CVE-2024-31580: PyTorch heap buffer overflow vulnerability

highCVSS 4.0 8.7 · 3.1 7.5GHSA-5pcm-hx3q-hm94

PyTorch before v2.2.0 was discovered to contain a heap buffer overflow vulnerability in the component /runtime/varargfunctions.cpp. This vulnerability allows attackers to cause a Denial of Service (DoS) via a crafted input.

Published Apr 17, 2024 · Updated Jun 11, 2025

Affected packages

torch

Ecosystem
PyPI
Affected
< 2.2.0
Fixed in
2.2.0
Check
pip show torch

Advisory details

From the GitHub Advisory Database (CC BY 4.0).

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.

Credited to levpachmanov.

References

How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology

More PyPI vulnerabilities

All PyPI entries