CVE-2026-33625: CWE-400: Uncontrolled Resource Consumption in InternLM lmdeploy
A code injection vulnerability exists in InternLM lmdeploy versions 0.12.1 through 0.12.2. The vulnerability allows an attacker to execute arbitrary Python code by publishing a malicious HuggingFace model with a crafted quantization_config.quant_dtype value. This value is unsafely evaluated in the code, leading to potential remote code execution. Version 0.12.3 contains a patch that fixes this issue.
AI Analysis
Technical Summary
InternLM lmdeploy versions 0.12.1 through 0.12.2 have a code injection vulnerability in the file lmdeploy/pytorch/config.py at line 620. The vulnerability arises because the quantization_config.quant_dtype value from a HuggingFace model is passed directly to eval(f'torch.{quant_dtype}') without validation. An attacker can craft this value to execute arbitrary Python code when the model is loaded. This is classified as CWE-400 (Uncontrolled Resource Consumption) due to the potential for arbitrary code execution and resource abuse. The vulnerability is fixed in version 0.12.3.
Potential Impact
Successful exploitation allows an unauthenticated attacker to execute arbitrary Python code on the system loading the malicious model, potentially leading to full system compromise, data theft, or denial of service. The CVSS v3.1 score is 8.8 (High), reflecting network attack vector, low attack complexity, no privileges required, user interaction required, and high impact on confidentiality, integrity, and availability.
Mitigation Recommendations
Users should upgrade to InternLM lmdeploy version 0.12.3 or later, which contains the official patch for this vulnerability. Until upgrading, avoid loading untrusted or unauthenticated HuggingFace models with lmdeploy. No other mitigations are specified by the vendor.
CVE-2026-33625: CWE-400: Uncontrolled Resource Consumption in InternLM lmdeploy
Description
A code injection vulnerability exists in InternLM lmdeploy versions 0.12.1 through 0.12.2. The vulnerability allows an attacker to execute arbitrary Python code by publishing a malicious HuggingFace model with a crafted quantization_config.quant_dtype value. This value is unsafely evaluated in the code, leading to potential remote code execution. Version 0.12.3 contains a patch that fixes this issue.
CVSS v3.1
Score 8.8high
Affected software
InternLM
lmdeploy
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
InternLM lmdeploy versions 0.12.1 through 0.12.2 have a code injection vulnerability in the file lmdeploy/pytorch/config.py at line 620. The vulnerability arises because the quantization_config.quant_dtype value from a HuggingFace model is passed directly to eval(f'torch.{quant_dtype}') without validation. An attacker can craft this value to execute arbitrary Python code when the model is loaded. This is classified as CWE-400 (Uncontrolled Resource Consumption) due to the potential for arbitrary code execution and resource abuse. The vulnerability is fixed in version 0.12.3.
Potential Impact
Successful exploitation allows an unauthenticated attacker to execute arbitrary Python code on the system loading the malicious model, potentially leading to full system compromise, data theft, or denial of service. The CVSS v3.1 score is 8.8 (High), reflecting network attack vector, low attack complexity, no privileges required, user interaction required, and high impact on confidentiality, integrity, and availability.
Mitigation Recommendations
Users should upgrade to InternLM lmdeploy version 0.12.3 or later, which contains the official patch for this vulnerability. Until upgrading, avoid loading untrusted or unauthenticated HuggingFace models with lmdeploy. No other mitigations are specified by the vendor.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-03-23T14:24:11.617Z
- Cvss Version
- 3.1
- State
- PUBLISHED
Threat ID: 6aad759d55bf5e2cf54f30aa
Added to database: 09/18/2026, 17:32:13 UTC
Last enriched: 09/18/2026, 17:47:17 UTC
Last updated: 09/18/2026, 17:47:17 UTC
Views: 3
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.
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.