{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2026-33625","id":"CVE-2026-33625","title":"LMDeploy vulnerable to arbitrary code execution via eval() of untrusted quant_dtype in model config loading","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 `","descriptionLong":"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.","published":"2026-09-18T17:13:37.133Z","updated":"2026-10-28T02:30:35.832234880Z","reserved":"2026-03-23T14:24:11.617Z","status":"Deferred","rejected":false,"assigner":"GitHub_M","metric":{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","rating":"high","source":"GitHub_M"},"metrics":[{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","rating":"high","source":"GitHub_M"},{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","rating":"high","source":"github.com"},{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","rating":"high","source":"OSV"},{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","rating":"high","source":"GitHub"}],"rating":"high","products":["InternLM lmdeploy"],"affectedProducts":[{"vendor":"InternLM","product":"lmdeploy","defaultStatus":null,"versions":[{"version":">= 0.12.1, < 0.12.3","status":"affected"}],"platforms":[]}],"packages":[{"ecosystem":"PyPI","name":"lmdeploy","purl":"pkg:pypi/lmdeploy","ranges":[">=0.12.1 <0.12.3"],"fixed":["0.12.3"],"advisory":"GHSA-3hmm-rh5q-gwwr"}],"cwes":["CWE-400"],"aliases":["GHSA-3hmm-rh5q-gwwr","PYSEC-2026-4078"],"references":[{"url":"https://github.com/InternLM/lmdeploy/security/advisories/GHSA-3hmm-rh5q-gwwr","tags":["x_refsource_CONFIRM","exploit","advisory","web"]},{"url":"https://github.com/InternLM/lmdeploy/releases/tag/v0.12.3","tags":["x_refsource_MISC","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/33xxx/CVE-2026-33625.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-33625","tags":["advisory"]},{"url":"https://github.com/InternLM/lmdeploy","tags":["package"]},{"url":"https://pypi.org/project/lmdeploy","tags":["package"]},{"url":"https://github.com/advisories/GHSA-3hmm-rh5q-gwwr","tags":["advisory"]}],"patchReferenced":false,"fixAvailable":true,"exploitReferenced":true,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"total"},"epss":0.00442,"epssPercentile":0.39155,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2026-33625","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-33625","ok":true,"note":"Deferred"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2026-33625","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-3hmm-rh5q-gwwr","ok":true,"note":"GHSA-3hmm-rh5q-gwwr"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2026-33625","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}