CVE-2026-42271
CONFIRMED EXPLOITEDBerriAI LiteLLM Command Injection Vulnerability
Is BerriAI LiteLLM affected by CVE-2026-42271?
BerriAI LiteLLM is listed in the CISA Known Exploited Vulnerabilities catalog for CVE-2026-42271, added on 2026-06-08. CISA only adds a CVE once it has evidence of exploitation in the wild, so the patching question is not whether it can be attacked but how soon your instances must be updated.
Affected products published by NIST NVD (4 vulnerable CPE entries): litellm litellm and redhat openshift_ai.
Published CPE version bounds mark releases below 3.3.4 as vulnerable. Those bounds describe what is affected, not what patches it: upgrade to the fixed release named in the vendor advisory below, then confirm the installed version with your package manager or scanner.
The CISA remediation deadline for this entry is 2026-06-22.
RELATED VULNERABILITY DOSSIERS
Other catalog entries that share this product, vendor, or weakness, or that sit next to this advisory in the CISA KEV timeline.
- CVE-2026-40217Same productBerriAI LiteLLM
BerriAI LiteLLM Unprotected Alternate Channel Vulnerability
- CVE-2026-59822Same productBerriAI LiteLLM
BerriAI LiteLLM Improper Authentication Vulnerability
- CVE-2026-42208Same productBerriAI LiteLLM
BerriAI LiteLLM SQL Injection Vulnerability
- CVE-2026-133323Shared weaknessMitel MiCollab
Mitel MiCollab OS Command Injection Vulnerability
- CVE-2026-28318Neighboring entrySolarWinds Serv-U
SolarWinds Serv-U Uncontrolled Resource Consumption Vulnerability
- CVE-2026-50751Neighboring entryCheck Point Security Gateway
Check Point Security Gateway Improper Authentication Vulnerability
1. VULNERABILITY OVERVIEW & TECHNICAL MECHANISM
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.
Get Stack Watch email when a KEV hits your stack ($99/year or $12/month)
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.
2. AFFECTED VERSIONS, PRODUCTS & VERIFIED CPE CONFIGURATIONS
3. EXPLOITATION EVIDENCE, IMPACT & HOW TO DETECT IT
This vulnerability was added to the CISA Known Exploited Vulnerabilities (KEV) catalog on 2026-06-08. Inclusion in KEV requires verified evidence of active exploitation in the wild. Known ransomware campaign use is recorded by CISA as: "Unknown".
Note: KEV inclusion confirms that threat actors have exploited this flaw in real-world incidents; it does not imply every deployment of LiteLLM has been compromised.
- CVSS vector indicates high impact to Confidentiality (C:H), Integrity (I:H), and Availability (A:H) of the affected component.
- Network service surface (BerriAI LiteLLM): inspect perimeter and internal flow telemetry (`Zeek conn.log`, `Suricata eve.json`) and host service logs for anomalous connection bursts, protocol errors, or unexpected child processes.
- Command/Argument Injection class (CWE-77/78/88): monitor process trees for `/bin/sh`, `bash`, `cmd.exe`, `powershell`, `curl`, or `wget` spawned as child processes of the service daemon.
- Inventory all hosts running BerriAI LiteLLM and compare installed package/build versions against the NVD CPE configurations and vendor advisory below.
4. FIXED VERSION, MITIGATIONS & OFFICIAL ADVISORY CITATIONS
Apply mitigations per vendor instructions, follow applicable BOD 22-01 guidance for cloud services, or discontinue use of the product if mitigations are unavailable.
- https://github.com/BerriAI/litellm/releases/tag/v1.83.7-stableProductRelease Notes
- https://github.com/BerriAI/litellm/security/advisories/GHSA-v4p8-mg3p-g94gMitigationPatchVendor Advisory
- https://access.redhat.com/errata/RHSA-2026:27784Third Party Advisory
- https://access.redhat.com/errata/RHSA-2026:28960Third Party Advisory
- https://access.redhat.com/errata/RHSA-2026:30056Third Party Advisory
- https://access.redhat.com/security/cve/CVE-2026-42271Third Party Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=2467924Third Party Advisory
- https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-42271.jsonThird Party Advisory
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2026-42271US Government Resource
SCORING & VECTOR TELEMETRY
Primary assessment authored by NIST NVD (nvd@nist.gov).
EPSS estimates the statistical probability of exploitation activity in the next 30 days—it is not proof of confirmed exploitation.
RELEVANT DEFENSIVE TOOLS
Curated open-source defensive and verification utilities from The Loot applicable to this asset class:
Endpoint visibility, digital forensics, and incident response (DFIR) platform
Network security monitoring (NSM) and protocol metadata extraction framework
Multi-threaded IDS, IPS, and network security monitoring engine
VirusTotal's memory-safe Rust rewrite of YARA for binary & implant hunting