Technical impact
InternLM LMDeploy v0.9.0 through v0.18.0 contains an unauthenticated remote code execution flaw that allows an attacker to run arbitrary operating‑system commands by sending a base64‑encoded, meticulously crafted pickle to the /update_weights endpoint, exploiting an unsafe deserialization vulnerability (CWE‑502). The ForkingPickler.loads function deserializes the payload without validation, executing code with the privileges of the api_server process. This gives the attacker full control over the machine running LMDeploy.
Affected Systems
The vulnerable package is InternLM LMDeploy, version range 0.9.0 to 0.18.0. The impact spans all deployments that expose the /update_weights endpoint, including those hosted on public or internal web servers, as the vulnerability is independent of authentication.
Risk and Exploitability
The CVSS score of 9.3 marks this flaw as critical. With an EPSS score of 1%, the exploitation probability is low but non‑zero. Based on the description, it is inferred that the attack vector is a network‑based HTTP request to the exposed /update_weights endpoint and that no authentication barrier exists, allowing any networked party to exploit the flaw. Attackers construct a malicious, base64‑encoded pickle, send it in the serialized_named_tensors field, and the ForkingPickler.loads deserialization executes arbitrary OS commands with api_server privileges. This presents a severe threat surface for any environment that relies on LMDeploy without proper access controls or patching.