Skip to main content
Vulnerability Database/CVE-2026-112267

CVE-2026-112267: SGLang SSRF Vulnerability in Disaggregation

CVE-2026-112267 is an SSRF vulnerability in SGLang through version 0.5.22 affecting prefill/decode disaggregation mode. Attackers can probe internal networks and disrupt inference operations. This article covers technical details, affected versions, impact assessment, and mitigation strategies.

Published:

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

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2026-112267 Overview

CVE-2026-112267 is a server-side request forgery (SSRF) vulnerability affecting SGLang through version 0.5.22 when running in prefill/decode disaggregation mode. The flaw resides in the Decode worker's /generate endpoint, which accepts client-supplied bootstrap_host and bootstrap_port fields without validation. Unauthenticated attackers can send crafted requests that force the Decode worker to initiate outbound connections to arbitrary hosts and ports. Beyond probing internal network services, the forged connections block the shared scheduler loop, delaying inference requests for other tenants. The weakness is classified under CWE-918: Server-Side Request Forgery.

Critical Impact

Unauthenticated attackers can probe internal infrastructure through the Decode worker and stall shared scheduler loops, degrading availability for concurrent inference workloads.

Affected Products

  • SGLang versions through 0.5.22
  • Deployments operating in prefill/decode disaggregation mode
  • Decode workers exposing the /generate HTTP endpoint

Discovery Timeline

  • 2026-10-19 - CVE-2026-112267 published to NVD
  • 2026-10-19 - Last updated in NVD database

Technical Details for CVE-2026-112267

Vulnerability Analysis

SGLang's disaggregation architecture separates prefill and decode phases of large language model inference across distinct worker processes. The Decode worker receives bootstrap connection information from clients to coordinate with upstream prefill nodes. The /generate endpoint accepts bootstrap_host and bootstrap_port parameters directly from the request body and uses them to open outbound sockets without allow-list enforcement or network segmentation checks.

An attacker can set these fields to arbitrary internal addresses, including cloud metadata services, management interfaces, or private service ports. The connection attempt leaks reachability and timing information that an attacker uses to map internal infrastructure.

The outbound call runs on the shared scheduler loop. When attackers point the connection at unreachable hosts or slow endpoints, the loop blocks until the socket times out. Concurrent inference requests from other users queue behind the stalled operation, producing a secondary denial-of-service condition.

Root Cause

The root cause is missing input validation on network destination parameters supplied by untrusted clients. The implementation in conn.py and decode.py treats bootstrap_host and bootstrap_port as trusted configuration values. See the referenced code paths in conn.py L1157-L1181 and decode.py L1150-L1175.

Attack Vector

Exploitation requires only network access to the Decode worker's /generate endpoint. The attacker crafts an HTTP request with bootstrap_host pointing to an internal IP address and bootstrap_port set to a target port. The server attempts the connection and the response timing reveals whether the target port is open, filtered, or closed. No authentication is required. Additional details appear in the VulnCheck SSRF advisory for sglang and the upstream GitHub Issue #45008.

// No verified proof-of-concept code is published.
// Refer to the VulnCheck advisory and GitHub issue for request structure details.

Detection Methods for CVE-2026-112267

Indicators of Compromise

  • Inbound HTTP POST requests to /generate on Decode workers containing bootstrap_host values that reference RFC1918 ranges, loopback addresses, or cloud metadata endpoints such as 169.254.169.254.
  • Outbound TCP connection attempts from the SGLang Decode worker process to internal hosts and non-standard ports that fall outside the expected prefill node allow list.
  • Repeated bootstrap_port values iterating across common service ports, consistent with port scanning behavior.

Detection Strategies

  • Instrument the Decode worker to log every bootstrap_host and bootstrap_port value received, then alert when destinations deviate from the configured prefill peers.
  • Correlate request latency spikes on /generate with outbound connection failures to identify scheduler loop stalls caused by SSRF probing.
  • Monitor egress firewall logs for connections originating from SGLang hosts that target private subnets or metadata APIs.

Monitoring Recommendations

  • Enable network flow logging on hosts running SGLang disaggregation workers and baseline normal peer destinations.
  • Track scheduler loop queue depth and request completion times as service-level indicators to surface availability degradation.
  • Forward application and network telemetry into a centralized data lake for cross-source correlation and retention.

How to Mitigate CVE-2026-112267

Immediate Actions Required

  • Restrict network access to the Decode worker /generate endpoint so only trusted client networks can reach it.
  • Place SGLang workers in a segmented network with egress policies that deny connections to internal management ranges and cloud metadata services.
  • Enforce an allow list of permitted bootstrap peer hosts and ports at the reverse proxy or sidecar layer.

Patch Information

At publication, the advisory identifies SGLang through version 0.5.22 as affected. Monitor the SGLang GitHub repository and GitHub Issue #45008 for an official fix release and upgrade once a patched version becomes available.

Workarounds

  • Deploy a reverse proxy that validates bootstrap_host and bootstrap_port against a static allow list before forwarding requests to the Decode worker.
  • Apply host-level egress firewall rules that block outbound connections from the SGLang process to RFC1918 addresses, loopback, and 169.254.169.254.
  • Isolate Decode workers in a dedicated network namespace or Kubernetes network policy that permits traffic only to known prefill peers.
bash
# Example iptables egress restriction for the SGLang worker host
iptables -A OUTPUT -d 169.254.169.254 -j REJECT
iptables -A OUTPUT -d 10.0.0.0/8 ! -p tcp --dport 8000 -j REJECT
iptables -A OUTPUT -d 127.0.0.0/8 ! -o lo -j REJECT

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

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

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.