CVE-2026-142491: eole through 0.6.8 Code Execution via eval() of Model config.json Values
eole through 0.6.8 contains an eval injection vulnerability in pydantic configuration validators that allows attackers to execute Python code by supplying a crafted model directory. Attackers can distribute a model or Hugging Face repository whose config.json contains malicious strings in fields like model.embeddings, executing code as the user loading the model.
Affected Software
Event History
Frequently Asked Questions
What does an attacker need to do to trigger the issue?
The attacker needs to convince a user to load a crafted model directory or Hugging Face repository. The malicious content is placed in config.json, including fields such as model.embeddings.
Who is most exposed?
Users who load models obtained from untrusted or insufficiently vetted sources are exposed. Code executes with the privileges of the user loading the model.
What can be done while patching is unavailable?
Do not load model directories or repositories from untrusted sources. Review config.json content before loading externally supplied models, particularly configuration values processed by the model validators.