A Leader in the 2026 Gartner® Magic Quadrant™ for Endpoint Protection. Six years running.Six years. Gartner® Magic Quadrant™ Leader.Find Out Why
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2026-7304

CVE-2026-7304: Lmsys Sglang RCE Vulnerability

CVE-2026-7304 is a remote code execution vulnerability in Lmsys Sglang's multimodal generation runtime caused by unsafe deserialization. This article covers the technical details, affected versions, impact, and mitigation.

Published: May 21, 2026

CVE-2026-7304 Overview

CVE-2026-7304 is an unauthenticated remote code execution vulnerability in the SGLang multimodal generation runtime maintained by LMSYS. When the runtime is launched with the --enable-custom-logit-processor option, Python objects submitted by remote clients are passed to dill.loads() and deserialized without validation. An attacker who can reach the inference endpoint can craft a malicious serialized payload that runs arbitrary code in the server process. The flaw is classified under [CWE-502: Deserialization of Untrusted Data].

Critical Impact

Unauthenticated attackers with network access to an SGLang server started with --enable-custom-logit-processor can execute arbitrary Python code on the host, leading to full compromise of the model-serving infrastructure.

Affected Products

  • LMSYS SGLang 0.5.10
  • SGLang deployments started with the --enable-custom-logit-processor flag
  • Multimodal generation runtime exposed over the network

Discovery Timeline

  • 2026-05-18 - CVE-2026-7304 published to NVD
  • 2026-05-19 - Last updated in NVD database

Technical Details for CVE-2026-7304

Vulnerability Analysis

SGLang is a serving runtime for large language and multimodal models. The runtime exposes a feature that allows clients to supply a custom logit processor, a callable that adjusts token probabilities during generation. When the operator starts the server with --enable-custom-logit-processor, SGLang accepts a serialized Python object from the request payload and reconstructs it with dill.loads().

dill extends Python's pickle protocol and inherits the same security properties. Any deserialization of attacker-controlled bytes can invoke __reduce__ methods that execute arbitrary code in the interpreter. SGLang performs no signature check, allow-list, or sandboxing around the call, so the inference worker runs whatever the attacker encodes.

Root Cause

The root cause is insecure deserialization of untrusted input. The custom logit processor feature trusts that callers will send benign Python callables. dill.loads() is not a safe parser and is not designed for untrusted data. Combined with the lack of authentication on the inference endpoint, every request body becomes a code-execution primitive.

Attack Vector

The attack is network-based and requires no authentication or user interaction. An attacker sends a generation request to the SGLang HTTP endpoint with a malicious pickled object in the logit-processor field. The server deserializes the payload, executes the embedded __reduce__ gadget, and the attacker gains code execution as the SGLang process user. Typical post-exploitation steps include exfiltrating model weights, stealing API keys from environment variables, and pivoting into the GPU cluster.

For a full write-up of the deserialization path and related issues, see the AntiProof analysis of three RCEs in SGLang and the SGLang Python source tree.

Detection Methods for CVE-2026-7304

Indicators of Compromise

  • SGLang processes spawning child processes such as sh, bash, python, curl, or wget that are not part of normal inference workflows.
  • Outbound network connections from inference hosts to unfamiliar IP addresses shortly after a generation request.
  • HTTP request bodies to SGLang endpoints containing base64-encoded blobs that begin with pickle opcodes such as gASV or \\x80\\x04.
  • Modifications to ~/.ssh/authorized_keys, cron entries, or systemd units on model-serving hosts.

Detection Strategies

  • Inspect SGLang launch arguments across the fleet for the --enable-custom-logit-processor flag and treat any match as in-scope for incident response.
  • Apply network IDS signatures that flag pickle magic bytes (\\x80\\x02, \\x80\\x04, \\x80\\x05) inside JSON fields posted to inference APIs.
  • Correlate process-creation telemetry with the SGLang parent PID to surface unexpected interpreter or shell invocations.

Monitoring Recommendations

  • Forward SGLang stdout, stderr, and access logs to a centralized analytics platform and alert on tracebacks referencing dill, pickle, or _reconstructor.
  • Monitor GPU hosts for unsigned binaries executing from /tmp, /dev/shm, or the SGLang working directory.
  • Track egress from inference subnets and alert on connections to non-allowlisted destinations.

How to Mitigate CVE-2026-7304

Immediate Actions Required

  • Restart any SGLang instance running with --enable-custom-logit-processor without that flag until a patched version is deployed.
  • Place SGLang endpoints behind an authenticated reverse proxy and restrict ingress to known client subnets.
  • Rotate credentials, API tokens, and model artifacts accessible to any SGLang host that may have been exposed.

Patch Information

No fixed version is listed in the NVD record at the time of publication. Track the SGLang upstream repository for releases that replace dill.loads() with a safe serialization scheme, and review the AntiProof advisory for vendor coordination updates.

Workarounds

  • Disable the custom logit processor feature in all deployments and remove --enable-custom-logit-processor from launch scripts and container manifests.
  • Run SGLang under a low-privilege service account with restrictive filesystem and network policies, for example using seccomp or AppArmor profiles.
  • Terminate TLS at an authenticating gateway and reject requests whose payloads contain raw pickle byte sequences.
bash
# Configuration example: launch SGLang without the vulnerable flag
python -m sglang.launch_server \
  --model-path /models/llava \
  --host 127.0.0.1 \
  --port 30000
# Do NOT add: --enable-custom-logit-processor

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechLmsys Sglang

  • SeverityCRITICAL

  • CVSS Score9.8

  • EPSS Probability0.32%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-502
  • Technical References
  • AntiProof Blog: Three RCEs

  • GitHub SGLang Python Repository
  • Related CVEs
  • CVE-2026-7301: Lmsys Sglang RCE Vulnerability

  • CVE-2026-3059: Lmsys Sglang RCE Vulnerability

  • CVE-2026-7302: Lmsys Sglang Path Traversal Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English