Skip to content
RedCVE

CVE-2026-42271LiteLLM MCP test endpoints command injection

ExploitedlitellmRed HatBerriAIPublished:

CVSS score

8.7

High

CVSS 4.0 from github.com

Exploit probability (EPSS)

91.4%

91.4% chance of exploitation in the next 30 days, higher than 99.8% of all CVEs.

CISA KEV

Actively exploited

Added to KEV on 8 Jun 2026.

US federal deadline to fix: 22 Jun 2026.

In plain words

Any authenticated user, including holders of low-privilege internal keys, can run arbitrary commands on the LiteLLM proxy host by calling the MCP connection test endpoints with a crafted stdio configuration. Versions 1.74.2 up to 1.83.7 are affected, and CISA reports active exploitation. Upgrade LiteLLM to 1.83.7 or later, and apply the Red Hat OpenShift AI fixes if you use it.

Official description

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.

Source: NVD · CNA: security-advisories@github.com

How to fix it, step by step

  1. Treat it as urgent

    Attackers are already exploiting this flaw: CISA added it to its Known Exploited Vulnerabilities list on 8 Jun 2026.

    US federal agencies must fix it by 22 Jun 2026. It's a sensible deadline for everyone else too.

    CISA's full instruction
    Apply mitigations per vendor instructions, follow applicable BOD 22-01 guidance for cloud services, or discontinue use of the product if mitigations are unavailable.
  2. Check whether you're affected

    Find every system running Litellm, Red Hat OpenShift AI 2.25, Red Hat OpenShift AI 3.3, Red Hat OpenShift AI 3.4, Red Hat Exploit Intelligence and compare its version with the affected versions.

  3. Update to a fixed version

    • Update Openshift Ai to 2.25.8, 3.3.4 or later, on the branch you run.
    • Update Litellm to 1.83.7 or later.
  4. If you can't update right away

    Apply the workaround or mitigation in the vendor's advisory until you can update:

  5. Check for signs of compromise

    Updating closes the flaw but doesn't remove an attacker who got in earlier. Review affected systems for unknown accounts, unusual logins and configuration changes, and use any indicators of compromise the vendor or CISA publish.

  6. Confirm the fix

    Check that every affected system now reports a fixed version, and recheck the vendor's advisory: fixes are sometimes revised.

Was this useful?

How it can be exploited

Attack vector
Network
Attack complexity
Low
Attack requirements
Present
Privileges required
Low
User interaction
None
Confidentiality
High
Integrity
High
Availability
High

Values in red make the vulnerability easier to exploit or more damaging. CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:H/VI:H/VA:H/SC:H/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

Affected products

Affected productsVersions
litellm Litellm≥ 1.74.2, < 1.83.7
Red Hat Openshift Ai≥ 2.25, < 2.25.8 · ≥ 3.3, < 3.3.4 · 3.4
BerriAI Litellm>= 1.74.2, < 1.83.7
Red Hat Red Hat OpenShift AI 2.25Not specified
Red Hat Red Hat OpenShift AI 3.3Not specified
Red Hat Red Hat OpenShift AI 3.4Not specified
Red Hat Exploit IntelligenceNot specified
Red Hat Red Hat Ansible Automation Platform 2Not specified
Red Hat Red Hat OpenShift AI (RHOAI)Not specified

Weakness

Timeline

  1. Published:
  2. Added to CISA KEV:
  3. Last modified:

Frequently asked questions

Is CVE-2026-42271 being exploited?

Yes. CISA added CVE-2026-42271 to its Known Exploited Vulnerabilities catalog on 8 Jun 2026, which means there is evidence of exploitation in the wild. Its EPSS score estimates a 91.4% probability of exploitation in the next 30 days.

What is the CVSS score of CVE-2026-42271?

CVE-2026-42271 has a CVSS 4.0 base score of 8.7 (high).

Which versions are affected?

Litellm Litellm (≥ 1.74.2, < 1.83.7), Red Hat Openshift Ai (≥ 2.25, < 2.25.8; ≥ 3.3, < 3.3.4; 3.4), Berriai Litellm (>= 1.74.2, < 1.83.7), Red Hat Red Hat OpenShift AI 2.25, Red Hat Red Hat OpenShift AI 3.3, Red Hat Red Hat OpenShift AI 3.4

Is there a patch for CVE-2026-42271?

The official record links to vendor advisories or patches; see “What to do” above.

References

Data: NVD, CVE.org (cvelistV5), CISA KEV and FIRST EPSS. Summary written by RedCVE with AI assistance from the official data.