CVE-2024-31583: Pytorch before version v2.2.0 was discovered to contain a use-after-free vulnerability in
Affects pytorchSource GCVE Database
Not known to be exploited · CVSS 7.8 High.
Data as of 17 Nov 2026, 20:35 UTC
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:HExploitation evidence
Disclosed: evidence found.
CVE published 11 Jun 2025
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 17 Nov 2026.
What to do
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Ubuntu 26.10pytorchpkg:deb/ubuntu/pytorch?arch=source&distro=stonkingOther threats | Affected
| Fixed in– |
Ubuntu 25.10pytorchpkg:deb/ubuntu/pytorch?arch=source&distro=questingOther threats | Affected
| Fixed in– |
Ubuntu 22.04 LTSpytorchpkg:deb/ubuntu/pytorch?arch=source&distro=jammyOther threats | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
Description
Pytorch before version v2.2.0 was discovered to contain a use-after-free vulnerability in torch/csrc/jit/mobile/interpreter.cpp.
References
- ubuntu.com/security/CVE-2024-31583 (opens in a new tab)
- cve.org/CVERecord?id=CVE-2024-31583 (opens in a new tab)
- github.com/pytorch/pytorch/commit/9c7071b0e324f9fb68ab881283d6b8d388a4bcd2 (opens in a new tab)
- github.com/pytorch/pytorch/blob/v2.1.2/torch/csrc/jit/mobile/interpreter.cpp (opens in a new tab)
- gist.github.com/1047524396/43e19a41f2b36503a4a228c32cdbc176 (opens in a new tab)