
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2025-67729 is an insecure deserialization vulnerability in InternLM's lmdeploy, an LLM deployment toolkit, that allows arbitrary code execution when loading malicious PyTorch model checkpoint files. The vulnerability affects all lmdeploy versions up to and including 0.11, with version 0.11.1 containing the fix. It was disclosed on December 26, 2025, via a GitHub Security Advisory (GHSA-9pf3-7rrr-x5jh). The CVSS v3.1 base score is 8.8 (High) (Github Advisory, Feedly).
The root cause is CWE-502 (Deserialization of Untrusted Data): multiple locations in lmdeploy call torch.load() without the weights_only=True parameter, which causes PyTorch to use Python's pickle module internally — a known-unsafe deserialization mechanism. Vulnerable files include lmdeploy/vl/model/utils.py (line 22), lmdeploy/turbomind/deploy/loader.py (line 122), lmdeploy/lite/apis/kv_qparams.py, lmdeploy/lite/apis/smooth_quant.py, lmdeploy/lite/apis/auto_awq.py, and lmdeploy/lite/apis/get_small_sharded_hf.py. An attacker crafts a malicious .bin or .pt file embedding a pickle payload with a __reduce__ method that executes arbitrary OS commands upon deserialization; exploitation requires the victim to load the file (user interaction). A PoC was published as part of the advisory demonstrating command execution via a crafted pytorch_model.bin (Github Advisory, Patch Commit).
Successful exploitation results in arbitrary code execution on the victim's machine with the privileges of the lmdeploy process, enabling full system compromise. An attacker can steal sensitive data (credentials, API keys, model weights), deploy malware such as cryptominers or ransomware, or pivot laterally to other systems in cloud or on-premises environments. All users who load PyTorch .bin or .pt model files from untrusted sources — including models downloaded from HuggingFace, ModelScope, or shared by third parties — are at risk (Github Advisory).
A proof-of-concept exploit was included in the security advisory itself, demonstrating RCE via a crafted pickle payload embedded in a pytorch_model.bin file. There is no evidence of active in-the-wild exploitation or threat actor attribution at this time. The EPSS score is approximately 0.134% (33rd percentile), indicating a low but non-negligible probability of exploitation in the near term. The vulnerability is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog (Github Advisory, Feedly).
pickle to serialize a MaliciousPayload object whose __reduce__ method returns (os.system, ('malicious_command',)). Save the output as pytorch_model.bin or a .pt file.lmdeploy.pipeline('path/to/malicious_model')), triggering one of the vulnerable torch.load() calls in lmdeploy/vl/model/utils.py, lmdeploy/turbomind/deploy/loader.py, or the lite/apis/ modules.__reduce__, executing the attacker's command with the victim's OS-level privileges — confirmed by the PoC output [PoC] Arbitrary code executed! - RCE confirmed..bin or .pt files in model directories that are not from verified sources; presence of create_malicious_checkpoint.py or exploit.py scripts; new or modified files in the lmdeploy installation directory created by the service account.bash, sh, curl, wget, python) immediately after model loading; unexpected os.system() or subprocess calls in process trees.Upgrade lmdeploy to version 0.11.1 or later, which adds weights_only=True to all affected torch.load() calls across six files (Patch Commit). As an interim workaround, only load model checkpoints from verified, trusted sources and avoid loading .bin or .pt files from unknown third parties. Consider migrating to the SafeTensors format where possible, as it is already supported in lmdeploy and is immune to pickle-based deserialization attacks. Running lmdeploy in a sandboxed or isolated environment (e.g., container with restricted network and filesystem access) can limit the blast radius if exploitation occurs (Github Advisory).
The vulnerability was noted by TheHackerWire and shared on Mastodon and Bluesky shortly after disclosure, highlighting the risk of insecure deserialization in AI/ML tooling. Red Hat tracked the issue under their CVE database, and CISA included it in their weekly vulnerability bulletin (SB25-363) for the week of December 22, 2025. Community reaction emphasized the broader pattern of torch.load() misuse in ML frameworks, referencing related CVEs such as CVE-2025-32434 (PyTorch RCE, CVSS 9.3) and CVE-2024-5452 (PyTorch Lightning) as part of a recurring class of vulnerabilities in the AI/ML ecosystem (TheHackerWire, CISA Bulletin).
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."