# CVE-2024-31583

- Priority: **Routine**
- Reason: Not severe (CVSS 7.8, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2024-04-17 · Modified: 2024-08-02
- Aliases: GHSA-pg7h-5qx3-wjr3, BIT-pytorch-2024-31583, PYSEC-2024-251, UBUNTU-CVE-2024-31583, DEBIAN-CVE-2024-31583
- Record: https://cvemate.com/vulnerability/CVE-2024-31583 · JSON: https://cvemate.com/vulnerability/CVE-2024-31583/json

## Description

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

## Signals

- CVSS: 7.8 high (v3.1, CVE.org) CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- EPSS: 0.268%, percentile 20.205%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- debian pytorch (Debian): All versions (No fix recorded) \| \< 2.4.1-1
- ubuntu pytorch (Ubuntu): All versions (No fix recorded)
- linuxfoundation pytorch: \< 2.2.0
- PyPI torch (PyPI): \< 9c7071b0e324f9fb68ab881283d6b8d388a4bcd2 \| \< 2.2.0

## References

- <https://github.com/pytorch/pytorch/commit/9c7071b0e324f9fb68ab881283d6b8d388a4bcd2>
- <https://github.com/pytorch/pytorch/blob/v2.1.2/torch/csrc/jit/mobile/interpreter.cpp#L132>
- <https://gist.github.com/1047524396/43e19a41f2b36503a4a228c32cdbc176>
- <https://nvd.nist.gov/vuln/detail/CVE-2024-31583>
- <https://github.com/pypa/advisory-database/tree/main/vulns/torch/PYSEC-2024-251.yaml>
- <https://github.com/pytorch/pytorch>
- <https://security.snyk.io/vuln/SNYK-PYTHON-TORCH-6619806>
- <https://github.com/advisories/GHSA-pg7h-5qx3-wjr3>
- <https://ubuntu.com/security/CVE-2024-31583>
- <https://www.cve.org/CVERecord?id=CVE-2024-31583>
- <https://security-tracker.debian.org/tracker/CVE-2024-31583>

---

Data as of 2026-12-05T09:09:11.901Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
