{"id":"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.","aliases":["BIT-pytorch-2025-2999","GHSA-vgrw-7cvw-pwgx","PYSEC-2025-193"],"modified":"2026-08-12T03:51:39.483435415Z","published":"2025-03-31T14:31:04.982Z","database_specific":{"cna_assigner":"VulDB","cwe_ids":["CWE-119"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/2xxx/CVE-2025-2999.json"},"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"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/pytorch/pytorch","events":[{"introduced":"1eba9b3aa3c43f86f4a2c807ac8e12c4a7767340"},{"last_affected":"1eba9b3aa3c43f86f4a2c807ac8e12c4a7767340"}],"database_specific":{"cpe":"cpe:2.3:a:linuxfoundation:pytorch:2.6.0:-:*:*:*:python:*:*","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"]}}],"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-2999.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"}]}