# CVE-2026-33625: LMDeploy vulnerable to arbitrary code execution via eval() of untrusted quant_dtype in model config loading

- Severity: High 8.8 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.30%, higher than 25% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-09-18T17:04:01.000Z
- Modified: 2026-10-01T17:56:11.912Z
- Also known as: GHSA-3hmm-rh5q-gwwr, PYSEC-2026-4078
- Weaknesses: CWE-400
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- InternLM lmdeploy: >= 0.12.1, < 0.12.3
- lmdeploy (PyPI): from 0.12.1 before 0.12.3

## Every score

- GitHub_M: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- GitHub: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- PyPA Advisory Database: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`

## References

- <https://github.com/InternLM/lmdeploy/security/advisories/GHSA-3hmm-rh5q-gwwr> (exploit, web)
- <https://github.com/InternLM/lmdeploy/releases/tag/v0.12.3> (web)
- <https://github.com/InternLM/lmdeploy> (package)
- <https://pypi.org/project/lmdeploy> (package)
- <https://github.com/advisories/GHSA-3hmm-rh5q-gwwr> (advisory)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-33625> (advisory)

## Sources

- CVE List: [CVE-2026-33625](https://www.cve.org/CVERecord?id=CVE-2026-33625), CVE Terms of Use, modified 2026-09-22
- GitHub Advisory Database: [GHSA-3hmm-rh5q-gwwr](https://github.com/advisories/GHSA-3hmm-rh5q-gwwr), CC-BY-4.0, modified 2026-10-01
- NVD: [CVE-2026-33625](https://nvd.nist.gov/vuln/detail/CVE-2026-33625), Public domain, modified 2026-09-24
- PyPA Advisory Database: [PYSEC-2026-4078](https://osv.dev/vulnerability/PYSEC-2026-4078), CC-BY-4.0, modified 2026-10-01

---

Page: https://cve.day/CVE-2026-33625 · Whole record: https://cve.day/CVE-2026-33625.json · Rebuilt by cve.day 2026-11-25T22:59:39.643Z
