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().
- CVSS:
- 8.8 (nvd)
- Vector:
- CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- EPSS:
- 0.51% (percentile 44.6)
- CWE:
- CWE-94
- Published:
- Modified:
- First seen:
- NVD status:
- Deferred