Skip to content
Fencer Vulns
high 7.8

CVE-2024-31583 json

Pytorch use-after-free vulnerability

published 2024-04-17 2 y ago modified 2026-09-08 2 mo ago also BIT-pytorch-2024-31583 , EUVD-2024-1265 , GHSA-pg7h-5qx3-wjr3 , PYSEC-2024-251

cvss
7.8
version 3.1, CNA
cisa kev
Not listed
not in CISA's catalog
epss
0.3%
EPSS 0.3% chance of exploitation in 30 days, percentile 18%
public exploits
0
none known

Summary

Pytorch before version v2.2.0 was discovered to contain a use-after-free vulnerability in torch/csrc/jit/mobile/interpreter.cpp.

Patch / fix

  • pypi torch 2.2.0
  • bitnami pytorch 2.2.1
  • linuxfoundation pytorch 2.2.0
  • pytorch Debian 14, Debian 13 2.4.1-1

debian advisories DEBIAN-CVE-2024-31583

  • pytorch CBL-Mariner 2.0 2.0.0-4

azure linux advisories AZL-39942

Azure Linux vulnerability data, Copyright (c) Microsoft Corporation, from https://github.com/microsoft/AzureLinuxVulnerabilityData via OSV, under the MIT licence; changed: normalised to fixed package versions per release. MIT

CISA SSVC

Exploitation
none
Automatable
no
Technical impact
total
Assessed
2 y ago

Exploit prediction

0.27% chance of exploitation in the next 30 days, higher than 18% of all scored CVEs (FIRST EPSS, 2026-11-08).

CVSS scores

assigned by version score vector
CISA ADP 3.1 7.8 CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
GitHub 3.1 7.8 CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
CNA 3.1 7.8 CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
OSV 3.1 7.8 CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Affected packages

ecosystem package affected fixed in
pypi torch
<2.2.0
2.2.0
bitnami pytorch
<2.2.1
2.2.1

Affected products

  • pytorchlightning pytorch_lightning

Classification

Weakness

References

Sources

Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.