LMDeploy
CVE-2025-67729
HIGH
Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessPublish trojanized .pt/.bin checkpoint
-
DeliveryVictim downloads malicious model
-
Exploittorch.load() unpickles payload
-
Executionos.system executes attacker code
-
ImpactFull host compromise
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A08:2025 - Software or Data Integrity Failures
ASVS 5.0
V1 - Encoding and Sanitization Safe deserialization, type allowlists
MITRE ATT&CK
2 techniques across 2 tactics: Execution, Initial Access The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires the victim to load an attacker-controlled model checkpoint file (.bin or .pt / .pth) through one of lmdeploy's affected code paths - specifically the quantization/deployment APIs (auto_awq, smooth_quant, get_small_sharded_hf, kv_qparams) or the TurboMind PytorchLoader and VL model loader - in a version at or below 0.11. The decisive prerequisite is that the loaded checkpoint is NOT a .safetensors file (that path uses safetensors and is safe) and is sourced from an untrusted party. Limiting factors: exploitation is gated by required user interaction (UI:R) - the victim must deliberately point lmdeploy at the malicious file - so there is no unattended/remote-service trigger; it does not fire against lmdeploy's default serving of trusted first-party weights and is neutralized in 0.11.1 where weights_only=True blocks pickle code execution. |
| Impact | This is a genuine, actionable priority rather than a CVSS-inflated paper risk, but its exploitation model is user-interaction-gated rather than drive-by. The provided CVSS 3.1 vector (AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H, 8.8) correctly captures full confidentiality/integrity/availability loss via arbitrary code execution with no attacker privileges, but the UI:R flag is the critical nuance: the victim must actively load an attacker-supplied .bin or .pt checkpoint for exploitation to occur. Publicly available exploit code exists - the GHSA advisory itself publishes a working malicious-checkpoint PoC using __reduce__/os.system - which materially raises real-world likelihood and lowers the skill barrier. No EPSS score was provided in the input, and this CVE is NOT listed in CISA KEV, so there is no evidence of active in-the-wild exploitation; the risk is driven by POC availability plus the strong supply-chain-style delivery path (users routinely download third-party model weights). The signals are internally consistent - no contradiction between the network vector and the description, since model checkpoints are typically fetched over the network from untrusted repositories - but note the AV:N classification leans on that remote-model-fetch assumption; in a purely local-file scenario the practical vector is closer to local. |
| Exploit ScenarioDerived | An attacker publishes a trojanized LLM checkpoint (.bin or .pt) to a public model hub or sends it directly to a victim, where a malicious __reduce__ payload embedded via pickle executes os.system during deserialization. When a developer or operator loads that checkpoint through lmdeploy's quantization/deploy paths (e.g., auto_awq, the TurboMind PytorchLoader, or VL model utils) which call torch.load() without weights_only=True, arbitrary code runs on their machine. A public proof-of-concept that builds such a malicious checkpoint is included in the GHSA advisory. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Oct 05, 2026
Arbitrary code execution in InternLM LMDeploy 0.11 and earlier: the toolkit calls torch.load() without weights_only=True when loading model checkpoint files, so a malicious .bin, .pt or .pth checkpoint executes attacker-supplied code during deserialization. Exploitation is unauthenticated in the sense of no credentials (CVSS PR:N) but is gated by user interaction (UI:R) - the victim must deliberately point LMDeploy at an attacker-controlled checkpoint through the quantization/deployment APIs, the TurboMind PytorchLoader, or the VL model loader; requests to LMDeploy's serving path with trusted first-party weights are unaffected, and .safetensors checkpoints use a safe loader. Publicly available exploit code exists in the GitHub advisory, and the issue is resolved in 0.11.1; no confirmed active exploitation (CISA KEV) was identified at time of analysis.
RemediationAI
Upgrade to LMDeploy 0.11.1 or later - vendor-released patch that applies weights_only=True at the vulnerable torch.load() call sites; the upstream fix is commit https://github.com/InternLM/lmdeploy/commit/eb04b4281c5784a5cff5ea639c8f96b33b3ae5ee and the advisory is https://github.com/InternLM/lmdeploy/security/advisories/GHSA-9pf3-7rrr-x5jh. Where an immediate upgrade is not possible, the highest-value compensating control is to accept only .safetensors checkpoints and reject .bin/.pt/.pth inputs, since LMDeploy's safetensors branch already bypasses pickle; the trade-off is that many community checkpoints are still distributed in legacy PyTorch format, so conversion to safetensors must be done once in a quarantined environment before use. Second, treat every downloaded checkpoint as untrusted code: convert it inside a disposable container or VM with no host credentials, network egress or mounted secrets, accepting the operational cost of a sandboxed conversion step. Third, if you maintain a fork or vendored copy, add weights_only=True explicitly to the affected call sites (vl/model/utils.py load_weight_ckpt, turbomind/deploy/loader.py PytorchLoader.items, lite/apis/smooth_quant.py and lite/apis/auto_awq.py) or backport the upstream commit; note that weights_only=True can fail on checkpoints containing non-tensor Python objects, which may require regenerating the checkpoint with the newer serializer. Do not rely on restricting the lmdeploy serving endpoint, since the trigger is local file loading (UI:R) rather than a network request - access controls on the HTTP API do not reduce this risk. There is no vendor-released workaround beyond the 0.11.1 upgrade.
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in pypi
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The root cause is CWE-502 (Deserialization of Untrusted Data). PyTorch's torch.load() dispatches to Python's pickle module when reading legacy checkpoint formats, and pickle reconstructs arbitrary objects by invoking callables returned from an object's __reduce__ method - a standard code-execution primitive (os.system, subprocess, etc.). Only the weights_only=True argument restricts the unpickler to tensors and primitive containers, blocking the pickle reduce path. The advisory documents that LMDeploy already used the secure pattern in lmdeploy/pytorch/weight_loader/model_weight_loader.py (line 103) but omitted it in at least six other locations: lmdeploy/vl/model/utils.py (line 22, load_weight_ckpt, which only falls back to torch.load for non-.safetensors files), lmdeploy/turbomind/deploy/loader.py (line 122, PytorchLoader.items), lmdeploy/lite/apis/kv_qparams.py (lines 129-130, key_stats.pth and value_stats.pth), lmdeploy/lite/apis/smooth_quant.py (line 61), lmdeploy/lite/apis/auto_awq.py (line 101, inputs_stats.pth) and lmdeploy/lite/apis/get_small_sharded_hf.py (line 41). The affected technology is the LLM compression/quantization and deployment toolchain that consumes third-party model weights - a supply-chain-relevant surface because users routinely pull checkpoints from model hubs. The upstream fix (commit eb04b428) adds weights_only=True to the auto_awq and get_small_sharded_hf call sites and removes the vulnerable kv_qparams.py module entirely. The RCE/Deserialization/Lmdeploy/Checkpoint tags and the CPE cpe:2.3:a:internlm:lmdeploy:*:*:*:*:*:*:*:* confirm the entire LMDeploy package line is the affected product family. The assessed CVSS vector AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H matches the advisory and the auth/interaction model: no privileges required, but the vector's UI:R reflects that the victim must actively load the hostile checkpoint, so this is not a remote unattended or drive-by trigger.
Know when Lmdeploy gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Malicious checkpoints are typically network-sourced (AV:N) and need no attacker privileges (PR:N), but the victim must load the file (UI:R); pickle deserialization yields full RCE, so C/I/A all High.
Primary rating from Vendor (github).
CVSS VectorVendor: github
DescriptionCVE.org
LMDeploy is a toolkit for compressing, deploying, and serving LLMs. Prior to version 0.11.1, an insecure deserialization vulnerability exists in lmdeploy where torch.load() is called without the weights_only=True parameter when loading model checkpoint files. This allows an attacker to execute arbitrary code on the victim's machine when they load a malicious .bin or .pt model file. This issue has been patched in version 0.11.1.
Executive ViewAI
A high-severity remote code execution flaw affects InternLM LMDeploy 0.11 and earlier, the model quantization and serving toolkit used by teams deploying large language models. An attacker who can supply a crafted model checkpoint file can cause arbitrary code to run on the host that loads it, meaning any workstation, build node, or GPU server that ingests third-party or untrusted model weights is a potential compromise target. Leadership should care because these hosts typically hold model artifacts, training data, and cloud credentials, and a successful exploit converts a routine model deployment step into full system compromise.
Apply vendor patch.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Insecure deserialization occurs when an application converts serialized data (a stream of bytes representing an object's state) back into a living object without proper validation.
Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.
Affected Products (CPE)CVE.org
Remote code execution in InternLM LMDeploy versions 0.9.1 through 0.10.1 allows unauthenticated network attackers to run
Server-Side Request Forgery (SSRF) in InternLM LMDeploy's vision-language module allows remote unauthenticated attackers
Unauthenticated remote code execution in InternLM LMDeploy (versions 0.9.2 through 0.15.x) allows a remote attacker to e
Unauthenticated remote code execution in InternLM LMDeploy versions 0.9.0 through 0.18.0 lets remote attackers run arbit
A vulnerability was found in InternLM LMDeploy up to 0.7.1. Rated medium severity (CVSS 4.8), this vulnerability is low
A vulnerability was found in InternLM LMDeploy up to 0.7.1. Rated medium severity (CVSS 4.8), this vulnerability is low
Denial of service in InternLM LMDeploy through 0.17.0 lets unauthenticated remote attackers crash the distributed infere
Memory exhaustion in InternLM LMDeploy through 0.17.0 can be triggered by unauthenticated remote attackers who send repe
Server-side request forgery in InternLM lmdeploy's OpenAI-compatible vision API server lets unauthenticated remote attac
Server-side request forgery in LMDeploy 0.12.3 through 0.14.x lets remote unauthenticated clients steer the server's mul
NVD
CVE.org
EPSS
GitHub
VulDB
Exploit-DB