The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
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-42203

CVE-2026-42203: Litellm Proxy Server RCE Vulnerability

CVE-2026-42203 is a remote code execution flaw in Litellm proxy server affecting versions 1.80.5 to 1.83.6. Attackers can exploit unsandboxed prompt templates to execute arbitrary code. This article covers technical details, affected versions, impact, and mitigation.

Published: May 18, 2026

CVE-2026-42203 Overview

CVE-2026-42203 is a remote code execution vulnerability in LiteLLM, an AI Gateway proxy server used to call large language model (LLM) APIs in OpenAI-compatible format. The flaw affects the POST /prompts/test endpoint, which accepts user-supplied prompt templates and renders them without sandboxing. Any authenticated user holding a valid proxy API key can submit a crafted template that executes arbitrary code inside the LiteLLM Proxy process. The vulnerability impacts versions 1.80.5 through versions prior to 1.83.7 and is tracked under [CWE-1336] (Improper Neutralization of Special Elements Used in a Template Engine).

Critical Impact

Authenticated attackers can execute arbitrary code in the LiteLLM Proxy process, exposing provider API keys, database credentials, and host-level command execution.

Affected Products

  • LiteLLM versions 1.80.5 through 1.83.6
  • LiteLLM Proxy deployments exposing the /prompts/test endpoint
  • Self-hosted AI Gateway instances using vulnerable LiteLLM releases

Discovery Timeline

  • 2026-05-08 - CVE-2026-42203 published to NVD
  • 2026-05-13 - Last updated in NVD database

Technical Details for CVE-2026-42203

Vulnerability Analysis

LiteLLM functions as a proxy server that normalizes calls to multiple LLM providers behind a single OpenAI-compatible API. The POST /prompts/test endpoint was introduced to allow users to validate prompt templates before deployment. The endpoint accepts a template string from the request body and renders it server-side using a template engine without applying a sandbox or output filter. An attacker who controls the template body controls the rendering context, which permits execution of arbitrary expressions evaluated by the template engine inside the proxy process.

The endpoint enforces only proxy API key authentication. It performs no role check, no template content validation, and no isolation between the rendering process and the host environment. As a result, any user who can authenticate to the proxy reaches a code execution primitive.

Root Cause

The root cause is unsandboxed evaluation of attacker-controlled template input, classified under [CWE-1336]. The /prompts/test handler passes user input directly to the template renderer, which exposes Python built-ins and module access through standard template features. The trust boundary assumes any API-key holder is benign, which conflicts with multi-tenant deployments where keys are issued broadly to internal teams or downstream applications.

Attack Vector

Exploitation requires network access to the LiteLLM Proxy and a valid API key. The attacker sends an HTTP POST request to /prompts/test containing a template payload that references restricted attributes such as __class__, __mro__, or __subclasses__ to reach os.system or equivalent execution functions. Upon rendering, the proxy process executes the embedded code with the privileges of the LiteLLM service account. Depending on deployment, this exposes provider API keys, database connection strings, and any secrets present in the process environment, and enables arbitrary shell commands on the host.

No verified exploit code is publicly available. Refer to the GitHub Security Advisory GHSA-xqmj-j6mv-4862 for vendor analysis.

Detection Methods for CVE-2026-42203

Indicators of Compromise

  • HTTP POST requests to the /prompts/test endpoint containing template syntax such as {{, __class__, __subclasses__, or __import__
  • Unexpected child processes spawned by the LiteLLM Proxy process (for example sh, bash, curl, wget, or python)
  • Outbound network connections from the LiteLLM host to unknown destinations following /prompts/test activity
  • Access to environment files or credential stores by the LiteLLM service account outside normal operation

Detection Strategies

  • Inspect proxy access logs for POST /prompts/test requests and correlate with API key identity and source IP address
  • Alert on template metacharacters and Python dunder attributes appearing in request bodies to LiteLLM endpoints
  • Monitor process lineage from the LiteLLM service for shell or interpreter child processes that deviate from baseline behavior

Monitoring Recommendations

  • Forward LiteLLM application logs and host process telemetry to a centralized analytics pipeline for correlation
  • Track API key usage patterns and flag accounts that invoke /prompts/test outside of expected development workflows
  • Capture egress network traffic from LiteLLM hosts and review for connections to unrecognized external endpoints

How to Mitigate CVE-2026-42203

Immediate Actions Required

  • Upgrade LiteLLM to version 1.83.7 or later, which contains the patched /prompts/test handler
  • Rotate all provider API keys, database credentials, and secrets that were present in the LiteLLM Proxy environment
  • Audit proxy access logs for prior invocations of /prompts/test and investigate any anomalous requests
  • Restrict network exposure of the LiteLLM Proxy to trusted internal networks until patching is verified

Patch Information

The vendor released the fix in LiteLLM v1.83.7-stable. Full technical details and the patch reference are available in the GitHub Security Advisory GHSA-xqmj-j6mv-4862.

Workarounds

  • Block access to the /prompts/test endpoint at an upstream reverse proxy or web application firewall until the upgrade is applied
  • Reduce the population of users holding valid proxy API keys and revoke unused keys to limit the authenticated attack surface
  • Run the LiteLLM Proxy as a low-privilege user inside a container with read-only filesystem and minimal egress to constrain post-exploitation impact
bash
# Example NGINX block for the vulnerable endpoint
location = /prompts/test {
    return 403;
}

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

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechLitellm

  • SeverityHIGH

  • CVSS Score8.6

  • EPSS Probability0.06%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-1336
  • Technical References
  • GitHub Release v1.83.7
  • Vendor Resources
  • GitHub Security Advisory GHSA-xqmj-j6mv-4862
  • Related CVEs
  • CVE-2026-42271: Litellm Litellm RCE Vulnerability

  • CVE-2026-35029: LiteLLM Proxy Server RCE Vulnerability

  • CVE-2026-42208: LiteLLM Proxy Server SQL Injection Flaw

  • CVE-2026-35030: Litellm Auth Bypass 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