Horizon Alert
Summary of the vulnerability and why it matters
A critical vulnerability exists in InternLM's LMDeploy technology, specifically within its weight update function. This issue allows unauthenticated remote attackers to execute operating system commands by sending specially crafted data. The primary concern is to confirm if this technology is used within the organization and if so, to what extent it might be exposed.
- Unauthenticated attackers can run commands remotely.
- Confirm relevance and exposure of this technology.
- Understand potential impact on deployed systems.
Attack Path
How an attacker could exploit the issue
An attacker can exploit this vulnerability by sending specially crafted, pickled data over the network to the `/update_weights` endpoint of InternLM LMDeploy. This endpoint is designed to accept serialized tensors for updating model weights but lacks proper validation of the incoming data. When the system deserializes this malicious pickle, it can be tricked into executing arbitrary operating system commands with the privileges of the `api_server` process.
- Unauthenticated network access required.
- Sending pickled data to `/update_weights`.
- Arbitrary command execution as `api_server`.
Live Threat
Current exploitation, exposure, and threat context
This vulnerability could allow an unauthenticated remote attacker to execute arbitrary operating system commands on the affected system by sending specially crafted pickled data to the `/update_weights` endpoint. This occurs because the application deserializes this data without proper validation, leading to command execution with the privileges of the `api_server` process.
- System commands execution.
- Unauthenticated network requests.
- Compromised server integrity.
Operational Fix
Recommended remediation, mitigation, and detection steps
Application owners and infrastructure teams are likely responsible for addressing this critical remote code execution vulnerability. The first practical move involves identifying all instances of the affected technology, confirming their network reachability and business criticality, and then locating the accountable owner for remediation planning.
- Own the issue and its remediation.
- Verify exposure and business criticality.
- Plan and coordinate remediation actions.