---
id: CVE-2025-10164
aliases:
  - GHSA-9w53-xr52-mwgj
  - PYSEC-2026-1919
title: >-
  SGLang Remote Code Execution Vulnerability via Unsafe Deserialization in
  update_weights_from_tensor
summary: >-
  SGLang Remote Code Execution Vulnerability via Unsafe Deserialization in
  update_weights_from_tensor
severity: high
cvss: 7.3
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L'
vendor: sglang
product: sglang
ecosystem: pip
affected:
  - sglang < 0.5.4
patched:
  - sglang 0.5.4
published: '2025-09-09'
updated: '2026-07-07'
source: OSV
sourceUrl: 'https://osv.dev/vulnerability/GHSA-9w53-xr52-mwgj'
references:
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2025-10164'
  - url: >-
      https://github.com/sgl-project/sglang/commit/49afb3d9d9deedf6dea3a6dd5c50e85e7d8bcb07
  - url: 'https://github.com/sgl-project/sglang'
  - url: 'https://vuldb.com/?ctiid.323203'
  - url: 'https://vuldb.com/?id.323203'
  - url: 'https://vuldb.com/?submit.635919'
tags:
  - osv
  - pip
epss: 0.00404
epssPercentile: 0.34406
ingestedAt: '2026-07-08T18:25:48.102Z'
---

## Overview

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 packages

- `sglang < 0.5.4`

## Remediation

Upgrade to a patched release:

- `sglang 0.5.4`
