Hugging Face LeRobot code execution in policy configuration loading
Hugging Face LeRobot
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Hugging Face LeRobot |
| No fix yet |
Original 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().
From the CVE record · certcc