CVE-2026-46517 Details
Description
LMDeploy is a toolkit for compressing, deploying, and serving large language models. In versions 0.12.3 and prior, hardcoded "trust_remote_code=True" enables HF supply-chain RCE without user opt-in. Version 0.13.0 patches the issue.
A remote code execution vulnerability has been identified in LMDeploy versions through 0.12.3. The issue arises from a hardcoded 'trust_remote_code=True' setting in the 'get_model_arch' function and related helpers. This default setting creates an implicit and unsafe remote code execution path by allowing models fetched from Hugging Face repositories to execute arbitrary Python code without user consent. The vulnerability exploits the user's trust in the repository, as they must manually input the model reference. When 'trust_remote_code=True' is applied, any malicious code in the repository's configuration files is executed as the LMDeploy process user, potentially leading to unauthorized access or data exfiltration.
Users can manually avoid this vulnerability by not loading third-party Hugging Face repositories with LMDeploy. However, this is not a practical solution, as it contradicts LMDeploy's intended use case. A proper fix would involve updating LMDeploy to allow users to opt-in to trusting remote code, similar to how other frameworks handle it.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Jun 10, 2026CISA-ADP
Assessed Jun 11, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-1188 | Initialization of a Resource with an Insecure Default | [email protected] |
| CWE-915 | Improperly Controlled Modification of Dynamically-Determined Object Attributes | [email protected] |
| CWE-94 | Improper Control of Generation of Code ('Code Injection') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| InternLM LMDeploy | <= 0.12.3 (semver) |
CPE
Remediation
| |
Change History
7 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Aug 31, 2026 | CVE Modified | [email protected] |
| Jul 23, 2026 | CVE Translated | [email protected] |
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Jun 11, 2026 | CVE Modified | CISA-ADP |
| Jun 10, 2026 | CVE Modified | CISA-ADP |
| Jun 10, 2026 | New CVE Received | [email protected] |
Volerion