Description
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.
Published: 2026-07-30
Score: 9.8 Critical
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

SGLang contains an insecure deserialization bug that allows remote code execution when loading model weights from a HuggingFace repository. The flaw stems from the /update_weights_from_disk routine that calls torch.load(..., weights_only=False), which falls back to pickle deserialization of .bin files. An attacker who can supply a malicious .bin file will cause arbitrary code to run within the process. This is a classic deserialization vulnerability, CWE-502, that can compromise confidentiality, integrity, and availability of the host.

Affected Systems

Every installation of the SGLang library that utilizes the update_weights_from_disk functionality is potentially affected. The advisory does not list specific version numbers, so any version of the library that implements this feature without mitigating the pickle fallback is at risk.

Risk and Exploitability

The EPSS score is less than 1 % and the vulnerability is not listed in CISA’s KEV catalog, suggesting a low probability of exploitation in the wild. However, the conditions required for exploitation are easy to meet in environments that ingest third‑party models, because a malicious .bin file can be introduced by placing a crafted file in a trusted HuggingFace repository or by tampering with a local model directory. The CVSS score of 9.8 indicates a critical impact; if successfully exploited, the attacker can attain full control of the running process.

Generated by OpenCVE AI on August 3, 2026 at 10:35 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade to the latest SGLang release that removes the pickle deserialization fallback or forces weights_only=True when calling torch.load.
  • If an upgrade is not possible, configure the application to restrict model loading to trusted repositories or supply the --weights-only flag to prevent pickle deserialization.
  • As a temporary measure, audit and validate the contents of all .bin files loaded by SGLang, ensuring they originate from verified sources before deserialization occurs.

Generated by OpenCVE AI on August 3, 2026 at 10:35 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Fri, 31 Jul 2026 20:30:00 +0000

Type Values Removed Values Added
Metrics cvssV3_1

{'score': 9.8, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H'}

ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'poc', 'Technical Impact': 'total'}, 'version': '2.0.3'}


Fri, 31 Jul 2026 19:45:00 +0000

Type Values Removed Values Added
Weaknesses CWE-502

Thu, 30 Jul 2026 19:45:00 +0000

Type Values Removed Values Added
First Time appeared Sglang
Sglang sglang
Vendors & Products Sglang
Sglang sglang

Thu, 30 Jul 2026 18:30:00 +0000

Type Values Removed Values Added
Description 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.
Title CVE-2026-15976
References

cve-icon MITRE

Status: PUBLISHED

Assigner: certcc

Published:

Updated: 2026-07-31T19:11:57.388Z

Reserved: 2026-07-16T15:38:40.919Z

Link: CVE-2026-15976

cve-icon Vulnrichment

Updated: 2026-07-31T19:11:15.318Z

cve-icon NVD

Status : Analyzed

Published: 2026-07-30T19:17:08.793

Modified: 2026-08-04T20:41:43.187

Link: CVE-2026-15976

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-03T10:45:03Z

Weaknesses
  • CWE-502

    Deserialization of Untrusted Data