LiteLLM: Authenticated command execution via MCP stdio test endpoints
CVE-2026-42271Published 8 May 2026, 03:35 UTC
Exploited in the wild
CISA added it to the Known Exploited Vulnerabilities list on 8 Jun 2026; US federal agencies must fix it by 22 Jun 2026.
Real-world risk
8.0/ 10High
Act now: it is being exploited.
If the vulnerable configuration applies to you: 8.0
PreliminaryFrom the CVSS vector only Β· confidence low
CVSS
8.7
scored by the vendor (CNA), CVSS 4.0
In plain words
No plain-language summary yet. The original description is below.
Original description (from GitHub_M)
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.
Am I affected?
| Product | Affected versions (from the sources) | Fixed in |
|---|---|---|
| berriai/litellmCommon | >= 1.74.2, < 1.83.7 | 1.83.7 |
What to do
Update to a fixed version: 1.83.7.
Why this score
| Factor | Value | Evidence | Γ |
|---|---|---|---|
| Impact | Full compromiseCode execution or full control of the system or application | From the CVSS vector | 1.00 |
| Attacker position | InternetAnyone on the Internet can reach a typical deployment | From the CVSS vector | 1.00 |
| Privileges needed | LowA real low-privileged account | From the CVSS vector | 0.60 |
| Victim interaction | NoneNothing | From the CVSS vector | 1.00 |
| Configuration | UncommonNeeds a non-default feature that a minority enables | From the CVSS vector | 0.45 |
| Reliability | ReliableDeterministic: injection, logic bug, path traversal | From the CVSS vector | 1.00 |
Threat level T5: Exploited in the wild (Γ 1.00)
On CISA KEV or VulnCheck KEV, flagged exploited by ENISA's EUVD, CISA's SSVC says active, or the vendor's or CNA's own page says it is exploited
- On CISAβs Known Exploited Vulnerabilities list
- Metasploit module (link)
- Nuclei scanner template (link)
- CISA SSVC: exploitation active
EPSS 94.5% chance of exploitation in 30 days (percentile 100), as of 2026-12-03.
The arithmetic
- Prerequisites multiplied together0.270
- Threat T5: Exploited in the wild1.000
- 10 Γ impact 1 Γ prerequisites 0.27 Γ threat 12.700
- Exploited in the wild: attackers have already met the prerequisites, so they count only by their square root5.196
- Exploited in the wild: at least 88.000
- Rounded to one decimal between 0.1 and 108.0
Exploitation and evidence timeline
- 8 May 2026 Published
- 8 Jun 2026 Added to CISA KEV
- 3 Dec 2026 Metasploit module first seen
- 3 Dec 2026 Nuclei scanner template first seen
- 3 Dec 2026 CISA SSVC: exploitation active first seen
- 3 Dec 2026 Risk 8.0 (cvss fallback)
Weakness
CWE-77, CWE-78
References
- https://github.com/BerriAI/litellm/security/advisories/GHSA-v4p8-mg3p-g94gvendor-advisory
- https://github.com/BerriAI/litellm/releases/tag/v1.83.7-stablemisc
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2026-42271government-resource
- https://access.redhat.com/security/cve/CVE-2026-42271redhat, vdb-entry
- https://bugzilla.redhat.com/show_bug.cgi?id=2467924issue-tracking, redhat
- https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-42271.jsonx-sadp-csaf-vex
- https://access.redhat.com/errata/RHSA-2026:28960redhat, vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:30056redhat, vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:27784redhat, vendor-advisory
- CVE-2026-42271 on CVE.org