CVE-2024-31583
HIGH 7.8CVSS 3.1Pytorch use-after-free vulnerability
Pytorch before version v2.2.0 was discovered to contain a use-after-free vulnerability in torch/csrc/jit/mobile/interpreter.cpp.
- Published
- 17 Apr 2024
- Last modified
- 17 Jun 2026
- Assigned by
- cve@mitre.org
- NVD status
- Analyzed
- Weakness
- CWE-416
- Also known as
- BIT-pytorch-2024-31583GHSA-pg7h-5qx3-wjr3PYSEC-2024-251
- Sources
- NVDJSONOSV GHSA-pg7h-5qx3-wjr3JSONOSV PYSEC-2024-251JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | 134c704f-9b21-4f2e-91b3-4a467353bcc0 (Secondary) | CVSS 3.1 | HIGH 7.8 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | HIGH 7.8 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | linuxfoundation | pytorchcpe:2.3:a:linuxfoundation:pytorch:*:*:*:*:*:python:*:* |
< 2.2.0 | 2.2.0 |
| OSV | PyPI | torch | < 2.2.0 | 2.2.0 |
References
- https://gist.github.com/1047524396/43e19a41f2b36503a4a228c32cdbc176 · Third Party Advisory, WEB
- https://github.com/pytorch/pytorch/blob/v2.1.2/torch/csrc/jit/mobile/interpreter.cpp#L132 · Product, WEB
- https://github.com/pytorch/pytorch/commit/9c7071b0e324f9fb68ab881283d6b8d388a4bcd2 · Patch, WEB, FIX
- https://nvd.nist.gov/vuln/detail/CVE-2024-31583 · ADVISORY
- https://github.com/pypa/advisory-database/tree/main/vulns/torch/PYSEC-2024-251.yaml · WEB
- https://github.com/pytorch/pytorch · PACKAGE
- https://security.snyk.io/vuln/SNYK-PYTHON-TORCH-6619806 · WEB
- https://github.com/advisories/GHSA-pg7h-5qx3-wjr3 · ADVISORY
History
- 25 Nov 2026 20:55 UTC · NVD: first stored (published 17 Apr 2024)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 17 Apr 2024)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 17 Apr 2024)