CVE-2025-2998Improper Restriction of Operations within the Bounds of a Memory Buffer in Pytorch

Severity
4.8MEDIUMNVD
EPSS
0.1%
top 65.98%
CISA KEV
Not in KEV
Exploit
No known exploits
Timeline
PublishedMar 31

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:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N

🔴Vulnerability Details

2
GHSA
GHSA-f4hp-rmr7-r7v8: A vulnerability was found in PyTorch 22025-03-31
OSV
CVE-2025-2998: A vulnerability was found in PyTorch 22025-03-31

📋Vendor Advisories

2
Microsoft
PyTorch torch.nn.utils.rnn.pad_packed_sequence memory corruption2025-03-11
Debian
CVE-2025-2998: pytorch - A vulnerability was found in PyTorch 2.6.0. It has been declared as critical. Af...2025