CVE-2025-2999
PyTorch torch.nn.utils.rnn.unpack_sequence memory corruption
- State
- Published
- Severity
- 4.8 Medium
- Published
- Mar 31, 2025
- Updated
- Mar 31, 2025
- Reserved
- Mar 30, 2025
Description
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.
Scores
| CVSS | Score | Vector | Source |
|---|---|---|---|
| 4.0 | 4.8 Medium | 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 | VulDB |
| 3.1 | 5.3 Medium | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L | VulDB |
| 3.0 | 5.3 Medium | CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L | VulDB |
| 2.0 | 4.3 Medium | AV:L/AC:L/Au:S/C:P/I:P/A:P | VulDB |
Weaknesses
- CWE-119 Memory Corruption
Affected Products
| Product | Versions |
|---|---|
PyTorchn/a |
|
References
- VDB-302048 | PyTorch torch.nn.utils.rnn.unpack_sequence memory corruptionvdb-entrytechnical-description
- VDB-302048 | CTI Indicators (IOB, IOC, IOA)signaturepermissions-required
- Submit #524198 | pytorch pytorch (torch.nn.utils.rnn.unpack_sequence) torch 2.6.0 Segmentation faultthird-party-advisory
- https://github.com/pytorch/pytorch/issues/149622issue-tracking
- https://github.com/pytorch/pytorch/issues/149622#issue-2935495265exploitissue-tracking
Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.