CVE-2026-7304 CVE-2026-7304
Unauthenticated remote code execution in SGLang when custom logit processors are enabled due to unsafe deserialization.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2026-7304?
CVE-2026-7304 is a critical unsafe deserialization vulnerability in SGLang, published on 18 May 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official 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.
Weakness: CWE-502
Which versions are affected by CVE-2026-7304?
3 open source packages ship an affected version, including sglang. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
sglang PyPI | From 0.4.1.post7 to 0.5.12 | None |
sglang PyPI | From 0.4.1.post7 to 0.5.12 | None |
sglang PyPI | From 0.4.1.post7 to 0.5.12 | None |
Products include Lmsys Sglang.
How do I fix CVE-2026-7304?
No fix has been published for CVE-2026-7304 yet. Limit exposure of the affected software until one is available.
Upgrade, and only deserialise data from trusted sources or with an allow-list of types. More about Unsafe deserialization.
Is CVE-2026-7304 being exploited?
There is no known exploitation of CVE-2026-7304 in the wild and no public exploit code.
Other vulnerabilities in SGLang
Sources
Also known as GHSA-36m8-w8qf-g76p, PYSEC-2026-535.