Advisory

GHSA-vgrw-7cvw-pwgx

Also known as: BIT-pytorch-2025-2999, CVE-2025-2999, PYSEC-2025-193

Summary

PyTorch is vulnerable to memory corruption through its unpack_sequence function

Details

A vulnerability was found in PyTorch 2.6.0. It has been rated as critical. Affected by this issue is the function torch.nn.utils.rnn.unpack_sequence. The manipulation leads to memory corruption. Attacking locally is a requirement. The exploit has been disclosed to the public and may be used.

A patch is available through commit 4945180.

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2025-03-31 15:30 UTC
Modified
2026-06-10 17:41 UTC

Affected packages and fixes

torch

PyPI · All systems

Affected

  • introduced 0, fixed 2.9.1 (ecosystem)

Fixed versions

2.9.1

Fix

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

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