{"id":"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.","aliases":["BIT-pytorch-2025-2998","GHSA-f4hp-rmr7-r7v8","PYSEC-2025-192"],"modified":"2026-08-12T03:51:32.054599768Z","published":"2025-03-31T14:00:12.169Z","database_specific":{"cwe_ids":["CWE-119"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/2xxx/CVE-2025-2998.json","cna_assigner":"VulDB"},"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"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/pytorch/pytorch","events":[{"introduced":"1eba9b3aa3c43f86f4a2c807ac8e12c4a7767340"},{"last_affected":"1eba9b3aa3c43f86f4a2c807ac8e12c4a7767340"}],"database_specific":{"extracted_events":[{"introduced":"2.6.0"},{"last_affected":"2.6.0"},{"introduced":"2.6.0-NA"},{"last_affected":"2.6.0-NA"}],"source":["AFFECTED_FIELD","CPE_STRING"],"cpe":"cpe:2.3:a:linuxfoundation:pytorch:2.6.0:-:*:*:*:python:*:*"}}],"versions":["2.6.0","2.6.0-NA","v2.6.0"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-2998.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V4","score":"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"}]}