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

- Severity: High 8.7 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: yes. In CISA's catalogue since 2026-06-08. Apply mitigations per vendor instructions, follow applicable BOD 22-01 guidance for cloud services, or discontinue use of the product if mitigations are unavailable.
- Likelihood of exploitation in the next 30 days (EPSS): 94.5%, higher than 99% of CVEs (2026-12-01)
- Published: 2026-04-25T23:27:54.000Z
- Modified: 2026-10-26T20:10:00.160Z
- Also known as: GHSA-v4p8-mg3p-g94g, PYSEC-2026-2599
- Weaknesses: CWE-77, CWE-78
- SSVC (CISA-ADP): exploitation active, automatable no, technical impact total
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- BerriAI litellm: >= 1.74.2, < 1.83.7
- rhoai/odh-llama-stack-core-rhel9: no versions given (not affected: from 1781826406 before *; from 1782310008 before *)
- rhoai/odh-trustyai-garak-lls-provider-dsp-rhel9: no versions given (not affected: from 1781622627 before *)
- exploit-intelligence-tech-preview/vulnerability-analysis-rhel9: no versions given
- ansible-automation-platform-26/lightspeed-chatbot-rhel9: no versions given
- ansible-automation-platform-27/lightspeed-chatbot-rhel9: no versions given
- rhoai/odh-mlflow-rhel9: no versions given
- litellm (PyPI): from 1.74.2 before 1.83.7
- litellm litellm: from 1.74.2 before 1.83.7
- redhat openshift_ai: from 2.25 before 2.25.8; from 3.3 before 3.3.4; 3.4

## Every score

- GitHub_M: CVSS:4.0 8.7 High `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`
- redhat-SADP: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- GitHub: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- GitHub: CVSS:4.0 High `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`
- NVD: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- PyPA Advisory Database: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- PyPA Advisory Database: CVSS:4.0 `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`

## References

- <https://github.com/BerriAI/litellm/security/advisories/GHSA-v4p8-mg3p-g94g> (kev, mitigation, patch, vendor-advisory, web)
- <https://github.com/BerriAI/litellm/releases/tag/v1.83.7-stable> (kev, product, release-notes, web)
- <https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2026-42271> (government-resource, us-government-resource, web)
- <https://access.redhat.com/security/cve/CVE-2026-42271> (third-party-advisory, vdb-entry)
- <https://bugzilla.redhat.com/show_bug.cgi?id=2467924> (issue-tracking, third-party-advisory)
- <https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-42271.json> (third-party-advisory)
- <https://access.redhat.com/errata/RHSA-2026:28960> (third-party-advisory, vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2026:30056> (third-party-advisory, vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2026:27784> (third-party-advisory, vendor-advisory)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-42271> (advisory, kev)
- <https://github.com/BerriAI/litellm> (package)
- <https://pypi.org/project/litellm> (package)
- <https://github.com/advisories/GHSA-v4p8-mg3p-g94g> (advisory)

## Sources

- CVE List: [CVE-2026-42271](https://www.cve.org/CVERecord?id=CVE-2026-42271), CVE Terms of Use, modified 2026-07-15
- GitHub Advisory Database: [GHSA-v4p8-mg3p-g94g](https://github.com/advisories/GHSA-v4p8-mg3p-g94g), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2026-42271](https://nvd.nist.gov/vuln/detail/CVE-2026-42271), Public domain, modified 2026-10-26
- PyPA Advisory Database: [PYSEC-2026-2599](https://osv.dev/vulnerability/PYSEC-2026-2599), CC-BY-4.0, modified 2026-07-13
- CISA KEV: [CVE-2026-42271](https://www.cisa.gov/known-exploited-vulnerabilities-catalog?search_api_fulltext=CVE-2026-42271), CC0-1.0, modified 2026-06-08

---

Page: https://cve.day/CVE-2026-42271 · Whole record: https://cve.day/CVE-2026-42271.json · Rebuilt by cve.day 2026-11-25T22:59:20.950Z
