Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessReach exposed SGLang management API
-
DeliveryPOST to /update_weights_from_disk with malicious .bin path
-
Exploittorch.load weights_only=False deserializes pickle
-
ExecutionGadget executes arbitrary code
-
ImpactRCE as serving process user
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A08:2025 - Software or Data Integrity Failures
ASVS 5.0
V1 - Encoding and Sanitization Safe deserialization, type allowlists
MITRE ATT&CK
2 techniques across 2 tactics: Execution, Initial Access The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires reaching SGLang's /update_weights_from_disk endpoint and causing it to load an attacker-influenced legacy PyTorch .bin file, which triggers the torch.load(..., weights_only=False) pickle-deserialization fallback. Concretely, the attacker must be able to (a) send requests to the model-management HTTP API - unauthenticated by default in SGLang, hence the CVSS PR:N - and (b) control or substitute the .bin weights source/path (e.g., a malicious HuggingFace repository or filesystem location). Limiting factors that reduce real-world exposure: the serving/management API is often bound to localhost or an internal network rather than the internet, deployments that use only .safetensors weights never hit the vulnerable pickle path, and installations behind an authenticating proxy or network ACL raise the effective privilege requirement above what the raw CVSS implies. No user interaction is needed once the endpoint is reachable. |
| Impact | The signals are mixed and worth weighing carefully. The CVSS 3.1 vector (AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H = 9.8) describes a network-reachable, low-complexity, unauthenticated, full-impact RCE - a maximum-severity profile, and CWE-502 with a torch.load pickle fallback is a well-understood, reliable exploitation primitive. Against that, EPSS is only 0.26% (18th percentile) and the CVE is NOT in CISA KEV, indicating no observed mass exploitation yet; the low EPSS despite the high CVSS suggests limited internet-facing exposure rather than a hard-to-exploit bug. The real determinant is deployment: SGLang endpoints are frequently bound on internal networks or localhost and are not intended to be internet-exposed, so PR:N holds only where the API is actually reachable and the attacker can influence the weights source/path. A caveat on the vector: exploitation requires the attacker to point the server at a malicious .bin (control over the loaded path or the referenced repository) - the CVSS treats this as no-privilege because the endpoint itself is unauthenticated, but defenders should verify whether their deployment authenticates or network-restricts the management API. Overall this is a genuine high priority for anyone exposing SGLang's serving API beyond a trusted boundary, but not evidence of active widespread attack. |
| Exploit ScenarioDerived | An attacker who can reach an SGLang server's management API sends a request to /update_weights_from_disk pointing at a malicious .bin checkpoint (for example a booby-trapped HuggingFace repo or a path the attacker controls). When SGLang loads it via torch.load with weights_only=False, the embedded pickle gadget executes, giving the attacker code execution as the serving user. The public disclosure write-up documents the technique, but no weaponized exploit is confirmed in CISA KEV. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jul 31, 2026
Remote code execution in SGLang (versions up to and including 0.5.15) allows attackers to run arbitrary code on the inference server by abusing the /update_weights_from_disk endpoint, which falls back to torch.load(..., weights_only=False) and thus deserializes attacker-controlled pickle streams embedded in .bin model-weight files. Because SGLang's HTTP serving API is typically exposed without authentication, an attacker able to reach the endpoint and influence the loaded weights path can achieve code execution as the serving process. This is a CWE-502 deserialization flaw rated CVSS 9.8; a vendor security advisory (GHSA-wf98-gv64-5wrf) and a public technical disclosure exist, though EPSS remains low (0.26%, 18th percentile) and it is not in CISA KEV - no public exploit identified at time of analysis beyond the disclosure write-up.
RemediationAI
Upgrade SGLang to a release newer than 0.5.15 that addresses GHSA-wf98-gv64-5wrf (consult the advisory at https://github.com/sgl-project/sglang/security/advisories/GHSA-wf98-gv64-5wrf for the exact fixed version; a released patched version is not independently confirmed from the provided data, so verify the fixed tag in the advisory before deploying). Until patched, apply compensating controls: do not expose the SGLang HTTP API to untrusted networks - bind it to localhost or place it behind an authenticated reverse proxy and restrict the /update_weights_from_disk route specifically, accepting that this disables remote hot-swapping of weights; load only .safetensors weights and avoid legacy .bin checkpoints so the pickle path is never taken (trade-off: some HuggingFace repos ship only .bin files and would need conversion); and constrain the weights source to a vetted local directory with strict filesystem permissions so an attacker cannot substitute a malicious .bin. Network-segment inference hosts and monitor for unexpected child processes spawned by the serving process as a detection backstop.
Affected VersionsENISA
Affects your stack
Find out whether the stacks and servers you run are on an affected version.
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
SGLang is a high-performance serving and runtime framework for large language models. The vulnerability lives in its weight-management control plane: the /update_weights_from_disk HTTP endpoint lets an operator hot-swap model weights from a filesystem path, often sourced from a HuggingFace repository. When loading legacy PyTorch .bin checkpoints, the code path falls back to torch.load with weights_only=False. PyTorch's default serialization format is Python pickle, and weights_only=False disables the safe-tensor-only guard, so torch.load will execute any __reduce__ / __setstate__ gadget encoded in the pickle stream during deserialization. This is the classic CWE-502 (Deserialization of Untrusted Data) root cause: the .bin file is not merely parsed as tensor data but is treated as executable object state. The affected component is cpe:2.3:a:sglang:sglang, all versions from 0 through 0.5.15 per the ENISA EUVD record.
Know when Sglang gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Network-reachable management endpoint is unauthenticated by default (PR:N) and the pickle fallback yields deterministic RCE (AC:L), giving full C/I/A impact on the host.
Primary rating from Vendor (certcc).
CVSS VectorVendor: certcc
Lifecycle Timeline
3DescriptionCVE.org
SGLang contains a RCE vulnerability when attempting to load model weights from a HuggingFace repository, specifically within the /update_weights_from_disk, where torch.load(..., weights_only=False) fallback enables pickle deserialization of .bin files.
Executive ViewAI
SGLang inference servers (versions ≤0.5.15) can be remotely compromised without authentication through unsafe deserialization of model weights, enabling attackers to execute arbitrary code and potentially steal models, compromise AI workloads, or exfiltrate sensitive training data. Organizations running SGLang for LLM serving face critical exposure until systems are isolated or patched. Immediate inventory and mitigation are required given the high-impact nature of inference infrastructure.
Until a vendor patch is released: (1) restrict network access to SGLang endpoints using firewall rules, limiting to trusted internal networks only; (2) implement reverse-proxy authentication (OAuth, API key) in front of SGLang to block unauthenticated requests; (3) disable or remove the /update_weights_from_disk endpoint if not required for operations; (4) monitor and validate model weight files before loading, rejecting any from untrusted sources; (5) run SGLang in isolated containers with minimal privileges and network segmentation; (6) establish an incident response plan for potential code-execution detection in inference servers.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Insecure deserialization occurs when an application converts serialized data (a stream of bytes representing an object's state) back into a living object without proper validation.
Missing authorization on SGLang's POST /load_lora_adapter_from_tensors HTTP endpoint lets any client that can reach the
Unauthenticated remote attackers can crash the SGLang inference server (versions up to and including 0.5.19) by calling
Remote code execution in SGLang (versions up to and including 0.5.15) allows unauthenticated attackers to run arbitrary
SGLang's multimodal generation module deserializes untrusted data with pickle.loads() over an unauthenticated ZMQ broker
SGLang's encoder parallel disaggregation system is vulnerable to unauthenticated RCE through pickle deserialization in t
Unauthenticated remote code execution in SGLang (the LLM/multimodal generation serving runtime) affecting version 5.10 a
Remote code execution in SGLang 0.5.9's /v1/rerank endpoint allows unauthenticated attackers to execute arbitrary code b
Remote code execution in SGLang AI inference servers allows unauthenticated attackers to run arbitrary code through the
Remote code execution in SGLang (versions ≤ v0.5.15) allows attackers to achieve arbitrary code execution through the op
Unauthenticated remote code execution affects SGLang, an LLM/multimodal inference-serving framework, at version 5.10, wh
Unauthenticated remote code execution in SGLang versions through v0.5.20 arises from unsafe pickle deserialization in th
Unauthenticated remote code execution in SGLang 0.5.11 through 0.5.14 occurs when the multimodal generation runtime is l
EUVD-2026-51264
GHSA-r344-357p-w9pp
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB