Advisory

GHSA-qfhq-4f3w-5fph

Also known as: BIT-pytorch-2025-3001, CVE-2025-3001, PYSEC-2025-195

Summary

PyTorch is vulnerable to memory corruption through its torch.lstm_cell function

Details

A vulnerability classified as critical was found in PyTorch 2.6.0. This vulnerability affects the function torch.lstm_cell. The manipulation leads to memory corruption. The attack needs to be approached locally. The exploit has been disclosed to the public and may be used.

A patch is available through commit 999d94b.

Severity

Low Basis: The source's own band: LOW

Dates

Published
2025-03-31 18:31 UTC
Modified
2026-06-10 18:26 UTC

Affected packages and fixes

torch

PyPI · All systems

Affected

  • introduced 0, fixed 2.10.0 (ecosystem)

Fixed versions

2.10.0

Fix

  • Fixed version 2.10.0
    pip install --upgrade torch==2.10.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