CVE-2026-42271: BerriAI LiteLLM Command Injection Vulnerability
CVE-2026-42271 is a high-severity flaw (CVSS 8.8) affecting litellm, openshift ai, reported as exploited in the wild. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
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 at
Why this priority
- High severity
- EPSS top 1%: very likely to be exploited
- Exploited in the wild (CISA KEV)
- Public exploit reference
- On your watchlist
A fixed release or distro patch exists.
Last updated 2026-10-26 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score
Am I affected?
Timeline
- Published CVE record published
- Exploited Added to the CISA Known Exploited Vulnerabilities list
- Deadline CISA due date for US federal agencies to patch
- Updated Record last modified
Exact fixes by distribution
Public exploits and detection
Public code exists for this CVE. Treat unpatched systems as at risk, and only run PoCs in a lab.
- GitHub PoC: learner202649/CVE-2026-42271-PoC (1 stars)
- GitHub PoC: HORKimhab/CVE-2026-42271 (0 stars)
- Metasploit: BerriAI LiteLLM Proxy MCP Test Endpoint Command Execution
- Nuclei scan template: LiteLLM - Command Injection
Advisories and coverage
Research and news
- Mandiant / Google Cloud Threat Intel: Vulnerability Discovery and Exploitation Trends in the AI Era 2026-09-30
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.
Quick answers
How do I fix CVE-2026-42271?
litellm: upgrade to 1.83.7; openshift ai: upgrade to 2.25.8, 3.3.4. Exact commands for each OS are on this page.
Is CVE-2026-42271 being exploited?
Yes. CVE-2026-42271 is on the CISA Known Exploited Vulnerabilities list, so treat it as patch-now.
What does CVE-2026-42271 affect?
CVE-2026-42271 affects litellm, openshift ai. Severity is high (CVSS 8.8). 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-
How urgent is CVE-2026-42271?
Priority 91/100. High severity; EPSS top 1%: very likely to be exploited; Exploited in the wild (CISA KEV); Public exploit reference; On your watchlist
Software pages
OpenAI and LLM tools vulnerabilities · Red Hat OpenShift vulnerabilities
Related CVEs
- CVE-2026-40217 HIGH 8.8 UPGRADE LiteLLM through 2026-04-08 allows remote attackers to execute arbitrary code via bytecode rewriting at the /gu
- CVE-2026-42208 CRITICAL 9.8 EXPLOITED UPGRADE BerriAI LiteLLM SQL Injection Vulnerability
- CVE-2026-42203 HIGH 8.8 UPGRADE LiteLLM is a proxy server (AI Gateway) to call LLM APIs in OpenAI (or native) format
- CVE-2026-49468 CRITICAL 9.8 UPGRADE LiteLLM is a proxy server (AI Gateway) to call LLM APIs in OpenAI (or native) format
- CVE-2026-12773 HIGH 7.3 UPGRADE A weakness has been identified in BerriAI litellm up to 1.59.8