MONAI before 1.5.2 Remote Code Execution via Pickle Deserialization
Project-MONAI MONAI
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| monai PyPI |
|
|
Original description
MONAI before 1.5.2 contains a deserialization of untrusted data vulnerability in the algo_from_pickle function in monai/auto3dseg/utils.py. The function reads a .pkl file and passes its contents to pickle.loads without validating the data source or content. If an application invokes algo_from_pickle on an attacker-supplied pickle file, an object defining __reduce__ is executed during deserialization, resulting in arbitrary code execution in the context of the application.