{"id":"PYSEC-2024-328","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","GHSA-5pcm-hx3q-hm94","PYSEC-2024-252"],"modified":"2026-07-27T12:26:34.306757669Z","published":"2024-04-17T19:15:07.783Z","references":[{"type":"ADVISORY","url":"https://gist.github.com/1047524396/038c78f2f007345e6f497698ace2aa3d"},{"type":"FIX","url":"https://github.com/pytorch/pytorch/commit/b5c3a17c2c207ebefcb85043f0cf94be9b2fef81"}],"affected":[{"package":{"name":"torch-npu","ecosystem":"PyPI","purl":"pkg:pypi/torch-npu"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.2.0"}]}],"versions":["2.1.0","2.1.0.post10","2.1.0.post12","2.1.0.post13","2.1.0.post17","2.1.0.post3","2.1.0.post6","2.1.0.post8","2.1.0rc1","2.2.0rc1"],"ecosystem_specific":{},"database_specific":{"source":"https://github.com/pypa/advisory-database/blob/main/vulns/torch-npu/PYSEC-2024-328.yaml"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L"}]}