Advisory

PYSEC-2026-1919

Also known as: CVE-2025-10164, GHSA-9w53-xr52-mwgj

Summary

SGLang Remote Code Execution Vulnerability via Unsafe Deserialization in update_weights_from_tensor

Details

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.

Severity

High Basis: CVSS v3 score 7.3, vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L

Dates

Published
2026-07-07 16:03 UTC
Modified
2026-07-07 17:48 UTC

Affected packages and fixes

sglang

PyPI · All systems

Affected

  • introduced 0, fixed 0.5.4 (ecosystem)

Fixed versions

0.5.4

Fix

  • Fixed version 0.5.4
    pip install --upgrade sglang==0.5.4

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: PyPA Advisory Database · CC BY 4.0

Sources & licences