{"id":"CVE-2026-42271","aliases":["CVE-2026-42271","GHSA-v4p8-mg3p-g94g","PYSEC-2026-2599"],"related":[],"kind":"vulnerability","state":"published","title":"LiteLLM: Authenticated command execution via MCP stdio test endpoints","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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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":"cvelist"},{"lang":"en","text":"### Impact\n\nTwo 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.\n\nThe 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.\n\n### Patches\n\nFixed in **`1.83.7`**. Both test endpoints now require the `PROXY_ADMIN` role, bringing them into line with the save endpoint.\n\n### Workarounds\n\nIf upgrading is not immediately possible, developers should block `POST /mcp-rest/test/connection` and `POST /mcp-rest/test/tools/list` at their reverse proxy or API gateway.","format":"markdown","source":"ghsa"},{"lang":"es","text":"LiteLLM es un servidor proxy (Pasarela de IA) para llamar a las API de LLM en formato OpenAI (o nativo). Desde la versión 1.74.2 hasta antes de la versión 1.83.7, dos puntos finales utilizados para previsualizar un servidor MCP antes de guardarlo - POST /mcp-rest/test/connection y POST /mcp-rest/test/tools/list - aceptaban una configuración completa del servidor en el cuerpo de la solicitud, incluyendo los campos command, args y env utilizados por el transporte stdio. Cuando se invocaban con una configuración stdio, los puntos finales intentaban conectarse, lo que generaba el comando proporcionado como un subproceso en el host proxy con los privilegios del proceso proxy. Los puntos finales estaban protegidos únicamente por una clave API de proxy válida, sin verificación de rol. Cualquier usuario autenticado - incluyendo los titulares de claves de usuario interno de bajo privilegio - podía, por lo tanto, ejecutar comandos arbitrarios en el host. Este problema ha sido parcheado en la versión 1.83.7.","source":"nvd"},{"lang":"en","text":"BerriAI LiteLLM contains a command injection vulnerability that could allow any authenticated user, including holders of low-privilege internal-user keys, to run arbitrary commands on the host.","source":"kev"}],"published":"2026-04-25T23:27:54.000Z","modified":"2026-10-26T20:10:00.160Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"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","score":8.7,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"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","score":8.7,"rating":"HIGH"},{"scorer":"redhat-SADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"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","rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"},{"scorer":"PyPA Advisory Database","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"},{"scorer":"PyPA Advisory Database","scheme":"CVSS:4.0","vector":"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"}],"cwes":["CWE-77","CWE-78"],"affected":[{"ranges":[{"version":">= 1.74.2, < 1.83.7","status":"affected"}],"vendor":"BerriAI","product":"litellm","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"1781826406","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat OpenShift AI 2.25","package":"rhoai/odh-llama-stack-core-rhel9","cpe":"cpe:/a:redhat:openshift_ai:2.25::el9","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"1782310008","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat OpenShift AI 3.3","package":"rhoai/odh-llama-stack-core-rhel9","cpe":"cpe:/a:redhat:openshift_ai:3.3::el9","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"1781622627","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat OpenShift AI 3.4","package":"rhoai/odh-trustyai-garak-lls-provider-dsp-rhel9","cpe":"cpe:/a:redhat:openshift_ai:3.4::el9","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Exploit Intelligence","package":"exploit-intelligence-tech-preview/vulnerability-analysis-rhel9","cpe":"cpe:/a:redhat:exploit_intelligence:0","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat Ansible Automation Platform 2","package":"ansible-automation-platform-26/lightspeed-chatbot-rhel9","cpe":"cpe:/a:redhat:ansible_automation_platform:2","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat Ansible Automation Platform 2","package":"ansible-automation-platform-27/lightspeed-chatbot-rhel9","cpe":"cpe:/a:redhat:ansible_automation_platform:2","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat OpenShift AI (RHOAI)","package":"rhoai/odh-mlflow-rhel9","cpe":"cpe:/a:redhat:openshift_ai","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"1.74.2","status":"affected","fixed":"1.83.7"}],"ecosystem":"PyPI","package":"litellm","purl":"pkg:pypi/litellm","source":"ghsa"},{"ranges":[{"status":"affected","introduced":"1.74.2","fixed":"1.83.7"}],"vendor":"litellm","product":"litellm","cpe":"cpe:2.3:a:litellm:litellm:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","introduced":"2.25","fixed":"2.25.8"},{"status":"affected","introduced":"3.3","fixed":"3.3.4"},{"status":"affected","version":"3.4"}],"vendor":"redhat","product":"openshift_ai","cpe":"cpe:2.3:a:redhat:openshift_ai:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"ecosystem","introduced":"1.74.2","status":"affected","fixed":"1.83.7"}],"ecosystem":"PyPI","package":"litellm","purl":"pkg:pypi/litellm","source":"pysec"},{"ranges":[],"vendor":"BerriAI","product":"LiteLLM","source":"kev"}],"references":[{"url":"https://github.com/BerriAI/litellm/security/advisories/GHSA-v4p8-mg3p-g94g","tags":["kev","mitigation","patch","vendor-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd","pysec","kev"]},{"url":"https://github.com/BerriAI/litellm/releases/tag/v1.83.7-stable","tags":["kev","product","release-notes","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd","pysec","kev"]},{"url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2026-42271","tags":["government-resource","us-government-resource","web"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://access.redhat.com/security/cve/CVE-2026-42271","tags":["third-party-advisory","vdb-entry","x-refsource-redhat"],"sources":["cvelist","nvd"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2467924","tags":["issue-tracking","third-party-advisory","x-refsource-redhat"],"sources":["cvelist","nvd"]},{"url":"https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-42271.json","tags":["third-party-advisory","x-sadp-csaf-vex"],"sources":["cvelist","nvd"]},{"url":"https://access.redhat.com/errata/RHSA-2026:28960","tags":["third-party-advisory","vendor-advisory","x-refsource-redhat"],"sources":["cvelist","nvd"]},{"url":"https://access.redhat.com/errata/RHSA-2026:30056","tags":["third-party-advisory","vendor-advisory","x-refsource-redhat"],"sources":["cvelist","nvd"]},{"url":"https://access.redhat.com/errata/RHSA-2026:27784","tags":["third-party-advisory","vendor-advisory","x-refsource-redhat"],"sources":["cvelist","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-42271","tags":["advisory","kev"],"sources":["ghsa","pysec","kev"]},{"url":"https://github.com/BerriAI/litellm","tags":["package"],"sources":["ghsa","pysec"]},{"url":"https://pypi.org/project/litellm","tags":["package"],"sources":["pysec"]},{"url":"https://github.com/advisories/GHSA-v4p8-mg3p-g94g","tags":["advisory"],"sources":["pysec"]}],"credits":[],"assigner":"GitHub_M","kev":{"dateAdded":"2026-06-08","dueDate":"2026-06-22","name":"BerriAI LiteLLM Command Injection Vulnerability","requiredAction":"Apply mitigations per vendor instructions, follow applicable BOD 22-01 guidance for cloud services, or discontinue use of the product if mitigations are unavailable.","ransomware":false,"notes":"This vulnerability affects a common open-source component, third-party library, or a protocol used by different products. Please check with specific vendors for information on patching status. For more information, please see: https://github.com/BerriAI/litellm/security/advisories/GHSA-v4p8-mg3p-g94g ; https://github.com/BerriAI/litellm/releases/tag/v1.83.7-stable ; https://nvd.nist.gov/vuln/detail/CVE-2026-42271"},"ssvc":{"scorer":"CISA-ADP","exploitation":"active","automatable":"no","technicalImpact":"total","date":"2026-05-08T00:00:00.000Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-42271","url":"https://www.cve.org/CVERecord?id=CVE-2026-42271","licence":"CVE Terms of Use","modified":"2026-07-15T00:57:49.325Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-v4p8-mg3p-g94g","url":"https://github.com/advisories/GHSA-v4p8-mg3p-g94g","licence":"CC-BY-4.0","modified":"2026-09-10T03:51:03.195Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-42271","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-42271","licence":"Public domain","modified":"2026-10-26T20:10:00.160Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2026-2599","url":"https://osv.dev/vulnerability/PYSEC-2026-2599","licence":"CC-BY-4.0","modified":"2026-07-13T16:32:04.086Z"},{"source":"kev","name":"CISA KEV","id":"CVE-2026-42271","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog?search_api_fulltext=CVE-2026-42271","licence":"CC0-1.0","modified":"2026-06-08T00:00:00.000Z"}],"updatedAt":"2026-11-25T22:59:20.950Z","epss":{"score":0.94499,"percentile":0.99852,"date":"2026-12-01T12:00:22.000Z"}}