Technical impact
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(). This allows an attacker who can supply a crafted configuration to load and execute any Python class, leading to full control over the executing process.
Affected Systems
Hugging Face's LeRobot library is affected. No specific version information is listed, so all known releases are potentially impacted until an update is available.
Risk and Exploitability
The risk is high because the flaw enables remote code execution with no authentication required, and the EPSS score is not available, but the absence of a KEV listing suggests limited public exploitation so far. The likely attack vector involves an attacker supplying a malicious configuration to the vulnerable library, either by hosting a repository with the altered JSON or by exploiting an application that uses LeRobot to load external models. With code execution, confidentiality, integrity, and availability of the host system are all compromised.