Advisory

GHSA-f4hp-rmr7-r7v8

Also known as: BIT-pytorch-2025-2998, CVE-2025-2998, PYSEC-2025-192

Summary

PyTorch is Vulnerable to Memory Consumption through pad_packed_sequence Function

Details

A vulnerability was found in PyTorch 2.6.0. It has been declared as critical. Affected by this vulnerability is the function torch.nn.utils.rnn.pad_packed_sequence. The manipulation leads to memory corruption. Local access is required to approach this attack. The exploit has been disclosed to the public and may be used.

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2025-03-31 15:30 UTC
Modified
2026-06-09 22:11 UTC

Affected packages and fixes

torch

PyPI · All systems

Affected

  • introduced 0, last affected 2.6.0 (ecosystem)

Fixed versions

None listed

Fix

No fixed version is listed.

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