{"id":"CVE-2025-2999","aliases":["BIT-pytorch-2025-2999","GHSA-vgrw-7cvw-pwgx","PYSEC-2025-193"],"url":"https://o3.security/vulnerability/CVE-2025-2999","summary":"PyTorch torch.nn.utils.rnn.unpack_sequence memory corruption","details":"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.\n\nA patch is available through commit [4945180](https://github.com/pytorch/pytorch/commit/494518046816d29099b7d056a74ffa5c244fdcdd).","published":"2025-03-31T14:31:04.982Z","modified":"2026-08-12T03:51:39.483435415Z","cvss":null,"epss":null,"cisaKev":null,"exploitsKnown":0,"affectedPackages":[{"ecosystem":"PyPI","name":"torch","fixedVersion":"2.9.1"}],"fix":{"url":"https://github.com/pytorch/pytorch/commit/494518046816d29099b7d056a74ffa5c244fdcdd","label":"pytorch/pytorch@4945180"},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/2xxx/CVE-2025-2999.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-2999"},{"type":"ADVISORY","url":"https://vuldb.com/?id.302048"},{"type":"ADVISORY","url":"https://vuldb.com/?submit.524198"},{"type":"REPORT","url":"https://github.com/pytorch/pytorch/issues/149622"},{"type":"REPORT","url":"https://github.com/pytorch/pytorch/issues/149622#issue-2935495265"},{"type":"REPORT","url":"https://vuldb.com/?ctiid.302048"},{"type":"WEB","url":"https://github.com/pytorch/pytorch/commit/494518046816d29099b7d056a74ffa5c244fdcdd"},{"type":"WEB","url":"https://github.com/pypa/advisory-database/tree/main/vulns/torch/PYSEC-2025-193.yaml"},{"type":"PACKAGE","url":"https://github.com/pytorch/pytorch"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-08-12T03:51:39.483435415Z"}}