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

CVE-2025-2999: PyTorch is vulnerable to memory corruption through its unpack_sequence function

mediumCVSS 4.0 4.8 · 3.1 5.3GHSA-vgrw-7cvw-pwgx

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

Published Mar 31, 2025 · Updated Jun 10, 2026

Affected packages

torch

Ecosystem
PyPI
Affected
< 2.9.1
Fixed in
2.9.1
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 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.

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