CVE-2026-42271: BerriAI LiteLLM Command Injection
BerriAI LiteLLM · listed in the CISA catalog of actively exploited vulnerabilities since 2026-06-08.
- CVSS v4.0 (CVE record)
- 8.7
- high
- EPSS (exploit probability, 30 days)
- 91%
- higher than 99.8% of all CVEs
- Added to CISA KEV
- 2026-06-08
- US federal due date 2026-06-22
- Automatable (CISA SSVC)
- no
- technical impact: total
What is CVE-2026-42271?
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.
CISA required action: Apply mitigations per vendor instructions, follow applicable BOD 22-01 guidance for cloud services, or discontinue use of the product if mitigations are unavailable.
CISA 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: github.com/BerriAI/litellm/security/advisories/GHSA-v4p8-…
- github.com/BerriAI/litellm/releases/tag/v1.83.7-stable
- nvd.nist.gov/vuln/detail/CVE-2026-42271
Affected and fixed versions
From the CVE record published by the vendor or CVE numbering authority.
- BerriAI litellmAffectedFixed in
- ≥ 1.74.2
- < 1.83.7
not stated
| Product | Affected | Fixed in |
|---|---|---|
| BerriAI litellm |
| not stated |
How to fix it
- The CVE record names no fixed version – check the vendor advisory and CISA's required action for updates and mitigations.
- Vendor advisory: github.com/BerriAI/litellm/security/advisories/GHSA-v4p8-…
- CISA's deadline for US federal agencies: 2026-06-22 (passed) – a useful benchmark for everyone else, too.
CISA's assessment (SSVC)
- Exploitation
- Exploited in the wild
- Automatable
- No – each attack needs manual steps
- Technical impact
- Total – full control of the component or total information disclosure
Weakness: CWE-77 Improper Neutralization of Special Elements used in a Command ('Command Injection'), CWE-78 Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
References
Vendor
Other advisories
Trackers and catalogs
Data: CISA Known Exploited Vulnerabilities (public domain) · CVE Program records incl. CISA ADP enrichment · OSV.dev (CC BY 4.0) incl. Ubuntu and Debian security data · FIRST EPSS · endoflife.date. Updated automatically – facts last changed 2026-11-21. Always confirm with the vendor's or distribution's advisory before patching.