Description
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 products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| eole-nlp | eole | ≤ 0.6.8 | — |
References
- https://github.com/eole-nlp/eole/issues/528 issue-tracking
- https://github.com/eole-nlp/eole/commit/8d87e44b111c5cd9781d562b083deda3958286c2 patch
- https://github.com/eole-nlp/eole/blob/0.6.8/eole/config/models.py#L702-L711 technical-description
- https://github.com/eole-nlp/eole/blob/0.6.8/eole/config/run.py#L174-L205 technical-description
- VulnCheck Advisory: eole through 0.6.8 Code Execution via eval() of Model config.json Values third-party-advisory