CVE-2026-46432
Received Received - Intake
Arbitrary Code Execution in LMDeploy via Hardcoded Trust Remote Code

Publication date: 2026-06-10

Last updated on: 2026-06-10

Assigner: GitHub, Inc.

Description
LMDeploy is a toolkit for compressing, deploying, and serving large language models. In versions 0.12.3 and prior, LMDeploy is vulnerable to arbitrary code execution through hardcoded "trust_remote_code=True" in multiple HuggingFace model-loading call sites. At time of publication, there are no publicly available patches.
CVSS Scores
EPSS Scores
Probability:
Percentile:
Meta Information
Published
2026-06-10
Last Modified
2026-06-10
Generated
2026-06-10
AI Q&A
2026-06-10
EPSS Evaluated
N/A
NVD
Affected Vendors & Products
Showing 1 associated CPE
Vendor Product Version / Range
internlm lmdeploy to 0.12.3 (exc)
Helpful Resources
Exploitability
CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-94 The product constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syntax or behavior of the intended code segment.
Attack-Flow Graph
AI Quick Actions
Instant insights powered by AI
Executive Summary

CVE-2026-46432 is a vulnerability in the lmdeploy package (versions 0.12.3 and prior) that allows arbitrary code execution. This happens because lmdeploy hardcodes the parameter `trust_remote_code=True` in multiple HuggingFace model-loading calls. As a result, when loading models, lmdeploy automatically trusts and executes code from remote model repositories without explicit user consent.

Attackers who control the model path can exploit this by pointing to a malicious HuggingFace repository, causing the lmdeploy process to execute arbitrary Python code during model loading.

Impact Analysis

This vulnerability can have severe impacts because it allows attackers to execute arbitrary code with the privileges of the lmdeploy process.

  • Attackers could read sensitive data accessible to the process.
  • They could access credentials stored or accessible by the process.
  • They could modify the behavior of the application.
  • They could execute arbitrary operating system commands.
  • They could cause denial of service by disrupting the application.
Compliance Impact

The vulnerability allows arbitrary code execution with the privileges of the lmdeploy process, which could enable attackers to read sensitive data and access credentials.

Such unauthorized access and potential data exposure could lead to non-compliance with data protection regulations like GDPR and HIPAA, which require safeguarding sensitive personal and health information.

However, there is no explicit mention in the provided information about direct impacts on compliance with these standards.

Detection Guidance

This vulnerability arises from the presence of hardcoded `trust_remote_code=True` in lmdeploy versions 0.12.3 and prior, specifically in calls to HuggingFace Transformers APIs during model loading.

To detect if your system is vulnerable, you should check the version of lmdeploy installed and inspect the code or configuration for usage of `trust_remote_code=True` in model-loading functions such as `AutoConfig.from_pretrained()`, `PretrainedConfig.get_config_dict()`, or `GenerationConfig.from_pretrained()`.

Suggested commands to detect the vulnerability include:

  • Check lmdeploy version: `pip show lmdeploy` or `pip list | grep lmdeploy`
  • Search for `trust_remote_code=True` in your lmdeploy installation or project files: `grep -r "trust_remote_code=True" /path/to/lmdeploy`
  • Monitor network activity for suspicious connections to external HuggingFace model repositories, which could indicate exploitation attempts.
Mitigation Strategies

Since no patches are currently available for this vulnerability, immediate mitigation steps focus on reducing exposure and risk.

  • Avoid using lmdeploy versions 0.12.3 and earlier until a patched version is released.
  • Do not load models from untrusted or external sources, as the vulnerability allows arbitrary code execution via malicious model repositories.
  • Restrict network access and permissions of the lmdeploy process to limit potential damage from exploitation.
  • Monitor logs and system behavior for unusual activity that could indicate exploitation attempts.
Chat Assistant
Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-46432. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70
EPSS Chart