CVE-2026-42271
published high CVSS 4.0 · 8.7LiteLLM: Authenticated command execution via MCP stdio test endpoints
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| BerriAI | — | litellm>= 1.74.2, < 1.83.7 | Affected | Not stated | GitHub_M |
| Red Hat | — | rhoai/odh-llama-stack-core-rhel9Red Hat OpenShift AI 2.25 · 1781826406 and later · Other versions: affected | Unaffected | Not stated | redhat-SADP |
| Red Hat | — | rhoai/odh-llama-stack-core-rhel9Red Hat OpenShift AI 3.3 · 1782310008 and later · Other versions: affected | Unaffected | Not stated | redhat-SADP |
| Red Hat | — | rhoai/odh-trustyai-garak-lls-provider-dsp-rhel9Red Hat OpenShift AI 3.4 · 1781622627 and later · Other versions: affected | Unaffected | Not stated | redhat-SADP |
| Red Hat | — | exploit-intelligence-tech-preview/vulnerability-analysis-rhel9Exploit Intelligence | Unaffected | Not required | redhat-SADP |
| Red Hat | — | ansible-automation-platform-26/lightspeed-chatbot-rhel9Red Hat Ansible Automation Platform 2 | Unaffected | Not required | redhat-SADP |
| Red Hat | — | ansible-automation-platform-27/lightspeed-chatbot-rhel9Red Hat Ansible Automation Platform 2 | Unaffected | Not required | redhat-SADP |
| Red Hat | — | rhoai/odh-mlflow-rhel9Red Hat OpenShift AI (RHOAI) | Unaffected | Not required | redhat-SADP |
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.
A flaw was found in LiteLLM, a proxy server (AI Gateway) for Large Language Model (LLM) APIs. Two endpoints, used for previewing an MCP server before saving it, accepted a full server configuration including command execution parameters. An authenticated user, even with low-privilege internal-user keys, could exploit this by sending a crafted configuration. This allows for arbitrary command execution on the proxy host with the privileges of the proxy process.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 8.7 / 10
- Severity
- high
- Provider
- GitHub_M · cna
- Vector string
- 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
Additional Assessments
| Version | Score | Severity | Provider | Vector | Scenarios |
|---|---|---|---|---|---|
| 3.1 | 8.8 | high | redhat-SADP · adp | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H | — |
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| BerriAI | litellm | >= 1.74.2, < 1.83.7 (affected) | GitHub_M · cna |
| Red Hat | Red Hat OpenShift AI 2.25 | 1781826406 and later (unaffected · rpm)Default: affected | redhat-SADP · adp |
| Red Hat | Red Hat OpenShift AI 3.3 | 1782310008 and later (unaffected · rpm)Default: affected | redhat-SADP · adp |
| Red Hat | Red Hat OpenShift AI 3.4 | 1781622627 and later (unaffected · rpm)Default: affected | redhat-SADP · adp |
| Red Hat | Exploit Intelligence | Default: unaffected | redhat-SADP · adp |
| Red Hat | Red Hat Ansible Automation Platform 2 | Default: unaffected | redhat-SADP · adp |
| Red Hat | Red Hat Ansible Automation Platform 2 | Default: unaffected | redhat-SADP · adp |
| Red Hat | Red Hat OpenShift AI (RHOAI) | Default: unaffected | redhat-SADP · adp |
Weaknesses
3- CWE-77 CWE-77: Improper Neutralization of Special Elements used in a Command ('Command Injection')
- CWE-78 CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
- CWE-78 Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
References
9- 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
- RHBZ#2467924 https://bugzilla.redhat.com/show_bug.cgi?id=2467924
- https://github.com/BerriAI/litellm/releases/tag/v1.83.7-stable
- https://github.com/BerriAI/litellm/security/advisories/GHSA-v4p8-mg3p-g94g
- https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-42271.json
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2026-42271
Provider assertions
3GitHub_M · cna
LiteLLM: Authenticated command execution via MCP stdio test endpoints
redhat-SADP · adp
litellm: LiteLLM: Authenticated command execution via MCP stdio test endpoints
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 40074115e8cbf2e222b601beb7c33c227a059dcc2eb600678fbd49cb32cff0a9
- Ingested
- 23 Sep 2026, 09:14:00 UTC
- Source record
- Official CVE record