{"id":"CVE-2025-32434","aliases":["AZL-60877","AZL-60880","BIT-pytorch-2025-32434","CLSA-2025-1760660047","DEBIAN-CVE-2025-32434","DLA-4389-1","EUVD-2025-11856","GHSA-53q9-r3pm-6pq6","PYSEC-2025-41"],"status":"published","title":"PyTorch: `torch.load` with `weights_only=True` leads to remote code execution","description":"PyTorch is a Python package that provides tensor computation with strong GPU acceleration and deep neural networks built on a tape-based autograd system. In version 2.5.1 and prior, a Remote Command Execution (RCE) vulnerability exists in PyTorch when loading a model using torch.load with weights_only=True. This issue has been patched in version 2.6.0.","severity":{"version":"4.0","score":9.3,"vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N","level":"critical","assessor":"cna","from":"cve"},"epss":{"day":"2026-11-10","score":0.02369,"percentile":0.83957,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":true,"fix_available":true},"cwes":["CWE-502"],"published":"2025-04-18T15:19:28Z","modified":"2026-11-05T05:40:51Z","exploits":[{"source":"pocgithub","id":"cyhe50/cve-2025-32434-poc","title":"cyhe50/cve-2025-32434-poc","date":"2025-11-13","url":"https://github.com/cyhe50/cve-2025-32434-poc"},{"source":"pocgithub","id":"B1tBit/CVE-2025-32434-exploit","title":"B1tBit/CVE-2025-32434-exploit","date":"2025-12-15","url":"https://github.com/B1tBit/CVE-2025-32434-exploit"},{"source":"pocgithub","id":"Soildworks/Agentic-CLIP-Benchmark","title":"Soildworks/Agentic-CLIP-Benchmark","date":"2026-03-08","url":"https://github.com/Soildworks/Agentic-CLIP-Benchmark"},{"source":"pocgithub","id":"AlexanderGumeniuk/CVE-2025-32434","title":"AlexanderGumeniuk/CVE-2025-32434","date":"2026-06-30","url":"https://github.com/AlexanderGumeniuk/CVE-2025-32434"}],"fixes":[{"ecosystem":"PyPI","package":"torch","fixed_in":["2.6.0"],"sources":["ghsa","osv"]},{"ecosystem":"Azure Linux:3","package":"pytorch","fixed_in":["2.2.2-6"],"sources":["osv"]},{"ecosystem":"Azure Linux:2","package":"pytorch","fixed_in":["2.0.0-8"],"sources":["osv"]},{"ecosystem":"Bitnami","package":"pytorch","fixed_in":["2.6.0"],"sources":["osv"]},{"ecosystem":"TuxCare:PyPI","package":"torch","fixed_in":["1.13.1.post1+tuxcare"],"sources":["osv"]},{"ecosystem":"Debian:13","package":"pytorch","fixed_in":["2.6.0+dfsg-1"],"sources":["osv"]},{"ecosystem":"Debian:14","package":"pytorch","fixed_in":["2.6.0+dfsg-1"],"sources":["osv"]},{"ecosystem":"Debian:11","package":"pytorch","fixed_in":["1.7.1-7+deb11u1"],"sources":["osv"]}],"affected":[{"source":"ghsa","ecosystem":"PyPI","package":"torch","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.6.0"}]}]},{"source":"osv","ecosystem":"Azure Linux:3","package":"pytorch","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.2.2-6"}]}]},{"source":"osv","ecosystem":"Azure Linux:2","package":"pytorch","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.0.0-8"}]}]},{"source":"osv","ecosystem":"Bitnami","package":"pytorch","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"2.6.0"}]}]},{"source":"osv","ecosystem":"TuxCare:PyPI","package":"torch","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"1.13.1"},{"fixed":"1.13.1.post1+tuxcare"}]}],"versions":["1.13.1"]},{"source":"osv","ecosystem":"Debian:12","package":"pytorch","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.13.1+dfsg-4","1.13.1+dfsg-5","2.0.1+dfsg-1","2.0.1+dfsg-1~exp1","2.0.1+dfsg-2","2.0.1+dfsg-4","2.0.1+dfsg-5","2.1.2+dfsg-1","2.1.2+dfsg-2","2.1.2+dfsg-4","2.12.0+dfsg2-1","2.12.0+dfsg2-1~exp1","2.12.0+dfsg2-1~exp2","2.12.0+dfsg2-2","2.12.0+dfsg2-3","2.12.0+dfsg2-4","2.12.1+dfsg-1","2.4.1-1","2.4.1-3","2.4.1-4","2.5.0+dfsg-1","2.5.1+dfsg-1","2.5.1+dfsg-3","2.5.1+dfsg-4","2.6.0+dfsg-1","2.6.0+dfsg-1~exp1","2.6.0+dfsg-2","2.6.0+dfsg-3","2.6.0+dfsg-4","2.6.0+dfsg-5","2.6.0+dfsg-7","2.6.0+dfsg-8","2.6.0+dfsg-9","2.6.0~rc9+dfsg-1~exp1","2.9.0+dfsg-1~exp1","2.9.0+dfsg-1~exp2","2.9.1+dfsg-1~exp1","2.9.1+dfsg-1~exp2"]},{"source":"osv","ecosystem":"Debian:13","package":"pytorch","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.6.0+dfsg-1"}]}]},{"source":"osv","ecosystem":"Debian:14","package":"pytorch","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.6.0+dfsg-1"}]}]},{"source":"osv","ecosystem":"Debian:11","package":"pytorch","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.7.1-7+deb11u1"}]}],"versions":["1.7.1-7"]},{"source":"osv","ecosystem":"PyPI","package":"torch","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.6.0"}]}],"versions":["1.0.0","1.0.1","1.1.0","1.10.0","1.10.1","1.10.2","1.11.0","1.12.0","1.12.1","1.13.0","1.13.1","1.2.0","1.3.0","1.3.1","1.4.0","1.5.0","1.5.1","1.6.0","1.7.0","1.7.1","1.8.0","1.8.1","1.9.0","1.9.1","2.0.0","2.0.1","2.1.0","2.1.1","2.1.2","2.2.0","2.2.1","2.2.2","2.3.0","2.3.1","2.4.0","2.4.1","2.5.0","2.5.1"]},{"source":"osv","ecosystem":"PyPI","package":"torch","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.6.0"}]}],"versions":["1.0.0","1.0.1","1.1.0","1.10.0","1.10.1","1.10.2","1.11.0","1.12.0","1.12.1","1.13.0","1.13.1","1.2.0","1.3.0","1.3.1","1.4.0","1.5.0","1.5.1","1.6.0","1.7.0","1.7.1","1.8.0","1.8.1","1.9.0","1.9.1","2.0.0","2.0.1","2.1.0","2.1.1","2.1.2","2.2.0","2.2.1","2.2.2","2.3.0","2.3.1","2.4.0","2.4.1","2.5.0","2.5.1"]}],"products":[{"vendor":"linuxfoundation","product":"pytorch"},{"vendor":"pytorch","product":"pytorch"}],"references":[{"url":"https://github.com/pytorch/pytorch/security/advisories/GHSA-53q9-r3pm-6pq6","tags":["x_refsource_CONFIRM","Vendor Advisory","advisory","web"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/12/msg00000.html","tags":["web"]},{"url":"https://github.com/pytorch/pytorch/commit/8d4b8a920a2172523deb95bf20e8e52d50649c04","tags":["web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-32434","tags":["web","advisory"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/torch/PYSEC-2025-41.yaml","tags":["web"]},{"url":"https://github.com/advisories/GHSA-53q9-r3pm-6pq6"},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/32xxx/CVE-2025-32434.json","tags":["advisory"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2025-32434","tags":["advisory"]},{"url":"https://github.com/pytorch/pytorch","tags":["package"]}],"sources":{"cve":[{"id":"CVE-2025-32434","title":"PyTorch: `torch.load` with `weights_only=True` leads to remote code execution","description":"PyTorch is a Python package that provides tensor computation with strong GPU acceleration and deep neural networks built on a tape-based autograd system. In version 2.5.1 and prior, a Remote Command Execution (RCE) vulnerability exists in PyTorch when loading a model using torch.load with weights_only=True. This issue has been patched in version 2.6.0.","status":"published","published":"2025-04-18T15:48:18.851Z","modified":"2025-12-01T07:05:28.923Z","cvss":[{"version":"4.0","score":9.3,"vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N","level":"critical","assessor":"cna"}],"cwes":["CWE-502"],"updated_at":"2026-11-02T14:32:46.42892Z"}],"euvd":[{"id":"EUVD-2025-11856","description":"PyTorch is a Python package that provides tensor computation with strong GPU acceleration and deep neural networks built on a tape-based autograd system. In version 2.5.1 and prior, a Remote Command Execution (RCE) vulnerability exists in PyTorch when loading a model using torch.load with weights_only=True. This issue has been patched in version 2.6.0.","status":"published","published":"2025-04-18T15:48:18Z","modified":"2025-12-01T07:05:28Z","cvss":[{"version":"4.0","score":9.3,"vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N","level":"critical"}],"updated_at":"2026-11-02T19:49:11.947161Z"}],"ghsa":[{"id":"GHSA-53q9-r3pm-6pq6","title":"PyTorch: `torch.load` with `weights_only=True` leads to remote code execution","description":"# Description\nI found a Remote Command Execution (RCE) vulnerability in PyTorch. When loading model using torch.load with weights_only=True, it can still achieve RCE.  \n\n# Background knowledge\nhttps://github.com/pytorch/pytorch/security \n As you can see, the PyTorch official documentation considers using `torch.load()` with `weights_only=True` to be safe.\n![image](https://github.com/user-attachments/assets/fdaa8520-d66a-473a-ab1f-163d793de298)\nSince everyone knows that weights_only=False is unsafe, so they will use the  weights_only=True to mitigate the seucirty issue.\nBut now, I just proved that even if you use weights_only=True, it can still achieve RCE.\n\n# Credit\nThis vulnerability was found by Ji'an Zhou.","status":"published","published":"2025-04-18T15:19:28Z","modified":"2025-08-29T19:45:47Z","cvss":[{"version":"4.0","score":9.3,"vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N","level":"critical"}],"cwes":["CWE-502"],"updated_at":"2026-11-02T14:38:55.953734Z"}],"nvd":[{"id":"CVE-2025-32434","description":"PyTorch is a Python package that provides tensor computation with strong GPU acceleration and deep neural networks built on a tape-based autograd system. In version 2.5.1 and prior, a Remote Command Execution (RCE) vulnerability exists in PyTorch when loading a model using torch.load with weights_only=True. This issue has been patched in version 2.6.0.","status":"published","published":"2025-04-18T16:15:23.183Z","modified":"2026-06-17T09:11:59.29Z","cvss":[{"version":"4.0","score":9.3,"vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/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","level":"critical","assessor":"secondary"},{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical","assessor":"primary"}],"cwes":["CWE-502"],"updated_at":"2026-11-02T14:11:01.507281Z"}],"osv":[{"id":"AZL-60877","title":"CVE-2025-32434 affecting package pytorch for versions less than 2.2.2-6","description":"PyTorch is a Python package that provides tensor computation with strong GPU acceleration and deep neural networks built on a tape-based autograd system. In version 2.5.1 and prior, a Remote Command Execution (RCE) vulnerability exists in PyTorch when loading a model using torch.load with weights_only=True. This issue has been patched in version 2.6.0.","status":"published","published":"2025-04-18T16:15:23Z","modified":"2026-11-05T05:40:51Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"updated_at":"2026-11-05T16:41:21.344052Z"},{"id":"AZL-60880","title":"CVE-2025-32434 affecting package pytorch for versions less than 2.0.0-8","description":"PyTorch is a Python package that provides tensor computation with strong GPU acceleration and deep neural networks built on a tape-based autograd system. In version 2.5.1 and prior, a Remote Command Execution (RCE) vulnerability exists in PyTorch when loading a model using torch.load with weights_only=True. This issue has been patched in version 2.6.0.","status":"published","published":"2025-04-18T16:15:23Z","modified":"2026-04-21T04:37:28.539887Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"updated_at":"2026-11-02T15:28:07.517393Z"},{"id":"CVE-2025-32434","title":"PyTorch: `torch.load` with `weights_only=True` leads to remote code execution","description":"PyTorch is a Python package that provides tensor computation with strong GPU acceleration and deep neural networks built on a tape-based autograd system. In version 2.5.1 and prior, a Remote Command Execution (RCE) vulnerability exists in PyTorch when loading a model using torch.load with weights_only=True. This issue has been patched in version 2.6.0.","status":"published","published":"2025-04-18T15:48:18.851Z","modified":"2026-10-28T02:30:25.879868992Z","cvss":[{"version":"4.0","score":9.3,"vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N","level":"critical"}],"cwes":["CWE-502"],"updated_at":"2026-11-02T15:44:48.02508Z"},{"id":"DEBIAN-CVE-2025-32434","description":"PyTorch is a Python package that provides tensor computation with strong GPU acceleration and deep neural networks built on a tape-based autograd system. In version 2.5.1 and prior, a Remote Command Execution (RCE) vulnerability exists in PyTorch when loading a model using torch.load with weights_only=True. This issue has been patched in version 2.6.0.","status":"published","published":"2025-04-18T16:15:23.183Z","modified":"2026-09-01T20:05:45.940987856Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"updated_at":"2026-11-02T15:45:45.870237Z"},{"id":"GHSA-53q9-r3pm-6pq6","title":"PyTorch: `torch.load` with `weights_only=True` leads to remote code execution","description":"# Description\nI found a Remote Command Execution (RCE) vulnerability in PyTorch. When loading model using torch.load with weights_only=True, it can still achieve RCE.  \n\n# Background knowledge\nhttps://github.com/pytorch/pytorch/security \n As you can see, the PyTorch official documentation considers using `torch.load()` with `weights_only=True` to be safe.\n![image](https://github.com/user-attachments/assets/fdaa8520-d66a-473a-ab1f-163d793de298)\nSince everyone knows that weights_only=False is unsafe, so they will use the  weights_only=True to mitigate the seucirty issue.\nBut now, I just proved that even if you use weights_only=True, it can still achieve RCE.\n\n# Credit\nThis vulnerability was found by Ji'an Zhou.","status":"published","published":"2025-04-18T15:19:28Z","modified":"2026-08-07T08:12:20.39504406Z","cvss":[{"version":"4.0","score":9.3,"vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N","level":"critical"}],"cwes":["CWE-502"],"updated_at":"2026-11-02T15:46:37.864461Z"},{"id":"PYSEC-2025-41","description":"PyTorch is a Python package that provides tensor computation with strong GPU acceleration and deep neural networks built on a tape-based autograd system. In version 2.5.1 and prior, a Remote Command Execution (RCE) vulnerability exists in PyTorch when loading a model using torch.load with weights_only=True. This issue has been patched in version 2.6.0.","status":"published","published":"2025-04-18T16:15:23Z","modified":"2025-05-28T15:41:47.508237Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"updated_at":"2026-11-02T15:52:54.242332Z"},{"id":"BIT-pytorch-2025-32434","title":"PyTorch: `torch.load` with `weights_only=True` leads to remote code execution","description":"PyTorch is a Python package that provides tensor computation with strong GPU acceleration and deep neural networks built on a tape-based autograd system. In version 2.5.1 and prior, a Remote Command Execution (RCE) vulnerability exists in PyTorch when loading a model using torch.load with weights_only=True. This issue has been patched in version 2.6.0.","status":"published","published":"2025-04-22T07:19:45.992Z","modified":"2026-09-08T08:48:24.985260821Z","updated_at":"2026-11-02T15:28:35.111822Z"},{"id":"CLSA-2025-1760660047","title":"TuxCare security update for torch (1 CVE)","description":"TuxCare rebuilt torch to address 1 CVE. Fixed in 1.13.1.post1+tuxcare.","status":"published","published":"2026-08-04T14:52:11Z","modified":"2026-10-20T13:45:23.258587895Z","updated_at":"2026-11-02T15:43:42.427288Z"},{"id":"DLA-4389-1","title":"pytorch - security update","status":"published","published":"2025-12-01T00:00:00Z","modified":"2025-12-01T02:17:52.83019Z","updated_at":"2026-11-02T15:46:12.7027Z"}]}}
