CVE-2025-2998
PyTorch torch.nn.utils.rnn.pad_packed_sequence memory corruption
5.3
MEDIUM
CVSS 3.1
EPSS 0.18%
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.
How to fix CVE-2025-2998
To remediate CVE-2025-2998, upgrade the affected package to a fixed version below.
- —upgrade to 2.7.0 or later
- —no fix listed
- —no fix listed
- —no fix listed
Is CVE-2025-2998 being exploited?
Low — EPSS is 0.2%, meaning exploitation activity has not been observed at scale.
Affected packages (4)
- >= 2.6.0, < 2.7.0
- from 0
- from 0, <= 2.6.0
- from 0, <= 2.6.0-NA
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 4.0 | — | 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 |
| osv | CVSS 3.1 | MEDIUM5.3 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L |