{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2024-31580","id":"CVE-2024-31580","title":"PyTorch heap buffer overflow vulnerability","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.","descriptionLong":"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.","published":"2024-04-17T00:00:00.000Z","updated":"2026-10-28T10:54:36.592291815Z","reserved":"2024-04-05T00:00:00.000Z","status":"Analyzed","rejected":false,"assigner":"mitre","metric":{"version":"3.1","score":4,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","rating":"medium","source":"CISA-ADP"},"metrics":[{"version":"4.0","score":null,"vector":"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","rating":"high","source":"GitHub"},{"version":"3.1","score":4,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","rating":"medium","source":"CISA-ADP"},{"version":"3.1","score":4,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","rating":"medium","source":"OSV"},{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","rating":"high","source":"GitHub"}],"rating":"medium","products":[],"affectedProducts":[{"vendor":"n/a","product":"n/a","defaultStatus":null,"versions":[{"version":"n/a","status":"affected"}],"platforms":[]}],"packages":[{"ecosystem":"PyPI","name":"torch","purl":"pkg:pypi/torch","ranges":["<2.2.0"],"fixed":["2.2.0"],"advisory":"GHSA-5pcm-hx3q-hm94"},{"ecosystem":"PyPI","name":"torch-npu","purl":"pkg:pypi/torch-npu","ranges":["<2.2.0"],"fixed":["2.2.0"],"advisory":"PYSEC-2024-328"}],"cwes":["CWE-122"],"aliases":["BIT-pytorch-2024-31580","GHSA-5pcm-hx3q-hm94","PYSEC-2024-252","PYSEC-2024-328"],"references":[{"url":"https://github.com/pytorch/pytorch/commit/b5c3a17c2c207ebefcb85043f0cf94be9b2fef81","tags":["x_transferred","Patch","fix","web"]},{"url":"https://gist.github.com/1047524396/038c78f2f007345e6f497698ace2aa3d","tags":["x_transferred","Third Party Advisory","web","advisory"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/31xxx/CVE-2024-31580.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-31580","tags":["advisory"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/torch/PYSEC-2024-252.yaml","tags":["web"]},{"url":"https://github.com/pytorch/pytorch","tags":["package"]},{"url":"https://security.snyk.io/vuln/SNYK-PYTHON-TORCH-6649934","tags":["web"]},{"url":"https://github.com/advisories/GHSA-5pcm-hx3q-hm94","tags":["advisory"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial"},"epss":0.00225,"epssPercentile":0.13358,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2024-31580","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-31580","ok":true,"note":"Analyzed"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2024-31580","ok":true,"note":"2 packages"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-5pcm-hx3q-hm94","ok":true,"note":"GHSA-5pcm-hx3q-hm94"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2024-31580","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}