Impact
LMDeploy contains a code injection flaw where the quantization_config.quant_dtype value from a HuggingFace model is passed directly to eval without validation, allowing an attacker to execute arbitrary Python code when loading the model. This can lead to compromise of confidentiality, integrity, and availability of the system that runs lmdeploy.
Affected Systems
The vulnerability affects the InternLM lmdeploy toolkit, specifically versions 0.12.1 through 0.12.2. Versions 0.12.3 and later contain an official patch that mitigates the issue.
Risk and Exploitability
The CVSS score of 8.8 indicates a high severity vulnerability. The EPSS score is not available, and the vulnerability is not listed in the CISA KEV catalog. Exploitation requires an attacker to provide a malicious model to the victim; the likely attack vector is a local or remote user who loads a model via lmdeploy, for example by hosting a crafted model on HuggingFace.
OpenCVE Enrichment
Github GHSA