{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2025-32434","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.","descriptionLong":"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.","published":"2025-04-18T15:48:18.851Z","updated":"2026-10-28T02:30:25.879868992Z","reserved":"2025-04-08T10:54:58.368Z","status":"Modified","rejected":false,"assigner":"GitHub_M","metric":{"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","rating":"critical","source":"GitHub_M"},"metrics":[{"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","rating":"critical","source":"GitHub_M"},{"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","rating":"critical","source":"github.com"},{"version":"4.0","score":null,"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","rating":"unrated","source":"OSV"},{"version":"4.0","score":null,"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","rating":"critical","source":"GitHub"},{"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","rating":"critical","source":"NVD"},{"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","rating":"critical","source":"OSV"}],"rating":"critical","products":["pytorch"],"affectedProducts":[{"vendor":"pytorch","product":"pytorch","defaultStatus":null,"versions":[{"version":"< 2.6.0","status":"affected"}],"platforms":[]}],"packages":[{"ecosystem":"PyPI","name":"torch","purl":"pkg:pypi/torch","ranges":["<2.6.0"],"fixed":["2.6.0"],"advisory":"GHSA-53q9-r3pm-6pq6"}],"cwes":["CWE-502"],"aliases":["BIT-pytorch-2025-32434","GHSA-53q9-r3pm-6pq6","PYSEC-2025-41"],"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/CVEProject/cvelistV5/tree/main/cves/2025/32xxx/CVE-2025-32434.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-32434","tags":["advisory"]},{"url":"https://github.com/pytorch/pytorch/commit/8d4b8a920a2172523deb95bf20e8e52d50649c04","tags":["web"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/torch/PYSEC-2025-41.yaml","tags":["web"]},{"url":"https://github.com/pytorch/pytorch","tags":["package"]}],"patchReferenced":false,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"total"},"epss":0.02369,"epssPercentile":0.84176,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2025-32434","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-32434","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2025-32434","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-53q9-r3pm-6pq6","ok":true,"note":"GHSA-53q9-r3pm-6pq6"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2025-32434","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}