PT-2026-42662 · Lmdeploy · Lmdeploy
CVE-2026-46432
·
Published
2026-05-21
·
Updated
2026-07-13
CVSS v3.1
7.8
High
| Vector | AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
Name of the Vulnerable Software and Affected Versions
LMDeploy versions 0.12.3 and earlier
Description
LMDeploy is a toolkit for compressing, deploying, and serving large language models. The software hardcodes
trust remote code=True in multiple HuggingFace model-loading call sites, specifically within the lmdeploy/archs.py and lmdeploy/utils.py files. This configuration is passed into HuggingFace Transformers APIs, including AutoConfig.from pretrained(), PretrainedConfig.get config dict(), and GenerationConfig.from pretrained().If an attacker can control the
model path variable used by an LMDeploy serving process, they can point it to a malicious HuggingFace model repository. During model initialization, the system will download and execute remote Python code from that repository, leading to arbitrary code execution with the privileges of the serving process.Recommendations
At the moment, there is no information about a newer version that contains a fix for this vulnerability.
Exploit
Code Injection
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Lmdeploy