# CVE-2026-93034: CVE-2026-93034

The Markdown version of <https://upatch.dev/cve/CVE-2026-93034>. Last updated 25 Nov 2026.

## At a glance

CVE-2026-93034 is rated Critical 9.8 (CVSS 3.1, CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H). It affects SGLang and was published on 8 Oct 2026. It is not in CISA's Known Exploited Vulnerabilities catalog. Its EPSS score is 0.9%: the estimated chance it is exploited in the next 30 days, as of 25 Nov 2026. The upatch `cve-2026-93034-exec-block` mitigates it, and is vetted (merged into the registry).

A upatch is a signed BPF program that shirudo loads into a running Linux kernel to block the code path this CVE's exploit takes. It holds the line until the fix ships; it does not replace patching.

## The vulnerability

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.

## What the upatch does

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.

The policy: [`cve-2026-93034-exec-block.bpf.c`](https://github.com/copper-helm/upatch-registry/tree/main/upatches/cve-2026-93034), 91 lines of BPF C attached at `lsm/bprm_check_security`, licensed GPL-2.0 OR BSD-2-Clause.

## 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.

## 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`).

## How it was tested

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

| State           | ZMQ PickleWrapper sock_recv subprocess execution |
| --------------- | ------------------------------------------------ |
| Before loading  | reached (/bin/true executed)                     |
| Upatch loaded   | blocked (EPERM)                                  |
| After unloading | reached (/bin/true executed)                     |

## How to apply

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:

```sh
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:

```sh
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>
```

## Review

- Contributors: romanlab.
- Reviewers: none recorded yet.

## Sources and links

- [CVE-2026-93034 record (CVE API)](https://cveawg.mitre.org/api/cve/CVE-2026-93034)
- [GitHub Advisory GHSA-w4hv-c72g-pqx6](https://api.github.com/advisories/GHSA-w4hv-c72g-pqx6)
- [SGLang Security: Why Disabling Pickle Was Not Enough (m00dy.sh)](https://m00dy.sh/notes/disabling-pickle-did-not-remove-pickle?palette=mineral)
- [SGLang repository](https://github.com/sgl-project/sglang/tree/main)
- [SGLang v0.5.18 io_struct.py](https://raw.githubusercontent.com/sgl-project/sglang/v0.5.18/python/sglang/srt/managers/io_struct.py)
- [SGLang v0.5.18 detokenizer_manager.py](https://raw.githubusercontent.com/sgl-project/sglang/v0.5.18/python/sglang/srt/managers/detokenizer_manager.py)

### Links

- [CVE-2026-93034 on upatch.dev](https://upatch.dev/cve/CVE-2026-93034) (this page, as HTML)
- [NVD](https://nvd.nist.gov/vuln/detail/CVE-2026-93034)
- [CVE.org](https://www.cve.org/CVERecord?id=CVE-2026-93034)
- [CWE-502](https://cwe.mitre.org/data/definitions/502.html)
- Upatch source: [upatches/cve-2026-93034](https://github.com/copper-helm/upatch-registry/tree/main/upatches/cve-2026-93034)

### More references from NVD (2)

- [github.com](https://github.com/sgl-project/sglang/tree/main)
- [m00dy.sh](https://m00dy.sh/notes/disabling-pickle-did-not-remove-pickle?palette=mineral)
