CVE-2025-10164: RCE via unsafe deserialization in lmsys sglang 0.4.6 /update_weights_from_tensor
In lmsys sglang 0.4.6, the /update_weights_from_tensor endpoint (function main) is vulnerable to unsafe deserialization due to improper handling of the serialized_named_tensors argument. A remote attacker can supply crafted serialized data that is deserialized by the service, enabling remote exploitation. Public exploit code is reported as available.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
Remote code execution on the SGLang inference server via unsafe deserialization in the /update_weights_from_tensor endpoint, potentially leading to full compromise of the host running the service (including access to model-serving infrastructure and any reachable internal resources from that host).
Mitigation
If you can’t patch tonight, do this now.
Restrict network exposure of the SGLang service (do not expose /update_weights_from_tensor to untrusted networks), enforce strong authentication/authorization on administrative/model-update endpoints, and place the service behind a reverse proxy/WAF with request filtering to block unexpected serialized payloads. Run the inference service with least privilege and strong container/VM isolation to reduce blast radius if exploited.
Remediation
Patch, then assume compromise.
Upgrade/patch SGLang to a vendor-fixed release that removes or hardens deserialization in /update_weights_from_tensor (e.g., by eliminating unsafe deserialization of attacker-controlled data and enforcing strict input validation/allowlisting). If no fixed version is available in the provided content, obtain and apply the upstream patch addressing CVE-2025-10164.
Exploits
No public exploits tracked yet. Mallory keeps watching.
Frequently asked questions
- Is CVE-2025-10164 exploited in the wild?
- Yes. As of Oct 16, 2026, Mallory has reports of exploitation in the wild.
- Is there a public exploit for CVE-2025-10164?
- Yes. As of Oct 16, 2026, Mallory has reports of a public exploit for CVE-2025-10164.
- Is there a patch for CVE-2025-10164?
- Upgrade/patch SGLang to a vendor-fixed release that removes or hardens deserialization in /update_weights_from_tensor (e.g., by eliminating unsafe deserialization of attacker-controlled data and enforcing strict input validation/allowlisting). If no fixed version is available in the provided content, obtain and apply the upstream patch addressing CVE-2025-10164.
- How severe is CVE-2025-10164?
- CVE-2025-10164 has a CVSS v4 score of 5.5 (Medium) and an EPSS score of 0.42% (37th percentile) as of Oct 16, 2026.
Recent activity
1 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.