upatch.dev

CVE-2026-93034

CVE-2026-93034

Refuses subprocess execution by SGLang processes to mitigate CVE-2026-93034.

Critical 9.8Vetted

EPSS 0.9%: the estimated chance this CVE is exploited in the next 30 days, as of 25 Nov 2026.

At a glance

CVE-2026-93034 is a critical (CVSS 9.8) vulnerability in SGLang, published 8 October 2026. A vetted upatch, cve-2026-93034-exec-block, blocks it on running Linux machines with shirudo until SGLang is upgraded.

Severity
Critical 9.8 CVSS 3.1
Chance of exploitation
0.9% in the next 30 days (EPSS, 25 Nov 2026)
Known exploited
No, not on CISA’s KEV list
Weakness
CWE-502
Affected software
SGLang
Upatch status
Vetted, merged into the registry
How to apply
Build, sign and roll out with shirudo

Overview

CVE-2026-93034 (CERT/CC VU#765030, GHSA-w4hv-c72g-pqx6), published on 8 October 2026, is an unauthenticated deserialization vulnerability (CWE-502) in SGLang (all versions up to and including v0.5.20 in the CVE record, confirmed at v0.5.18 commit 71de97b264b04dcd514cf904003028aefe9775c8). In python/sglang/srt/managers/io_struct.py, PickleWrapper is registered in _struct_types for _msgpack_decoder, and msgpack_decode unconditionally passes the decoded object to _maybe_unwrap_pickle, which calls pickle.loads(obj.data) whenever isinstance(obj, PickleWrapper) is true. Even when SGLANG_USE_PICKLE_IPC=0 disables direct recv_pyobj() transport, ZMQ receivers such as DetokenizerManager.event_loop (python/sglang/srt/managers/detokenizer_manager.py) call sock_recv(self.recv_from_scheduler) and unwrap top-level PickleWrapper messages via pickle.loads() before self._request_dispatcher(recv_obj) runs. When data-parallel attention is enabled with a non-loopback --dist-init-addr, these unauthenticated ZMQ TCP sockets are reachable over the network.

Official description

SGLang contains an arbitrary code execution vulnerability caused by the ZMQ message decoder unconditionally deserializing PickleWrapper payloads via pickle.loads() in _maybe_unwrap_pickle without type allowlisting or authentication; this vulnerability persists via the msgpack path even when SGLANG_USE_PICKLE_IPC is disabled, and becomes remotely exploitable if data-parallel attention is enabled with a non-loopback --dist-init-addr setting.

Affected versions

SGLang:

Versions Status
Up to and including v0.5.20 (tested on v0.5.18, commit 71de97b264b04dcd514cf904003028aefe9775c8) Affected

Kernels: any Linux kernel supported by shirudo with BPF LSM and BTF enabled (lsm/bprm_check_security).

Sources

More references from NVD (2)

Mitigation

The BPF LSM program cve_2026_93034_exec_block attaches to lsm/bprm_check_security and returns -EPERM when the calling process has an executable whose name starts with python (task->mm->exe_file->f_path.dentry) and the calling task, its thread-group leader (group_leader), its parent (real_parent), or its parent's thread-group leader has a task comm starting with sglang (matching setproctitle.setproctitle("sglang::detokenizer"), sglang::scheduler, and sglang::data_parallel_controller).

Hook Refused
lsm/bprm_check_security Executing any external binary (execve / execveat) by a Python process whose task or parent comm starts with sglang

When an earlier BPF LSM program on the same hook has already returned an error, that verdict is preserved. Refusals are counted in the per-CPU array map refused at key 0.

Side effects

  • SGLang worker processes whose comm starts with sglang (and their forked children) cannot spawn external commands via execve after startup. Normal ZMQ IPC and token detokenization run in-process in Python and do not execute external binaries.
  • Non-Python processes and Python processes whose task and parent comm do not start with sglang are unaffected.
  • Not covered: pure in-memory Python actions during pickle.loads() that do not invoke execve, or SGLang processes started under a custom process name that does not start with sglang.

Preemption model and cost

The program holds no locks and shares only the per-CPU refused counter, updated with __sync_fetch_and_add, making it safe under all kernel preemption models including PREEMPT_LAZY, PREEMPT_DYNAMIC, and PREEMPT_RT. On every execve, the program checks the current task's executable prefix (python) first and returns immediately for non-Python processes.

The policy

91 lines of BPF C, attached at lsm/bprm_check_security.

// SPDX-License-Identifier: GPL-2.0 OR BSD-2-Clause

#include "vmlinux.h"
#include <bpf/bpf_helpers.h>
#include <bpf/bpf_tracing.h>
#include <bpf/bpf_core_read.h>

#define EPERM 1

char _license[] SEC("license") = "Dual BSD/GPL";

struct {
	__uint(type, BPF_MAP_TYPE_PERCPU_ARRAY);
	__uint(max_entries, 1);
	__type(key, __u32);
	__type(value, __u64);
} refused SEC(".maps");

static __always_inline void count_refused(void)
{
	__u32 key = 0;
	__u64 *value = bpf_map_lookup_elem(&refused, &key);

	if (value)
		__sync_fetch_and_add(value, 1);
}

static __always_inline int earlier_verdict(int ret)
{
	return ret >= -4095 && ret < 0 ? ret : -EPERM;
}

static __always_inline bool comm_is_sglang(const struct task_struct *task)
{
	char comm[16] = {};

	if (!task)
		return false;
	if (bpf_probe_read_kernel(comm, sizeof(comm), &task->comm))
		return false;
	return comm[0] == 's' && comm[1] == 'g' && comm[2] == 'l' &&
	       comm[3] == 'a' && comm[4] == 'n' && comm[5] == 'g';
}

static __always_inline bool exe_is_python(const struct task_struct *task)
{
	const struct dentry *exe = BPF_CORE_READ(task, mm, exe_file, f_path.dentry);
	const unsigned char *name = BPF_CORE_READ(exe, d_name.name);
	__u32 len = BPF_CORE_READ(exe, d_name.len);
	char buf[7] = {};

	if (!name || len < 6)
		return false;
	if (bpf_probe_read_kernel(buf, 6, name))
		return false;
	return buf[0] == 'p' && buf[1] == 'y' && buf[2] == 't' &&
	       buf[3] == 'h' && buf[4] == 'o' && buf[5] == 'n';
}

static __always_inline bool is_sglang_task(void)
{
	struct task_struct *task = bpf_get_current_task_btf();
	struct task_struct *parent;
	struct task_struct *leader;
	struct task_struct *parent_leader;

	if (!exe_is_python(task))
		return false;
	if (comm_is_sglang(task))
		return true;
	leader = BPF_CORE_READ(task, group_leader);
	if (comm_is_sglang(leader))
		return true;
	parent = BPF_CORE_READ(task, real_parent);
	if (comm_is_sglang(parent))
		return true;
	parent_leader = BPF_CORE_READ(parent, group_leader);
	return comm_is_sglang(parent_leader);
}

SEC("lsm/bprm_check_security")
int BPF_PROG(cve_2026_93034_exec_block, struct linux_binprm *bprm, int ret)
{
	if (ret)
		return earlier_verdict(ret);
	if (!is_sglang_task())
		return 0;
	count_refused();
	return -EPERM;
}

Process

How this upatch was written, checked and reviewed, from the registry’s history.

  1. 8 Oct 2026CVECVE published
  2. 25 Nov 2026Pull requestPull request #91 openedAdd CVE-2026-93034: Refuses subprocess execution by SGLang processesromanlab
  3. 25 Nov 2026CICheck entriespassed
  4. 25 Nov 2026CIingestpassed
  5. 25 Nov 2026CICompile with clang 23passed
  6. 25 Nov 2026ReviewReviewedqodo-code-review[bot] (automated)
  7. 25 Nov 2026MergeMerged #91romanlab

No human review is recorded on GitHub for this upatch yet.

Evidence

On SGLang v0.5.18 with SGLANG_USE_PICKLE_IPC=0, the loaded upatch refused subprocess execution by sglang::detokenizer after sock_recv unwrapped a PickleWrapper message via _maybe_unwrap_pickle, while before and after loading the subprocess ran.

Tested
25 Nov 2026
Target
SGLang v0.5.18 ZMQ detokenizer receiver (io_struct.sock_recv / _maybe_unwrap_pickle with SGLANG_USE_PICKLE_IPC=0), Python 3.12, loopback only
Kernel
7.4-shirudo-ci-20261123
Architecture
x86_64
Distribution
Ubuntu 26.04
Results
StateZMQ PickleWrapper sock_recv subprocess execution
Before loadingreached (/bin/true executed)
Upatch loadedblocked (EPERM)
After unloadingreached (/bin/true executed)
tools-test.log Output of tools/test --setup showing reached before loading, blocked while loaded, and reached again after unloading.
tools/test --setup, 2026-11-25T15:47:17Z
Target: shirudo test VM, Linux 7.4-shirudo-ci-20261123, x86_64, swtpm
cve-2026-93034
  setup   done         SGLANG_TOP=/opt/upatch-payload/cve-2026-93034 SGLANG_PYTHON=/opt/upatch-payload/cve-2026-93034/venv/bin/python SGLANG_ZMQ_ADDR=tcp://127.0.0.1:30001 SGLANG_STATE=/opt/upatch-payload/cve-2026-93034/probe.state
  before  reached      SGLang sock_recv unwrapped PickleWrapper via _maybe_unwrap_pickle and executed /bin/true
  loaded  blocked      the upatch refused subprocess execution by sglang::detokenizer with EPERM
  after   reached      SGLang sock_recv unwrapped PickleWrapper via _maybe_unwrap_pickle and executed /bin/true
  PASS: reached before, blocked while loaded, reached again after

Use it

Build the upatch from source, sign it with your own shirudo key, and publish it to your own OCI registry. Machines that follow your upatch tree load it within about a minute.

Build and sign
git clone https://github.com/copper-helm/upatch-registry
cd upatch-registry
tools/build <shirudo-checkout> <keys-dir> 1.0.0 upatches/cve-2026-93034
Publish and roll out
shirudo bpm push build/packages/cve-2026-93034-1.0.0.bee oci://<registry>/<namespace>/cve-2026-93034 --keys-dir <keys-dir>
shirudo bpm tree append build/packages/cve-2026-93034-1.0.0.bee oci://<registry>/<namespace>/<tree> --tree-id <tree-id> --keys-dir <keys-dir>