CVE-2026-7304

CVE-2026-7304

Published May 18, 2026 CVSS 3.1 · 9.8 Critical EPSS < 1% KEV · Not listed
Description
SGLangs multimodal generation runtime is vulnerable to unauthenticated remote code execution when the --enable-custom-logit-processor option is enabled, as Python objects loaded via dill.loads() will be deserialized without validation.

Analysis

AI-generated

Technical impact

SGLang’s multimodal generation runtime contains a flaw that permits the execution of arbitrary code when the optional flag --enable-custom-logit-processor is activated. Under this configuration the runtime passes untrusted data to dill.loads(), which deserializes Python objects without performing any validation. An attacker who can supply a maliciously crafted pickle payload can cause the runtime to import and execute arbitrary code, effectively compromising the host system. The weakness is a classic example of unsafe deserialization that can fully compromise confidentiality, integrity, and availability of the affected system.

Affected Systems

Any deployment of the SGLang multimodal generation runtime that employs the --enable-custom-logit-processor option is vulnerable. No specific version constraints are listed, so every release before a future fix that validates dill deserialization is at risk. The vulnerability impacts users who run the runtime locally or on a network‑accessible machine where the option can be enabled.

Risk and Exploitability

The CVSS score is 9.8, indicating a high risk due to the ability to execute untrusted code without authentication. EPSS data is unavailable, and the vulnerability is not listed in the CISA KEV catalog. The likely attack vector is local or remote to the runtime process: an attacker who can invoke SGLang with the vulnerable flag can drop a malicious pickle payload, which the runtime will deserialize and execute. The exploitation requires the ability to configure or control the command line arguments for the runtime, implying the need for administrative or elevated privileges on the host.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Disable the --enable-custom-logit-processor flag when launching the SGLang runtime until a validated patch becomes available
  • Upgrade to the latest SGLang release that incorporates input validation for dill deserialization, once it is released
  • If a patch is not immediately available, restrict execution of the SGLang process to a sandboxed or least‑privilege environment where arbitrary code execution will not affect critical resources

Generated by OpenCVE AI on May 18, 2026 at 15:21 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-36m8-w8qf-g76p SGLang: Unauthenticated RCE via --enable-custom-logit-processor
History
Type Values Removed Values Added
First Time appeared Lmsys
Lmsys sglang
CPEs cpe:2.3:a:lmsys:sglang:0.5.10:-:*:*:*:*:*:*
Vendors & Products Lmsys
Lmsys sglang
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': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Sglang
Sglang sglang
Weaknesses CWE-502
Vendors & Products Sglang
Sglang sglang
Type Values Removed Values Added
Description SGLangs multimodal generation runtime is vulnerable to unauthenticated remote code execution when the --enable-custom-logit-processor option is enabled, as Python objects loaded via dill.loads() will be deserialized without validation.
Title CVE-2026-7304
References
Weaknesses
  • CWE-502

    Deserialization of Untrusted Data

Sources

Status
PUBLISHED
Assigner
certcc
Published
Updated
May 18, 2026, 2:04 PM
Reserved
Apr 28, 2026, 11:45 AM
Status
Analyzed
Published
May 18, 2026, 12:16 PM
Modified
Oct 14, 2026, 8:10 PM