Back to CVE records
High 8.7Known exploited (CISA KEV)Published May 8, 2026

CVE-2026-42271LiteLLM: Authenticated command execution via MCP stdio test endpoints

Updated under an hour ago ()

Does this affect you?

It affects BerriAI litellm and 4 other products. Add what you run to find out whether that includes you.

CISA lists it as known exploited since Jun 8, 2026; federal agencies had to remediate by Jun 22, 2026. Treat that date as your deadline.

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.

CVSS
8.7 HIGH (v4.0, CNA)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
Weakness (CWE)
CWE-77, CWE-78
Known exploited
Added to CISA KEV Jun 8, 2026; federal remediation due Jun 22, 2026Apply mitigations per vendor instructions, follow applicable BOD 22-01 guidance for cloud services, or discontinue use of the product if mitigations are unavailable.
EPSS (exploitation in the next 30 days)
92.57% (percentile 100)
Assigned by
GitHub_M
NVD analysis
Analyzed
Record last updated
Jul 15, 2026
First seen by InfoSec Signals
Oct 9, 2026

Affected products

Affected products
BerriAI litellm
berriai:litellm (from the name)
from 1.74.2, < 1.83.7
CNA record
from 1781826406 not affected
CISA ADP
Red Hat Exploit Intelligence
redhat:exploit_intelligence
0
CISA ADP
Red Hat Red Hat Ansible Automation Platform 2
redhat:ansible_automation_platform
2
CISA ADP
litellm litellm
litellm:litellm
from 1.74.2 before 1.83.7
NVD
redhat openshift_ai
redhat:openshift_ai
from 2.25 before 2.25.8; from 3.3 before 3.3.4; 3.4
NVD

References

  • x-refsource-confirm, mitigation, patch, vendor-advisory
  • x-refsource-misc, product, release-notes
  • third-party-advisory
  • third-party-advisory
  • third-party-advisory
  • third-party-advisory
  • third-party-advisory
  • third-party-advisory
  • us-government-resource

The CVE record is authoritative. Products marked “from the name” were identified from the CNA's free-text names, not a CPE, and are matched less certainly. This product uses the NVD API but is not endorsed or certified by the NVD.

Your cookie choices
We use essential cookies to run this site, and, only with your consent, an advertising cookie from Google to measure whether our ads lead to sign-ups and subscriptions. See our for details.