/

CVE-2026-115533

Severity:

HIGH RISK

(8.8)

Code Injection (CWE-94) in LeRobot Policy Loader Path

CVE-2026-115533

Deferred

Vulnerability type

Category:

Code Injection

CWE:

CWE-94

Impact:

Arbitrary Code Execution

Severity:

HIGH RISK

(8.8)

CVSS version:

3.1

Catch this CVE while code is being written

Detect vulnerable code directly in pull requests, so CVEs are fixed before merge.

Summary

LeRobot can dynamically import and instantiate Python classes based on a class field in a policy processor configuration. If an attacker can influence the repository or configuration that a system loads, this behavior may allow arbitrary code execution in the loading process.

Affected context

The issue occurs in from_pretrained() and related policy-loading paths when LeRobot reads processor configuration from a repository and resolves its class field using dynamic imports and attribute lookup. Risk depends on whether an attacker can supply or alter the repository or configuration that a deployment trusts and loads.

Exploit preconditions

  • Attack surface: Policy and processor configuration loading from a repository
  • Required access: Ability to control or influence the repository or its configuration, or to cause a system to load attacker-influenced content
  • Trigger point: The application loads a policy and dynamically resolves the configured class
  • Why exploitation is possible: Configuration-controlled class names are used to import and instantiate Python classes without sufficiently restricting the selection

Why this happens

The underlying issue is unsafe dynamic class resolution. Using configuration data to select modules and attributes for import and instantiation can give untrusted input control over executable behavior. This maps to CWE-94: Improper Control of Generation of Code, because externally influenced data can determine which code is invoked.

Potential impact

  • An attacker could execute arbitrary code in the process loading the policy
  • The application or its runtime environment may be compromised
  • Accessible data, credentials, or services could be exposed or altered
  • Compromised loading workflows could affect downstream systems or users

General mitigation guidance

Defensive patterns focus on limiting what configuration can cause the application to execute:

  • Prefer a fixed, explicit registry or allowlist of supported processor classes over unrestricted imports
  • Treat repository configuration as untrusted unless its origin and integrity are established
  • Validate class identifiers against a strict schema and reject unknown values before loading
  • Separate configuration parsing from any code-loading behavior
  • Run policy-loading processes with least privilege and limit access to credentials, data, and network services

How teams detect issues like this

  • Use static analysis to identify configuration-driven calls to dynamic import, attribute lookup, and class instantiation
  • Review policy-loading paths for class names or module paths that originate from repository data
  • Enforce code review and CI policies requiring allowlisted class resolution and strict configuration schemas
  • Monitor loading workflows for unexpected module imports or changes in trusted repository configuration
  • Automated code review tools may help flag risky dynamic execution patterns

Sources

SourceLink
gist.github.comgist.github.com/mtholmquist/eba1cba80ea66997b8f7e6a839e49120

Frequently asked

questions

The description does not establish direct remote exploitability. The risk arises when a system loads a policy configuration that an attacker can control or influence.

They need a way to provide or modify the repository or processor configuration, or to cause a victim system to load attacker-influenced content.

Replace unrestricted configuration-driven imports with a fixed allowlist or registry of supported classes, and reject unrecognized identifiers.

Treat repository data as untrusted, validate it before use, restrict code-loading behavior, and run loaders with least privilege.

Find out what's already
exploitable in your codebase.