CVE-2026-42271
LiteLLM: Authenticated command execution via MCP stdio test endpoints
Exploited in the wild. In CISA KEV since 2026‑06‑08. Fixed versions are out.
What to do
Find your product and version, then upgrade to the build on the right.
- BerriAI litellmAffected: >= 1.74.2, < 1.83.7Upgrade to: not statedStated by: CVE record
- LitellmAffected: ≥ 1.74.2, < 1.83.7Upgrade to: 1.83.7Stated by: NVD
- Redhat Openshift AiAffected: ≥ 2.25, < 2.25.8Upgrade to: 2.25.8Stated by: NVD
Versions as the sources state them. Full version matrix after sign-in
Steps
Written by AI from the record- Check whether you run LiteLLM (or OpenShift AI using LiteLLM) and identify the deployed LiteLLM version.
- If your LiteLLM version is between 1.74.2 and 1.83.6 (inclusive), plan to upgrade now to litellm 1.83.7.
- If you are using openshift ai, upgrade now to openshift ai 2.25.8.
- If you cannot upgrade immediately, immediately restrict or rotate the LiteLLM proxy API keys so only trusted admins can access the proxy endpoints, and temporarily block access to the MCP test endpoints from non-admin clients.
- After upgrading, review logs for requests to /mcp-rest/test/connection and /mcp-rest/test/tools/list and investigate any suspicious payloads or process executions.
Coverage timeline
3 publishersExploitation reported in the wild
Technical analysis published
Added to CISA KEV catalog
Sourced from public security reporting — each date is when it was published, not when it happened. 7 further articles named this CVE in wider roundups without reporting it as a distinct event.
What it is
From the CVE record
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.
In plain language
Written by AI from the recordCVE-2026-42271 lets someone with a low-privilege LiteLLM API key run arbitrary commands on the server machine, and it’s already being exploited in the real world—if you run LiteLLM (or OpenShift AI that uses it), you should act immediately.
CVE-2026-42271 is an authenticated command injection in LiteLLM’s MCP stdio test endpoints that allow a user with any valid (low-privilege) proxy API key to trigger OS command execution on the host by submitting malicious MCP server configuration to /mcp-rest/test/connection and /mcp-rest/test/tools/list; it is listed in CISA KEV with active exploitation.
If you're affected
- Full server takeover risk
- Data theft from your environment
- Service disruption and outages
- Malicious persistence and ransomware risk
Exploitation
Where each signal puts this CVE on the scale from published to confirmed exploited.
- CISA KEV
Listed as exploited in the wild since 2026-06-08.
US federal agencies must remediate by 2026-06-22.
Apply mitigations per vendor instructions, follow applicable BOD 22-01 guidance for cloud services, or discontinue use of the product if mitigations are unavailable.
- Public exploits
No public exploit or proof of concept found in the sources we track.
- EPSS
93% chance of exploitation activity in the next 30 days, which ranks it in the 99th percentile of scored CVEs.
Exploit Prediction Scoring System, FIRST.org. A probability, not a confirmation.
Lifecycle
16 events over 145 days, from the signal feeds we watch.
- EPSS band changemoderate → criticalepss band change
- EPSS band changehigh → moderateepss band change
- Workaround availablerecord updated
- Analysis publishedLiteLLM RCE (CVE-2026-42271): when an MCP "test connection" button spawns a shell
- Workaround availablerecord updated
- OpenVAS check added
Affected products
Technical detail
CVSS 3.1 vector
Open in the CVSS calculatorCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Scored 8.8 by NVD.
How it is reached
- Attack Vector NetworkExploitable remotely over the network without any special conditions
- Attack Complexity LowNo special conditions — the attack can be reliably reproduced
- Privileges Required LowRequires basic user-level privileges
- User Interaction NoneNo user interaction needed — fully automated exploitation
Scope
- Scope UnchangedImpact is limited to the vulnerable component itself
Impact if exploited
- Confidentiality HighTotal information disclosure — all data in the component is compromised
- Integrity HighTotal loss of integrity — attacker can modify any data in the component
- Availability HighTotal denial of service — the component is completely unavailable
Weaknesses
ATT&CK techniques
Mapped from the weaknesses above (CWE to ATT&CK), not observed in attacks.
Sources
References in the record
- github.com/BerriAI/litellm/releases/tag/v1.83.7-stable
- github.com/BerriAI/litellm/security/advisories/GHSA-v4p8-mg3p-g94g
- access.redhat.com/errata/RHSA-2026:27784
And 6 more references. See all after sign-in
Analysis on the cve.tools blog
- LiteLLM RCE (CVE-2026-42271): when an MCP "test connection" button spawns a shellLiteLLM's MCP preview endpoints accepted a full stdio server config — command, args, env — and dutifully spawned it as a subprocess on the proxy host, gated by nothing but a valid API key. CVE-2026-42271 is authenticated remote command execution on your AI gateway. Here's the mechanism, who's exposed, and what to do today.
- Every AI Product on CISA's KEV List: All Fourteen of ThemFourteen AI-stack CVEs have ever made CISA's KEV catalog, six of them in Langflow alone. Here is the full ledger with dates, the time each bug took to get there, and the 134 AI-stack CVEs that have exploit evidence but no KEV entry at all.
- Splunk Enterprise's open sidecar: the unauthenticated 9.8 that turns your SIEM into a foothold (CVE-2026-20253)CVE-2026-20253 is an unauthenticated arbitrary file-write in a PostgreSQL sidecar service that Splunk Enterprise 10.x ships alongside Edge Processor, OpAmp and SPL2 pipelines. It scores CVSS 9.8, sits at the 99.87th EPSS percentile, and is on CISA KEV with limited in-the-wild exploitation confirmed. Here's the missing-auth root cause, the exact affected versions, and how to patch — or disable the sidecar — without losing features.
In the news
All news- Cryptomining botnet hides C2 addresses in GitHub poem, infects over 3,400 servers
- PoeLLM malware infects exposed AI servers in cryptomining attacks
- The vulnerabilities AI finds are the ones attackers want
- Critical Bifrost AI Gateway Flaw Lets Attackers Run Commands Without Credentials
- Nearly 1 in 10 Exposed LiteLLM Gateways Accepted the Example "sk-1234" Admin Key
- Sangoma Switchvox Vulnerabilities Exploited in the Wild
- CISA Adds Seven Exploited Flaws as Attackers Deploy Reverse Shells and Crypto Miners
- LiteLLM Vulnerability Chain Lets Low-Privilege Users Take Over AI Gateway Servers
- Weekly Threat Intelligence: June 8 to June 14, 2026
- In Other News: Google Security Layoffs, AudiA6 Takedown, $400 Million Coupang Fine
Watch the software you run.
My Stack ranks new CVEs for your products by real-world exploitation, so the next exploited one reaches you without reading every advisory.
We'll flag the next CVE, public exploit or patch for Litellm, not every advisory. This one: actively exploited.
A free account adds
- The full version matrix and every affected product
- Exploit links, proofs of concept and Metasploit modules
- Email alerts for the products you watch
- The same data over REST API, MCP and CLI