high7.8
CVE-2024-31583
Pytorch use-after-free vulnerability
Impact
Pytorch before version v2.2.0 was discovered to contain a use-after-free vulnerability in torch/csrc/jit/mobile/interpreter.cpp.
Affected packages
| Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|
| pip | torch | < 2.2.0 | 2.2.0 |
Affected products
| Vendor | Product | Affected versions |
|---|---|---|
| Linuxfoundation | Pytorch | before 2.2.0 |
Weakness classification
References
- NVD record
- CVE.org record
- GitHub advisory
- https://gist.github.com/1047524396/43e19a41f2b36503a4a228c32cdbc176
- https://github.com/pytorch/pytorch/blob/v2.1.2/torch/csrc/jit/mobile/interpreter.cpp#L132
- https://github.com/pytorch/pytorch/commit/9c7071b0e324f9fb68ab881283d6b8d388a4bcd2
- https://github.com/advisories/GHSA-pg7h-5qx3-wjr3
- https://nvd.nist.gov/vuln/detail/CVE-2024-31583
- https://security.snyk.io/vuln/SNYK-PYTHON-TORCH-6619806
- https://github.com/pypa/advisory-database/tree/main/vulns/torch/PYSEC-2024-251.yaml