{"id":"BIT-pytorch-2025-32434","summary":"PyTorch: `torch.load` with `weights_only=True` leads to remote code execution","details":"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.","aliases":["CVE-2025-32434","GHSA-53q9-r3pm-6pq6","PYSEC-2025-41"],"modified":"2025-12-02T20:32:23.555338Z","published":"2025-04-22T07:19:45.992Z","database_specific":{"severity":"Critical","cpes":["cpe:2.3:a:linuxfoundation:pytorch:*:*:*:*:*:python:*:*"]},"references":[{"type":"WEB","url":"https://github.com/pytorch/pytorch/security/advisories/GHSA-53q9-r3pm-6pq6"},{"type":"WEB","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-32434"},{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2025/12/msg00000.html"}],"affected":[{"package":{"name":"pytorch","ecosystem":"Bitnami","purl":"pkg:bitnami/pytorch"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"2.6.0"}]}],"database_specific":{"source":"https://github.com/bitnami/vulndb/tree/main/data/pytorch/BIT-pytorch-2025-32434.json"},"severity":[{"type":"CVSS_V4","score":"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"}]}],"schema_version":"1.7.3"}