Medium severity · published Mar 31, 2025
CVE-2025-2998
PyTorch torch.nn.utils.rnn.pad_packed_sequence memory corruption
5.3
CVSS
0.2%
EPSS
No
On KEV
Description
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.
CVSS vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L
Attack vector
Local
Complexity
Low
Privileges
Low
User interaction
None
Confidentiality
Low
Integrity
Low
Availability
Low
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)0.2% · higher than 10% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
PY
PyTorch ·
2.6.0 · source: vendor, NVD
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2025-2998
CVE.org
https://www.cve.org/CVERecord?id=CVE-2025-2998
Issue Tracking
https://github.com/pytorch/pytorch/issues/149622
Issue Tracking
https://github.com/pytorch/pytorch/issues/149622#issue-2935495265
Permissions Required
https://vuldb.com/?ctiid.302047
Third Party Advisory
https://vuldb.com/?id.302047
Third Party Advisory
https://vuldb.com/?submit.524151
More from PyTorch
7.8
CVE-2026-4538
PyTorch pt2 Loading deserialization
7.5
CVE-2025-2148
PyTorch Tuple torch.ops.profiler._call_end_callbacks_on_jit_fut memory corruption
5.5
CVE-2025-3730
PyTorch LossCTC.cpp torch.nn.functional.ctc_loss denial of service
5.5
CVE-2025-3121
PyTorch torch.jit.jit_module_from_flatbuffer memory corruption
5.5
CVE-2025-2953
PyTorch torch.mkldnn_max_pool2d denial of service
