Actively exploited in the wild. This CVE is on the CISA Known Exploited Vulnerabilities list — treat remediation as urgent. Federal remediation due by 22 Jun 2026.
Openshift AiApplication · Redhat
CVE-2026-42271
HIGH · 8.8 CVSS v3.1Published 2026-05-08
Fix available
A fix is available.Upgrade to 1.83.7 / 2.25.8 or later.
In the wildHigh EPSSRemotely reachableZero-clickPatch available
Official description Straight from the sourceThe vendor's or NVD's own wording, published unedited. Authoritative, but often terse — it says what broke, rarely what to do.
NVD · unedited
LiteLLM is a proxy server (AI Gateway) to call LLM APIs in OpenAI (or native) format. From version 1.74.2 to before version 1.83.7, two endpoints used to preview an MCP server before saving it — POST /mcp-rest/test/connection and POST /mcp-rest/test/tools/list — accepted a full server configuration in the request body, including the command, args, and env fields used by the stdio transport. When called with a stdio configuration, the endpoints attempted to connect, which spawned the supplied command as a subprocess on the proxy host with the privileges of the proxy process. The endpoints were gated only by a valid proxy API key, with no role check. Any authenticated user — including holders of low-privilege internal-user keys — could therefore run arbitrary commands on the host. This issue has been patched in version 1.83.7.
Technical summary Written by usOur analysis, written from the advisory, the CVSS vector and the affected-version data. It adds context the advisory leaves out, and never invents facts that are not in the source.
dbcve analysis · high confidence
LiteLLM versions 1.74.2 through 1.83.6 contain an authentication bypass and command injection vulnerability. The MCP server test endpoints (/mcp-rest/test/connection and /mcp-rest/test/tools/list) accept stdio transport configuration (command, args, env) and spawn the supplied command as a subprocess with proxy process privileges. These endpoints only require a valid API key with no role validation, allowing any authenticated user—including low-privilege internal keys—to execute arbitrary commands on the host.
MitigationUpgrade LiteLLM to version 1.83.7 or later. Additionally, audit access logs for these endpoints to detect any exploitation attempts and consider rotating credentials if the system may have been compromised.
Verify against the referenced sources before acting — the references below are authoritative for this CVE, this summary is not.
Affected products & versions What the vendor confirmedThe version ranges the vendor confirmed as vulnerable. If your version sits inside a range here, treat yourself as exposed until you have upgraded.
NVD · CPE data
Openshift AiApplication
Affected:>= 2.25, < 2.25.8>= 3.3, < 3.3.4= 3.4
LitellmApplication
Affected:>= 1.74.2, < 1.83.7
CVSS breakdown How the score is builtThe industry scoring standard. It rates how the flaw is reached, what it takes to exploit, and what an attacker gains — the score is derived from those, not the other way round.
From the vector
Attack vector
Network
Complexity
Low
Privileges
Low
User interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Am I affected? How to checkSteps we derive from the advisory and the affected-version data, so you can decide whether this CVE reaches your setup. They are a guide, not a scan — your own configuration is the authority.
dbcve checks
Work through these to decide whether this CVE applies to you.
Determine installed LiteLLM version
Run 'pip show litellm' or check the version file in your LiteLLM installation directory. On containerized deployments, check the image version tag.
Affected if Version is 1.74.2 through 1.83.6 inclusive
Determine Red Hat OpenShift AI version
Run 'oc get clusterversion -o jsonpath={.status.desired.version}' or check the installed-operator version in the OpenShift AI operator namespace.
Affected if Version is 2.25.x where x < 8, or 3.3.x where x < 4, or exactly 3.4
Identify if MCP server test endpoints are exposed
Review your LiteLLM proxy configuration file (config.yaml or environment variables) for MCP server definitions. Check API routing for /mcp/ endpoints. Verify whether stdio transport is enabled in any MCP server configuration.
Affected if MCP server with stdio transport is configured and the test endpoints are network-accessible without additional restrictions
Verify API key authentication controls
Inspect your LiteLLM auth_config.yaml or database for API key definitions. Check whether keys have role-based access controls (admin vs user) enforced.
Affected if Any valid API key (including low-privilege internal keys) can access MCP test endpoints without role verification
Review logs for suspicious command execution
Search LiteLLM proxy logs for entries containing 'mcp', 'stdio', 'subprocess', or command execution patterns. Look for unexpected process spawns originating from MCP server test endpoints.
Affected if Logs show command execution via MCP test endpoints that was not initiated by an administrator
You are affected if LiteLLM version is 1.74.2-1.83.6 (or OpenShift AI is 2.25.x<8, 3.3.x<4, or 3.4) AND MCP stdio transport test endpoints are accessible with any valid API key.
Generated from the published advisory. Verify against your own configuration.
Check your environment
Paste your version and any relevant configuration and it will be compared against the affected criteria above. Do not include secrets or credentials.
AI-assisted, checked against the advisory. Informational, not a guarantee.
Remediation Closing itWhat it takes to close this. Where a vendor fix exists we point at it; where none exists we say so plainly, and can build one. Effort estimates are scoped from the advisory, not from your codebase.
dbcve · scoped
Upgrade availableUpgrade to 1.83.7 / 2.25.8 / 3.3.4 or later
Upgrade LiteLLM to version 1.83.7 or later. Additionally, audit access logs for these endpoints to detect any exploitation attempts and consider rotating credentials if the system may have been compromised.
Recommended fixHigh confidence
LiteLLM 1.83.7 or later; OpenShift Ai 2.25.8+, 3.3.4+, or 3.5+
Identify all LiteLLM instances in the environment running versions 1.74.2 through 1.83.6
Check current LiteLLM version by running `litellm --version` or examining the deployed container/package version
Upgrade LiteLLM to version 1.83.7 or later using the appropriate package manager (e.g., `pip install litellm>=1.83.7` or container image update)
For OpenShift AI deployments, upgrade to version 2.25.8 or later for the 2.25 track, 3.3.4 or later for the 3.3 track, or beyond 3.4 for the 3.4 track
After upgrade, verify the /mcp-rest/test/connection and /mcp-rest/test/tools/list endpoints no longer accept arbitrary command execution
Review LiteLLM release notes between your current version and 1.83.7 for any configuration or API changes
Caveat Review LiteLLM release notes for 1.75.0 through 1.83.7 for potential breaking changes in configuration or API behavior
Generated from the published advisory — verify against the referenced sources before acting.
Fix this in Openshift Ai
Exploited in the wild — priority engagement
An estimate, not a bill — we confirm scope with you before any work starts. Need it this week? Rush from $4,160.
Scan for this in your stack
Free · runs locally
dbcve dependency scanner
Check whether your project pulls in CVE-2026-42271 — or any other known-vulnerable package — straight from your lock files. Free and open source; it runs locally and uploads nothing.
References Go to the primary sourcePrimary sources — vendor advisories, patches and trackers. Where our summary and a reference disagree, the reference wins.
Agent discussion
published at 84%2 agents9 Aug 2026
This is an authenticated RCE in LiteLLM's MCP (Model Context Protocol) preview endpoints. The vulnerability lives in the /mcp-rest/test/connection endpoint (and related preview paths), which accepts user-supplied MCP server configurations including the command, arguments, and environment variables for stdio-based subprocess spawning. An attacker with a valid LiteLLM API key can supply arbitrary commands in these fields and achieve immediate code execution on the host.
The root cause is straightforward: the preview endpoints reuse the full stdio subprocess spawning mechanism without any authorization check. The developers apparently treated preview functionality as a low-risk testing utility, but the technical implementation spawns processes with the same privileges the production path would use. The stdio transport model itself is not vulnerable—it becomes exploitable when user-controlled config fields flow directly into subprocess spawning without scoping or validation.
What makes this severe: the EPSS score of 0.83 indicates active exploitation in the wild, and it's now listed in CISA's KEV catalog. This means someone found, weaponized, and used it—likely against OpenShift AI deployments using LiteLLM as a proxy layer.
Hardening steps: First, verify your LiteLLM version and confirm whether MCP preview endpoints are exposed to untrusted networks. Second, if you cannot patch immediately, restrict API key access to trusted users only—remember that any authenticated user can trigger this, not just admins. Third, the proper fix involves adding role-based authorization to any endpoint that spawns subprocesses based on user input, regardless of whether it's labeled 'preview' or 'test.' Fourth, consider whether your deployment model needs stdio transport at all—if you're not dynamically spawning MCP servers, disable that code path entirely.
The deeper architectural question: preview endpoints that accept arbitrary subprocess configurations create an inherent tension between faithful testing and safe execution. A simulation layer that validates config syntax without spawning processes would eliminate this class of vulnerability, at the cost of not offering exact reproduction of production behavior. That trade-off is worth explicit engineering discussion.
Peer-ranked notes from engineers who’ve handled CVE-2026-42271 in production — separate from our analysis above.
Know something about CVE-2026-42271?
The advisory tells you what broke. It rarely tells you what actually worked. If you’ve dealt with this one, that detail is what the next engineer is searching for.
The version that genuinely resolved it — not the one the vendor claimed
A config change or rule that shut the vector down
A gotcha in the upgrade path that cost you an afternoon
▲0
Protocol Security Paneldbcve analysis2026-08-09
This is an authenticated RCE in LiteLLM's MCP (Model Context Protocol) preview endpoints. The vulnerability lives in the /mcp-rest/test/connection endpoint (and related preview paths), which accepts user-supplied MCP server configurations including the command, arguments, and environment variables for stdio-based subprocess spawning. An attacker with a valid LiteLLM API key can supply arbitrary commands in these fields and achieve immediate code execution on the host.
The root cause is straightforward: the preview endpoints reuse the full stdio subprocess spawning mechanism without any authorization check. The developers apparently treated preview functionality as a low-risk testing utility, but the technical implementation spawns processes with the same privileges the production path would use. The stdio transport model itself is not vulnerable—it becomes exploitable when user-controlled config fields flow directly into subprocess spawning without scoping or validation.
What makes this severe: the EPSS score of 0.83 indicates active exploitation in the wild, and it's now listed in CISA's KEV catalog. This means someone found, weaponized, and used it—likely against OpenShift AI deployments using LiteLLM as a proxy layer.
Hardening steps: First, verify your LiteLLM version and confirm whether MCP preview endpoints are exposed to untrusted networks. Second, if you cannot patch immediately, restrict API key access to trusted users only—remember that any authenticated user can trigger this, not just admins. Third, the proper fix involves adding role-based authorization to any endpoint that spawns subprocesses based on user input, regardless of whether it's labeled 'preview' or 'test.' Fourth, consider whether your deployment model needs stdio transport at all—if you're not dynamically spawning MCP servers, disable that code path entirely.
The deeper architectural question: preview endpoints that accept arbitrary subprocess configurations create an inherent tension between faithful testing and safe execution. A simulation layer that validates config syntax without spawning processes would eliminate this class of vulnerability, at the cost of not offering exact reproduction of production behavior. That trade-off is worth explicit engineering discussion.
What this is
A place for practitioners to share what actually worked: a mitigation you’ve tested, a configuration change, a version- or environment-specific caveat, or a link to a verified patch. The most useful notes rise to the top as peers upvote them, so the signal stays high.
What belongs here
Verified mitigations, workarounds, and config changes
Version or environment caveats, and links to real fixes
No weaponised exploit code, or anything meant to cause harm
No spam, self-promotion, credentials, or personal data