Description
LMDeploy is a toolkit for compressing, deploying, and serving large language models. Versions 012.1 through 0.12.2 contain a code injection vulnerability in `lmdeploy/pytorch/config.py` line 620 that allows an attacker to execute arbitrary Python code by publishing a malicious HuggingFace model with a crafted `quantization_config.quant_dtype` value. When a user loads the model with lmdeploy, the `quant_dtype` is passed to `eval(f'torch.{quant_dtype}')` without any validation. Version 0.12.3 contains a patch.
Severity (CVSS)
| Base score | 8.8 |
|---|---|
| Severity | High |
| Version | CVSS 3.1 |
| Vector | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| Provided by | CNA |
Weaknesses
- CWE-400 — CWE-400: Uncontrolled Resource Consumption
Affected products
| Vendor | Product | Versions |
|---|---|---|
| InternLM | lmdeploy | >= 0.12.1, < 0.12.3 |
References
- https://github.com/InternLM/lmdeploy/security/advisories/GHSA-3hmm-rh5q-gwwr (x_refsource_CONFIRM)
- https://github.com/InternLM/lmdeploy/releases/tag/v0.12.3 (x_refsource_MISC)
Generated from the official CVE List on 19 Sep 2026 07:08 UTC.