Intel

AIKIDO-2026-543696

sglang is vulnerable to Deserialization of Untrusted Data

Deserialization of Untrusted DataCVE-2026-86793 Published Sep 18, 2026

98

Critical Risk

This Affects:

PYTHONsglang
0.1.3 - 0.5.19
Fixed in 0.5.20
Are you affected? Scan for Free

TL;DR

The /update_weights_from_tensor HTTP endpoint deserializes a base64-encoded pickle payload through the SafeUnpickler class in python/sglang/srt/utils/common.py. SafeUnpickler allowlists the entire builtins module prefix and its denylist omits __import__ and getattr, so a crafted payload chains builtins.__import__ and builtins.getattr inside a pickle REDUCE operation to resolve os.system and run arbitrary commands. The endpoint is marked AuthLevel.ADMIN_OPTIONAL, so it accepts unauthenticated requests whenever the server runs without a configured API key.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and the server is deployed without an API key so the /update_weights_from_tensor endpoint accepts unauthenticated requests.

Background info

sglang is vulnerable to Deserialization of Untrusted Data in versions 0.1.3 - 0.5.19.

How to fix this

Upgrade the sglang library to the patch version.

Are You Affected?

Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.

Free. No credit card required.

Aikido Platform