Advisory

GHSA-pg7h-5qx3-wjr3

Also known as: BIT-pytorch-2024-31583, CVE-2024-31583, PYSEC-2024-251

Summary

Pytorch use-after-free vulnerability

Details

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

Severity

High Basis: The source's own band: HIGH

Dates

Published
2024-04-17 21:30 UTC
Modified
2025-06-11 06:29 UTC

Affected packages and fixes

torch

PyPI · All systems

Affected

  • introduced 0, fixed 2.2.0 (ecosystem)

Fixed versions

2.2.0

Fix

  • Fixed version 2.2.0
    pip install --upgrade torch==2.2.0

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences