{"id":"CVE-2026-33625","published":"2026-09-18T17:13:37Z","modified":"2026-09-22T15:08:07Z","title":"LMDeploy vulnerable to arbitrary code execution via eval() of untrusted quant_dtype in model config loading","vendor":"InternLM","product":"lmdeploy","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.8,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00442,"percentile":0.39288,"provenance":"source"},"cwes":[{"id":"CWE-400","name":"Uncontrolled Resource Consumption"}],"references":[{"url":"https://github.com/InternLM/lmdeploy/security/advisories/GHSA-3hmm-rh5q-gwwr","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/InternLM/lmdeploy/releases/tag/v0.12.3","tags":["x_refsource_MISC"]}],"priority":{"score":14.0,"factors":[{"name":"EPSS percentile","points":7.86},{"name":"CVSS severity","points":6.16}]},"vendorSlug":"internlm","affectedVersions":[{"vendor":"InternLM","product":"lmdeploy","versions":[">= 0.12.1, < 0.12.3"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"total","timestamp":"2026-09-22T15:07:33.233899Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"lmdeploy","vulnerableRanges":[">=0.12.1, <0.12.3"],"patched":["0.12.3"],"from":["GHSA-3hmm-rh5q-gwwr","PYSEC-2026-4078"],"provenance":"source"}],"summary":{"text":"The flaw is a code injection vulnerability in the LMDeploy toolkit's lmdeploy/pytorch/config.py component, where a model's quantization_config.quant_dtype value is passed unvalidated to eval(). An attacker who publishes a malicious HuggingFace model with a crafted quant_dtype value can achieve arbitrary Python code execution when a user loads that model with lmdeploy, provided the user is induced to load it, with no authentication required.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:35:16Z"},"euvd":{"id":"EUVD-2026-83202","exploited":false,"provenance":"source"}}