{"id":"CVE-2024-31583","aliases":["CVE-2024-31583","GHSA-pg7h-5qx3-wjr3","BIT-PYTORCH-2024-31583","PYSEC-2024-251"],"related":[],"kind":"vulnerability","state":"published","title":"Pytorch use-after-free vulnerability","summary":"Pytorch before version v2.2.0 was discovered to contain a use-after-free vulnerability in torch/csrc/jit/mobile/interpreter.cpp.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Pytorch before version v2.2.0 was discovered to contain a use-after-free vulnerability in torch/csrc/jit/mobile/interpreter.cpp.","source":"cvelist"},{"lang":"es","text":"Se descubrió que Pytorch anterior a la versión v2.2.0 contenía una vulnerabilidad de use-after-free en torch/csrc/jit/mobile/interpreter.cpp.","source":"nvd"}],"published":"2024-04-17T00:00:00.000Z","modified":"2026-09-08T08:48:24.931Z","severity":{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},"severities":[{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},{"scorer":"Bitnami Vulnerability Database","scheme":"rating","rating":"HIGH"}],"cwes":["CWE-416"],"affected":[{"ranges":[{"version":"n/a","status":"affected"}],"source":"cvelist"},{"ranges":[{"version":"2.2.0","status":"affected"}],"vendor":"pytorchlightning","product":"pytorch_lightning","cpe":"cpe:2.3:a:pytorchlightning:pytorch_lightning:*:*:*:*:*:python:*:*","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"2.2.0"}],"ecosystem":"PyPI","package":"torch","purl":"pkg:pypi/torch","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"2.2.0"}],"vendor":"linuxfoundation","product":"pytorch","cpe":"cpe:2.3:a:linuxfoundation:pytorch:*:*:*:*:*:python:*:*","source":"nvd"},{"ranges":[{"type":"git","introduced":"0","status":"affected","fixed":"9c7071b0e324f9fb68ab881283d6b8d388a4bcd2"},{"type":"git","status":"affected","fixed":"9c7071b0e324f9fb68ab881283d6b8d388a4bcd2"},{"type":"ecosystem","introduced":"0","status":"affected","fixed":"2.2.0"}],"ecosystem":"PyPI","package":"torch","purl":"pkg:pypi/torch","repo":"https://github.com/pytorch/pytorch","source":"pysec"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"2.2.1"}],"ecosystem":"Bitnami","package":"pytorch","purl":"pkg:bitnami/pytorch","source":"bitnami"}],"references":[{"url":"https://github.com/pytorch/pytorch/commit/9c7071b0e324f9fb68ab881283d6b8d388a4bcd2","tags":["fix","patch","web","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec","bitnami"]},{"url":"https://github.com/pytorch/pytorch/blob/v2.1.2/torch/csrc/jit/mobile/interpreter.cpp#L132","tags":["product","web","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec","bitnami"]},{"url":"https://gist.github.com/1047524396/43e19a41f2b36503a4a228c32cdbc176","tags":["advisory","third-party-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec","bitnami"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-31583","tags":["advisory","web"],"sources":["ghsa","bitnami"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/torch/PYSEC-2024-251.yaml","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/pytorch/pytorch","tags":["package"],"sources":["ghsa"]},{"url":"https://security.snyk.io/vuln/SNYK-PYTHON-TORCH-6619806","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/advisories/GHSA-pg7h-5qx3-wjr3","tags":["advisory"],"sources":["pysec"]}],"credits":[],"assigner":"mitre","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2024-04-22T17:44:25.074Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-31583","url":"https://www.cve.org/CVERecord?id=CVE-2024-31583","licence":"CVE Terms of Use","modified":"2024-08-02T01:52:57.315Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-pg7h-5qx3-wjr3","url":"https://github.com/advisories/GHSA-pg7h-5qx3-wjr3","licence":"CC-BY-4.0","modified":"2025-06-11T06:29:21.475Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-31583","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-31583","licence":"Public domain","modified":"2026-06-17T07:28:36.677Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2024-251","url":"https://osv.dev/vulnerability/PYSEC-2024-251","licence":"CC-BY-4.0","modified":"2026-06-10T17:51:26.526Z"},{"source":"bitnami","name":"Bitnami Vulnerability Database","id":"BIT-PYTORCH-2024-31583","url":"https://osv.dev/vulnerability/BIT-PYTORCH-2024-31583","licence":"Apache-2.0","modified":"2026-09-08T08:48:24.931Z"}],"updatedAt":"2026-11-25T22:58:39.422Z","epss":{"score":0.00268,"percentile":0.20271,"date":"2026-12-01T12:00:22.000Z"}}