InternLM LMdeploy
LMdeploy has Remote Code Execution by Pickle Deserialization via zmq_rpc.call_and_response() in InterLM/lmdeploy
LMDeploy is a toolkit for compressing, deploying, and serving large language models. Starting in version 0.9.1 and prior to version 0.10.2, the LMdeploy implements an rpc server (AsyncRPCServer in zmq_rpc.py) for supporting the RPC communications. In its core functionality call_and_response(), I found it will directly use the pickles.loads() to deserialize the received messages without any sanitization, hence resulting in a remote code execution vulnerability by this RPC server. Version 0.10.2 contains a patch.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 0.9.1, < 0.10.2
Fixed in 0.10.2
Mitigation
Upgrade lmdeploy to 0.10.2 or later.
References
- Vendor advisory github.com/InternLM/lmdeploy/security/advisori…
- Release notes github.com/InternLM/lmdeploy/releases/tag/v0.1…
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.