CVE-2026-7304 CVE-2026-7304

Critical 9.8 Published Updated

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.

PackageAffectedFixed in
sglang PyPIFrom 0.4.1.post7 to 0.5.12None
sglang PyPIFrom 0.4.1.post7 to 0.5.12None
sglang PyPIFrom 0.4.1.post7 to 0.5.12None

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.

Sources

Also known as GHSA-36m8-w8qf-g76p, PYSEC-2026-535.

Is CVE-2026-7304 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free