Description
The LeRobot library is vulnerable to arbitrary code execution via unsafe dynamic class instantiation in the from_pretrained() method and related paths. When loading a policy's processor configuration from a repository, the library uses the class field within the JSON configuration to dynamically resolve and instantiate Python classes using importlib.import_module() and getattr().
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| Hugging Face | LeRobot | 0.4.0 – ≤ 0.6.1 | — |