{"id":"GHSA-5pcm-hx3q-hm94","summary":"PyTorch heap buffer overflow vulnerability","details":"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.","aliases":["BIT-pytorch-2024-31580","CVE-2024-31580","PYSEC-2024-252","PYSEC-2024-328"],"modified":"2026-07-29T03:49:03.046989715Z","published":"2024-04-17T21:30:48Z","database_specific":{"cwe_ids":["CWE-122"],"severity":"HIGH","github_reviewed":true,"github_reviewed_at":"2024-07-25T10:11:23Z","nvd_published_at":"2024-04-17T19:15:07Z"},"references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-31580"},{"type":"WEB","url":"https://github.com/pytorch/pytorch/commit/b5c3a17c2c207ebefcb85043f0cf94be9b2fef81"},{"type":"WEB","url":"https://gist.github.com/1047524396/038c78f2f007345e6f497698ace2aa3d"},{"type":"WEB","url":"https://github.com/pypa/advisory-database/tree/main/vulns/torch/PYSEC-2024-252.yaml"},{"type":"PACKAGE","url":"https://github.com/pytorch/pytorch"},{"type":"WEB","url":"https://security.snyk.io/vuln/SNYK-PYTHON-TORCH-6649934"}],"affected":[{"package":{"name":"torch","ecosystem":"PyPI","purl":"pkg:pypi/torch"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.2.0"}]}],"versions":["1.0.0","1.0.1","1.1.0","1.10.0","1.10.1","1.10.2","1.11.0","1.12.0","1.12.1","1.13.0","1.13.1","1.2.0","1.3.0","1.3.1","1.4.0","1.5.0","1.5.1","1.6.0","1.7.0","1.7.1","1.8.0","1.8.1","1.9.0","1.9.1","2.0.0","2.0.1","2.1.0","2.1.1","2.1.2"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2024/04/GHSA-5pcm-hx3q-hm94/GHSA-5pcm-hx3q-hm94.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"},{"type":"CVSS_V4","score":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N"}]}