NewApp Monitoring is liveSign up free
AgentbeamBeta
Open-source package vulnerability · PyPI

CVE-2024-31583: Pytorch use-after-free vulnerability

highCVSS 3.1 7.8GHSA-pg7h-5qx3-wjr3

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

Published Apr 17, 2024 · Updated Jun 10, 2025

Affected packages

torch

Ecosystem
PyPI
Affected
< 2.2.0
Fixed in
2.2.0
Check
pip show torch

Advisory details

From the GitHub Advisory Database (CC BY 4.0).

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

Credited to levpachmanov.

References

How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology

More PyPI vulnerabilities

All PyPI entries