SGLang Remote Code Execution Vulnerability via Unsafe Deserialization in update_weights_from_tensor
A security flaw has been discovered in lmsys sglang 0.4.6. Affected by this vulnerability is the function main of the file /update_weights_from_tensor. The manipulation of the argument serialized_named_tensors results in deserialization. The attack can be launched remotely. The exploit has been released to the public and may be exploited. The vendor was contacted early about this disclosure but did not respond in any way.
Affected software
Click a technology to see all vulnerabilities affecting it.
| Platform | Package | Vulnerable versions | Fixed in |
|---|---|---|---|
| Python (PyPI) | sglang | < 0.5.4 | 0.5.4 |
References
- https://nvd.nist.gov/vuln/detail/CVE-2025-10164
- https://github.com/sgl-project/sglang/commit/49afb3d9d9deedf6dea3a6dd5c50e85e7d8bcb07
- https://github.com/sgl-project/sglang
- https://vuldb.com/?ctiid.323203
- https://vuldb.com/?id.323203
- https://vuldb.com/?submit.635919
- https://pypi.org/project/sglang
- https://github.com/advisories/GHSA-9w53-xr52-mwgj
- CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L- Weakness (CWE)
CWE-20, CWE-502- Platform
- Python (PyPI)
- Package
sglang- Disclosed
- 09.09.2025
- Updated
- 11.10.2026 13:19
Sources and licenses
OSV / GitHub Advisory Database - PYSEC-2026-1919 - PyPA Advisory Database; CC BY 4.0
OSV / GitHub Advisory Database - GHSA-9w53-xr52-mwgj - CC BY 4.0
Vulnerability history: sglang
All published vulnerabilities of this package (Python (PyPI)), newest first. Shows whether this is a one-off slip or a package that needs watching.
- Total entries
- 10
- First → latest
- 09.2025 06.2026
- Without a fix
- 6
- Exploited in attacks
- 0
Severity breakdown
- Critical 5
- High 1
- Medium 2
- Low 2
Disclosures per year
- 2025: 1
- 2026: 9
-
SGLang Remote Code Execution Vulnerability via Unsafe Deserialization in update_weights_from_tensor this entry
Know which vulnerabilities affect your application
With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.