CVE-2026-46517: CWE-94: Improper Control of Generation of Code ('Code Injection') in InternLM lmdeploy
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. At time of publication, there are no publicly available patches.
AI Analysis
Technical Summary
CVE-2026-46517 affects InternLM's lmdeploy toolkit for compressing, deploying, and serving large language models. In versions 0.12.3 and prior, the hardcoded configuration 'trust_remote_code=True' allows remote code execution through the Hugging Face supply chain without requiring user opt-in. This improper control of code generation (CWE-94) leads to a critical security risk. No official fix or patch has been released as of the publication date.
Potential Impact
Successful exploitation of this vulnerability could allow an attacker to execute arbitrary code remotely with the privileges of the lmdeploy process. This compromises confidentiality, integrity, and availability of the affected system. The CVSS score of 7.8 reflects high impact on confidentiality, integrity, and availability. There are no known exploits in the wild at this time.
Mitigation Recommendations
No official patch or remediation is currently available. Users should avoid using affected versions (<=0.12.3) of lmdeploy until a fix is released. Monitor the vendor's advisory channels for updates. Since the vulnerability arises from a hardcoded setting, disabling or overriding 'trust_remote_code=True' if possible may reduce risk, but this is not confirmed by the vendor.
CVE-2026-46517: CWE-94: Improper Control of Generation of Code ('Code Injection') in InternLM lmdeploy
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. At time of publication, there are no publicly available patches.
CVSS v3.1
Score 7.8high
Affected software
pkg:github/internlm/lmdeployRun on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2026-46517 affects InternLM's lmdeploy toolkit for compressing, deploying, and serving large language models. In versions 0.12.3 and prior, the hardcoded configuration 'trust_remote_code=True' allows remote code execution through the Hugging Face supply chain without requiring user opt-in. This improper control of code generation (CWE-94) leads to a critical security risk. No official fix or patch has been released as of the publication date.
Potential Impact
Successful exploitation of this vulnerability could allow an attacker to execute arbitrary code remotely with the privileges of the lmdeploy process. This compromises confidentiality, integrity, and availability of the affected system. The CVSS score of 7.8 reflects high impact on confidentiality, integrity, and availability. There are no known exploits in the wild at this time.
Mitigation Recommendations
No official patch or remediation is currently available. Users should avoid using affected versions (<=0.12.3) of lmdeploy until a fix is released. Monitor the vendor's advisory channels for updates. Since the vulnerability arises from a hardcoded setting, disabling or overriding 'trust_remote_code=True' if possible may reduce risk, but this is not confirmed by the vendor.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-05-14T19:12:32.755Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a28a1018dd33fbd85928650
Added to database: 06/09/2026, 23:25:53 UTC
Last enriched: 06/17/2026, 08:39:44 UTC
Last updated: 07/31/2026, 19:22:59 UTC
Views: 147
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.