Skip to main content

LMDeploy CVE-2025-67729

HIGH
Deserialization of Untrusted Data (CWE-502)
2025-12-26 security-advisories@github.com
8.8
CVSS 3.1 · Vendor: github
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Publish trojanized .pt/.bin checkpoint
  2. Delivery
    Victim downloads malicious model
  3. Exploit
    torch.load() unpickles payload
  4. Execution
    os.system executes attacker code
  5. Impact
    Full 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.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.6% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

pypi lmdeploy fix: 0.11.1

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

Vendor (github) PRIMARY 8.8 HIGH
AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
vuln.today AI 8.8 HIGH

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.

3.1 AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
4.0 AV:N/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (github).

CVSS VectorVendor: github

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

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

Why It Matters

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.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.6%
Top 53% exploitable
Prevalence
Medium
popular open-source LLM serving toolkit, but ML-infrastructure niche
Data Quality
5 sources
Confidence: Medium

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.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.6%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact
High

Priority Score

45
Low Medium High Critical
KEV: 0
EPSS: +1
CVSS: +44
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

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

cpe:2.3:a:internlm:lmdeploy:*:*:*:*:*:*:*:*
CVE-2025-59953 CRITICAL POC
9.8 Sep 16

Remote code execution in InternLM LMDeploy versions 0.9.1 through 0.10.1 allows unauthenticated network attackers to run

CVE-2026-33626 HIGH POC
7.5 Apr 20

Server-Side Request Forgery (SSRF) in InternLM LMDeploy's vision-language module allows remote unauthenticated attackers

CVE-2026-76850 CRITICAL
9.3 Aug 19

Unauthenticated remote code execution in InternLM LMDeploy (versions 0.9.2 through 0.15.x) allows a remote attacker to e

CVE-2026-119706 CRITICAL
9.3 Oct 30

Unauthenticated remote code execution in InternLM LMDeploy versions 0.9.0 through 0.18.0 lets remote attackers run arbit

CVE-2025-3162 MEDIUM POC
4.8 Apr 03

A vulnerability was found in InternLM LMDeploy up to 0.7.1. Rated medium severity (CVSS 4.8), this vulnerability is low

CVE-2025-3163 MEDIUM POC
4.8 Apr 03

A vulnerability was found in InternLM LMDeploy up to 0.7.1. Rated medium severity (CVSS 4.8), this vulnerability is low

CVE-2026-92971 HIGH
8.7 Sep 17

Denial of service in InternLM LMDeploy through 0.17.0 lets unauthenticated remote attackers crash the distributed infere

CVE-2026-92983 HIGH
8.7 Sep 17

Memory exhaustion in InternLM LMDeploy through 0.17.0 can be triggered by unauthenticated remote attackers who send repe

CVE-2026-63764 HIGH
7.7 Jul 21

Server-side request forgery in InternLM lmdeploy's OpenAI-compatible vision API server lets unauthenticated remote attac

CVE-2026-123818 HIGH
7.5 Nov 09

Server-side request forgery in LMDeploy 0.12.3 through 0.14.x lets remote unauthenticated clients steer the server's mul

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy