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

CVE-2025-2998: PyTorch is Vulnerable to Memory Consumption through pad_packed_sequence Function

mediumCVSS 4.0 4.8 · 3.1 5.3GHSA-f4hp-rmr7-r7v8

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.padpackedsequence. 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.

Published Mar 31, 2025 · Updated Jun 9, 2026

Affected packages

torch

Ecosystem
PyPI
Affected
<= 2.6.0
Fixed in
No patched version yet
Check
pip show torch

Advisory details

From the GitHub Advisory Database (CC BY 4.0).

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.

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