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.
Do this next
Free account, 1 product
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
BerriAI litellm berriai:litellm (from the name) | from 1.74.2, < 1.83.7 | CNA record |
Red Hat Red Hat OpenShift AI 2.25 redhat:openshift_ai | 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
- https://github.com/BerriAI/litellm/security/advisories/GHSA-v4p8-mg3p-g94gx-refsource-confirm, mitigation, patch, vendor-advisory
- https://github.com/BerriAI/litellm/releases/tag/v1.83.7-stablex-refsource-misc, product, release-notes
- https://access.redhat.com/errata/RHSA-2026:27784third-party-advisory
- https://access.redhat.com/errata/RHSA-2026:28960third-party-advisory
- https://access.redhat.com/errata/RHSA-2026:30056third-party-advisory
- https://access.redhat.com/security/cve/CVE-2026-42271third-party-advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=2467924third-party-advisory
- https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-42271.jsonthird-party-advisory
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2026-42271us-government-resource
The CVE record on cve.org NVD's entry
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.