CVE-2024-31583Linuxfoundation Pytorch
High 7.8
Follow: this CVE · Linuxfoundation · Linuxfoundation Pytorch We alert you by email or Slack (account required).
- Priority
- 47
- CVSS 3.1
- 7.8
- EPSS
- 0.4% probability of exploitation in 30 days · percentile 24
- Auth required
- Yes
- Published
- Apr 17, 2024
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-416
- SSVC (CISA)
- Exploitation: none · Automatable: no · Technical impact: total
- Vector
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
What happens
Pytorch before version v2.2.0 was discovered to contain a use-after-free vulnerability in torch/csrc/jit/mobile/interpreter.cpp.
What to do
- Apply the vendor's security update for Pytorch.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| PyPI | torch |
< 2.2.0 |
2.2.0 |
pip install "torch>=2.2.0" |
| PyPI | torch |
< 2.2.0 |
2.2.0 |
pip install "torch>=2.2.0" |
Per OSV / GitHub Advisories (GHSA-pg7h-5qx3-wjr3, PYSEC-2024-251). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| linuxfoundation | pytorch | < 2.2.0 |
Official sources
References
Links published by the sources. Open them with care.
- gist.github.com Third Party Advisory
- github.com Product
- github.com Patch