LiteLLM: Authenticated command execution via MCP stdio test endpoints
Key facts
- Attack vector
- Network
- Privileges required
- Low
- User interaction
- None
- Attack complexity
- Low
- Attack requirements
- Present
- Impact type
- Code execution
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Fixed
Attack profile from CVSS 4.0 · CNA. Fix status from CNA, GitHub and Red Hat. Impact type from CWE-77.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Active
- Automatable
- No
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| BerriAI | litellm | 1.74.2 to before 1.83.7 | 1.83.7 | Patch available | CNA |
| — | litellm (PyPI) | 1.74.2 to before 1.83.7 | 1.83.7 | Patch available | GHSA-v4p8-mg3p-g94g |
- litellm VendorBerriAI Affected 1.74.2 to before 1.83.7 Fixed in 1.83.7 Patch available CNA
- litellm (PyPI) Vendor— Affected 1.74.2 to before 1.83.7 Fixed in 1.83.7 Patch available GHSA-v4p8-mg3p-g94g
CPE configurations NVD · 3
Remediation
- Fix · CNA litellm (BerriAI) Fixed in 1.83.7
- Fix · GHSA-v4p8-mg3p-g94g litellm (PyPI) Fixed in 1.83.7 Advisory →
Red Hat 3 advisories
- RHSA-2026:30056 Released 2026-06-25 · Red Hat rating ImportantRHOAI 3.3.4 - Red Hat OpenShift AI
- Red Hat OpenShift AI 3.3 registry.redhat.io/rhoai/odh-llama-stack-core-rhel9
- RHSA-2026:28960 Released 2026-06-24 · Red Hat rating ImportantRHOAI 2.25.8 - Red Hat OpenShift AI
- Red Hat OpenShift AI 2.25 registry.redhat.io/rhoai/odh-llama-stack-core-rhel9
- RHSA-2026:27784 Released 2026-06-22 · Red Hat rating ImportantRHOAI 3.4.1 - Red Hat OpenShift AI
- Red Hat OpenShift AI 3.4 registry.redhat.io/rhoai/odh-trustyai-garak-lls-provider-dsp-rhel9
Vendor assessments
Red Hat
Red Hat rating: Important. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat OpenShift AI 2.25 | Fixed | RHSA-2026:28960 |
| Red Hat OpenShift AI 3.3 | Fixed | RHSA-2026:30056 |
| Red Hat OpenShift AI 3.4 | Fixed | RHSA-2026:27784 |
Not affected: 6 products
- Exploit Intelligence
- Red Hat Ansible Automation Platform 2
- Red Hat OpenShift AI (RHOAI)
- Red Hat OpenShift AI 2.25
- Red Hat OpenShift AI 3.3
- Red Hat OpenShift AI 3.4
Timeline
- 2026-06-08 Added to CISA KEV
- 2026-10-02 Threatist record created from CVE-2026-42271
- 2026-10-03 Alias added: GHSA-v4p8-mg3p-g94g
References
Advisory 7
- https://nvd.nist.gov/vuln/detail/CVE-2026-42271
- https://access.redhat.com/errata/RHSA-2026:27784
- https://access.redhat.com/errata/RHSA-2026:28960
- https://access.redhat.com/errata/RHSA-2026:30056
- https://access.redhat.com/security/cve/CVE-2026-42271
- https://bugzilla.redhat.com/show_bug.cgi?id=2467924
- https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-42271.json
More BerriAI Litellm vulnerabilities
- TI-2026-26015 Trivy ecosystem supply chain briefly compromised KEVCVSS 4.0CRITICAL 9.4
- TI-2026-30529 LiteLLM: SQL injection in Proxy API key verification KEVCVSS 4.0CRITICAL 9.3
- TI-2026-42639 LiteLLM: MCP Authentication Bypass via OAuth2 Passthrough Fallback KEVCVSS 4.0HIGH 8.8
- TI-2024-05340 Remote Code Execution in BerriAI/litellm CVSS 3.1CRITICAL 9.8
- TI-2024-02760 Server-Side Template Injection in BerriAI/litellm CVSS 3.0CRITICAL 9.8
- TI-2026-34701 LiteLLM < 1.83.10 Privilege Escalation via User Update CVSS 4.0HIGH 8.7
Sources
- CVE-2026-42271 · CVE Program
- CVE-2026-42271 · NVD
- CISA Known Exploited Vulnerabilities
- FIRST EPSS
- GHSA-v4p8-mg3p-g94g · GitHub Advisory Database · CC BY 4.0
- CVE-2026-42271 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences