PyPA Advisory Database
PYSEC-2024-259
Details
In PyTorch <=2.4.1, the RemoteModule has Deserialization RCE. NOTE: this is disputed by multiple parties because this is intended behavior in PyTorch distributed computing.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| PyPI | torch | All versions before 2.5.0 (fixed in 2.5.0) |
References
- https://rumbling-slice-eb0.notion.site/Distributed-RPC-Framework-RemoteModule-has-Deserialization-RCE-in-pytorch-pytorch-111e3cda9e8c8021a7d3cbc61ee1a20c
- https://github.com/pytorch/pytorch/issues/129228
- https://gist.github.com/hexian2001/c046c066895a963ecc0a2cf9e1180065
- https://github.com/pytorch/pytorch/security/policy#using-distributed-features