{"id":"CVE-2024-31583","aliases":["BIT-pytorch-2024-31583","GHSA-pg7h-5qx3-wjr3","PYSEC-2024-251"],"url":"https://o3.security/vulnerability/CVE-2024-31583","summary":"Pytorch use-after-free vulnerability","details":"Pytorch before version v2.2.0 was discovered to contain a use-after-free vulnerability in torch/csrc/jit/mobile/interpreter.cpp.","published":"2024-04-17T00:00:00Z","modified":"2026-07-22T03:08:56.304049Z","cvss":{"score":7.8,"severity":"HIGH","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"},"epss":null,"cisaKev":null,"exploitsKnown":0,"affectedPackages":[{"ecosystem":"PyPI","name":"torch","fixedVersion":"2.2.0"}],"fix":{"url":"https://github.com/pytorch/pytorch/commit/9c7071b0e324f9fb68ab881283d6b8d388a4bcd2","label":"pytorch/pytorch@9c7071b"},"references":[{"type":"WEB","url":"https://gist.github.com/1047524396/43e19a41f2b36503a4a228c32cdbc176"},{"type":"WEB","url":"https://github.com/pytorch/pytorch/blob/v2.1.2/torch/csrc/jit/mobile/interpreter.cpp#L132"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/31xxx/CVE-2024-31583.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-31583"},{"type":"FIX","url":"https://github.com/pytorch/pytorch/commit/9c7071b0e324f9fb68ab881283d6b8d388a4bcd2"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-07-22T03:08:56.304049Z"}}