{"id":"CVE-2025-2998","aliases":["BIT-pytorch-2025-2998","GHSA-f4hp-rmr7-r7v8","PYSEC-2025-192"],"url":"https://o3.security/vulnerability/CVE-2025-2998","summary":"PyTorch torch.nn.utils.rnn.pad_packed_sequence memory corruption","details":"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.","published":"2025-03-31T14:00:12.169Z","modified":"2026-08-12T03:51:32.054599768Z","cvss":null,"epss":null,"cisaKev":null,"exploitsKnown":0,"affectedPackages":[{"ecosystem":"PyPI","name":"torch","fixedVersion":null}],"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-2998.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-2998"},{"type":"ADVISORY","url":"https://vuldb.com/?id.302047"},{"type":"ADVISORY","url":"https://vuldb.com/?submit.524151"},{"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.302047"},{"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-192.yaml"},{"type":"PACKAGE","url":"https://github.com/pytorch/pytorch"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-08-12T03:51:32.054599768Z"}}