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
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
-
- CWE-416 Use After Free
References
-
github.com
/pytorch/pytorch/commit/9c7071b0e324f9fb68ab881283d6b8d388a4bcd2
web, patch
-
github.com
/pytorch/pytorch/blob/v2.1.2/torch/csrc/jit/mobile/interpreter.cpp#L132
web, product
-
gist.github.com
/1047524396/43e19a41f2b36503a4a228c32cdbc176
web, third-party-advisory, advisory
-
nvd.nist.gov
/vuln/detail/CVE-2024-31583
advisory, web
-
github.com
/pypa/advisory-database/tree/main/vulns/torch/PYSEC-2024-251.yaml
web
-
github.com
/pytorch/pytorch
package
-
security.snyk.io
/vuln/SNYK-PYTHON-TORCH-6619806
web
-
github.com
/advisories/GHSA-pg7h-5qx3-wjr3
advisory
Sources
- CVE List CVE-2024-31583
- GitHub Advisory GHSA-pg7h-5qx3-wjr3
- NVD CVE-2024-31583
- OSV BIT-pytorch-2024-31583
- OSV PYSEC-2024-251
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.