CVE-2025-2999
MEDIUM 4.8CVSS 4.0PyTorch is vulnerable to memory corruption through its unpack_sequence function
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.
- Published
- 31 Mar 2025
- Last modified
- 13 Jul 2026
- Assigned by
- cna@vuldb.com
- NVD status
- Analyzed
- Weakness
- CWE-119
- Also known as
- BIT-pytorch-2025-2999GHSA-vgrw-7cvw-pwgxPYSEC-2025-193
- Sources
- NVDJSONOSV GHSA-vgrw-7cvw-pwgxJSONOSV PYSEC-2025-193JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | cna@vuldb.com (Secondary) | CVSS 4.0 | MEDIUM 4.8 | 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X |
| OSV | GitHub | 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 | PyPA | 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X | |
| NVD | cna@vuldb.com (Secondary) | CVSS 3.1 | MEDIUM 5.3 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L |
| OSV | GitHub | CVSS 3.1 | MEDIUM 5.3 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L |
| NVD | cna@vuldb.com (Secondary) | CVSS 2.0 | MEDIUM 4.3 | AV:L/AC:L/Au:S/C:P/I:P/A:P |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | linuxfoundation | pytorchcpe:2.3:a:linuxfoundation:pytorch:2.6.0:-:*:*:*:python:*:* |
= 2.6.0 | |
| OSV | PyPI | torch | < 2.9.1 | 2.9.1 |
| OSV | PyPI | torch | <= 2.6.0-NA |
References
- https://github.com/pytorch/pytorch/issues/149622 · Issue Tracking, Vendor Advisory, WEB, REPORT
- https://github.com/pytorch/pytorch/issues/149622#issue-2935495265 · Issue Tracking, Vendor Advisory, WEB, REPORT
- https://vuldb.com/?ctiid.302048 · Permissions Required, VDB Entry, WEB, REPORT
- https://vuldb.com/?id.302048 · Third Party Advisory, VDB Entry, WEB, ADVISORY
- https://vuldb.com/?submit.524198 · Third Party Advisory, VDB Entry, WEB, ADVISORY
- https://nvd.nist.gov/vuln/detail/CVE-2025-2999 · ADVISORY
- https://github.com/pytorch/pytorch/commit/494518046816d29099b7d056a74ffa5c244fdcdd · WEB
- https://github.com/pypa/advisory-database/tree/main/vulns/torch/PYSEC-2025-193.yaml · WEB
- https://github.com/pytorch/pytorch · PACKAGE
- https://github.com/advisories/GHSA-vgrw-7cvw-pwgx · ADVISORY
History
- 25 Nov 2026 20:57 UTC · NVD: first stored (published 31 Mar 2025)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 31 Mar 2025)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 31 Mar 2025)