{"id":"CVE-2025-32434","published":"2025-04-18T15:48:18Z","modified":"2025-12-01T07:05:28Z","title":"PyTorch: `torch.load` with `weights_only=True` leads to remote code execution","vendor":"pytorch","product":"pytorch","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":9.3,"severity":"CRITICAL","version":"4.0","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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.02369,"percentile":0.84224,"provenance":"source"},"cwes":[{"id":"CWE-502","name":"Deserialization of Untrusted Data"}],"references":[{"url":"https://github.com/pytorch/pytorch/security/advisories/GHSA-53q9-r3pm-6pq6","tags":["x_refsource_CONFIRM"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/12/msg00000.html","tags":[]}],"priority":{"score":28.4,"factors":[{"name":"EPSS percentile","points":16.84},{"name":"Public exploit code","points":5.0},{"name":"CVSS severity","points":6.51}]},"exploitSources":{"pocGithub":{"count":3,"skipped":1,"earliest":"2025-12-15","earliestUrl":"https://github.com/B1tBit/CVE-2025-32434-exploit","repos":[{"name":"AlexanderGumeniuk/CVE-2025-32434","url":"https://github.com/AlexanderGumeniuk/CVE-2025-32434","stars":2,"created":"2026-06-30"},{"name":"B1tBit/CVE-2025-32434-exploit","url":"https://github.com/B1tBit/CVE-2025-32434-exploit","stars":1,"created":"2025-12-15"},{"name":"Soildworks/Agentic-CLIP-Benchmark","url":"https://github.com/Soildworks/Agentic-CLIP-Benchmark","stars":0,"created":"2026-03-08"}]},"first":{"date":"2025-12-15","source":"PoC-in-GitHub","url":"https://github.com/B1tBit/CVE-2025-32434-exploit"},"provenance":"source"},"vendorSlug":"pytorch","affectedVersions":[{"vendor":"pytorch","product":"pytorch","versions":["< 2.6.0"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"total","timestamp":"2025-04-18T16:06:40.000632Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"torch","vulnerableRanges":["<2.6.0"],"patched":["2.6.0"],"from":["GHSA-53q9-r3pm-6pq6","PYSEC-2025-41"],"provenance":"source"}],"summary":{"text":"A remote command execution flaw exists in PyTorch, a Python package for tensor computation and deep neural networks, in versions 2.5.1 and prior when a model is loaded with torch.load using weights_only=True. An attacker with network access can exploit it without authentication or user interaction by supplying a crafted model file that triggers untrusted-data deserialization and executes commands on the host.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T06:38:59Z"},"euvd":{"id":"EUVD-2025-11856","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2024-31583","published":"2024-04-17","fixed":"2.2.0","kev":false},{"cve":"CVE-2024-31584","published":"2024-04-19","fixed":"2.2.0","kev":false},{"cve":"CVE-2024-48063","published":"2024-10-29","fixed":"2.5.0","kev":false,"link":{"from":"CVE-2024-48063","to":"CVE-2025-32434","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:torch","fromFixed":"2.5.0","toFixed":"2.6.0","daysApart":171}]}},{"cve":"CVE-2025-32434","published":"2025-04-18","fixed":"2.6.0","kev":false},{"cve":"CVE-2025-46148","published":"2025-09-25","fixed":"2.7.0","kev":false},{"cve":"CVE-2025-46149","published":"2025-09-25","fixed":"2.7.0","kev":false},{"cve":"CVE-2025-46150","published":"2025-09-25","fixed":"2.7.0","kev":false}],"package":"PyPI:torch"}}