{"id":"CVE-2025-2999","aliases":["CVE-2025-2999","GHSA-vgrw-7cvw-pwgx","BIT-PYTORCH-2025-2999","PYSEC-2025-193"],"related":[],"kind":"vulnerability","state":"published","title":"PyTorch torch.nn.utils.rnn.unpack_sequence memory corruption","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"de","text":"Eine kritische Schwachstelle wurde in PyTorch 2.6.0 ausgemacht. Betroffen davon ist die Funktion torch.nn.utils.rnn.unpack_sequence. Durch Beeinflussen mit unbekannten Daten kann eine memory corruption-Schwachstelle ausgenutzt werden. Der Angriff muss lokal passieren. Der Exploit steht zur öffentlichen Verfügung.","source":"cvelist"},{"lang":"en","text":"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).","format":"markdown","source":"ghsa"},{"lang":"es","text":"Se encontró una vulnerabilidad en PyTorch 2.6.0. Se ha clasificado como crítica. Este problema afecta a la función torch.nn.utils.rnn.unpack_sequence. La manipulación provoca corrupción de memoria. Es necesario realizar ataques locales. Se ha hecho público el exploit y puede que sea utilizado.","source":"nvd"}],"published":"2025-03-31T14:31:04.982Z","modified":"2026-09-08T08:48:24.937Z","severity":{"scorer":"VulDB","scheme":"CVSS:4.0","vector":"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","score":4.8,"rating":"MEDIUM"},"severities":[{"scorer":"VulDB","scheme":"CVSS:4.0","vector":"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","score":4.8,"rating":"MEDIUM"},{"scorer":"VulDB","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L","score":5.3,"rating":"MEDIUM"},{"scorer":"VulDB","scheme":"CVSS:3.0","vector":"CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L","score":5.3,"rating":"MEDIUM"},{"scorer":"VulDB","scheme":"CVSS:2.0","vector":"AV:L/AC:L/Au:S/C:P/I:P/A:P","score":4.3,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L","score":5.3,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"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","rating":"MEDIUM"},{"scorer":"PyPA Advisory Database","scheme":"CVSS:4.0","vector":"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"},{"scorer":"Bitnami Vulnerability Database","scheme":"rating","rating":"MEDIUM"}],"cwes":["CWE-119"],"affected":[{"ranges":[{"version":"2.6.0","status":"affected"}],"product":"PyTorch","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"2.9.1"}],"ecosystem":"PyPI","package":"torch","purl":"pkg:pypi/torch","source":"ghsa"},{"ranges":[{"status":"affected","version":"2.6.0"}],"vendor":"linuxfoundation","product":"pytorch","cpe":"cpe:2.3:a:linuxfoundation:pytorch:2.6.0:-:*:*:*:python:*:*","source":"nvd"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","lastAffected":"2.6.0-NA"}],"ecosystem":"PyPI","package":"torch","purl":"pkg:pypi/torch","source":"pysec"},{"ranges":[{"type":"semver","introduced":"2.6.0","status":"affected","fixed":"2.7.0"}],"ecosystem":"Bitnami","package":"pytorch","purl":"pkg:bitnami/pytorch","source":"bitnami"}],"references":[{"url":"https://vuldb.com/?id.302048","tags":["advisory","technical-description","third-party-advisory","vdb-entry","web"],"sources":["cvelist","ghsa","nvd","pysec","bitnami"]},{"url":"https://vuldb.com/?ctiid.302048","tags":["permissions-required","report","signature","vdb-entry","web"],"sources":["cvelist","ghsa","nvd","pysec","bitnami"]},{"url":"https://vuldb.com/?submit.524198","tags":["advisory","third-party-advisory","vdb-entry","web"],"sources":["cvelist","ghsa","nvd","pysec","bitnami"]},{"url":"https://github.com/pytorch/pytorch/issues/149622","tags":["advisory","issue-tracking","report","vendor-advisory","web"],"sources":["cvelist","ghsa","nvd","pysec","bitnami"]},{"url":"https://github.com/pytorch/pytorch/issues/149622#issue-2935495265","tags":["advisory","exploit","issue-tracking","report","vendor-advisory","web"],"sources":["cvelist","ghsa","nvd","pysec","bitnami"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-2999","tags":["advisory","web"],"sources":["ghsa","bitnami"]},{"url":"https://github.com/pytorch/pytorch/commit/494518046816d29099b7d056a74ffa5c244fdcdd","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/torch/PYSEC-2025-193.yaml","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/pytorch/pytorch","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/advisories/GHSA-vgrw-7cvw-pwgx","tags":["advisory"],"sources":["pysec"]}],"credits":["Default436352 (VulDB User)"],"assigner":"VulDB","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2025-03-31T15:04:36.650Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-2999","url":"https://www.cve.org/CVERecord?id=CVE-2025-2999","licence":"CVE Terms of Use","modified":"2025-03-31T15:15:18.302Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-vgrw-7cvw-pwgx","url":"https://github.com/advisories/GHSA-vgrw-7cvw-pwgx","licence":"CC-BY-4.0","modified":"2026-06-10T17:41:15.774Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-2999","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-2999","licence":"Public domain","modified":"2026-06-17T09:08:00.860Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2025-193","url":"https://osv.dev/vulnerability/PYSEC-2025-193","licence":"CC-BY-4.0","modified":"2026-07-13T16:45:06.526Z"},{"source":"bitnami","name":"Bitnami Vulnerability Database","id":"BIT-PYTORCH-2025-2999","url":"https://osv.dev/vulnerability/BIT-PYTORCH-2025-2999","licence":"Apache-2.0","modified":"2026-09-08T08:48:24.937Z"}],"updatedAt":"2026-11-25T22:58:55.730Z","epss":{"score":0.00202,"percentile":0.10692,"date":"2026-12-02T12:00:21.000Z"}}