Known Exploited Vulnerability
8.8
HIGH CVSS 3.1
CVE-2026-42271
BerriAI LiteLLM Command Injection Vulnerability - [Actively Exploited]
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.

INFO

Published Date :

May 8, 2026, 4:16 a.m.

Last Modified :

July 15, 2026, 2:21 a.m.

Remotely Exploit :

Yes !
CISA Notification
CISA KEV (Known Exploited Vulnerabilities)

For the benefit of the cybersecurity community and network defenders—and to help every organization better manage vulnerabilities and keep pace with threat activity—CISA maintains the authoritative source of vulnerabilities that have been exploited in the wild.

Description :

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.

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.

Known Ransomware Campaign Use:

Unknown

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: https://github.com/BerriAI/litellm/security/advisories/GHSA-v4p8-mg3p-g94g ; https://github.com/BerriAI/litellm/releases/tag/v1.83.7-stable ; https://nvd.nist.gov/vuln/detail/CVE-2026-42271

Affected Products

The following products are affected by CVE-2026-42271 vulnerability. Even if cvefeed.io is aware of the exact versions of the products that are affected, the information is not represented in the table below.

ID Vendor Product Action
1 Redhat openshift_ai
1 Litellm litellm
CVSS Scores
The Common Vulnerability Scoring System is a standardized framework for assessing the severity of vulnerabilities in software and systems. We collect and displays CVSS scores from various sources for each CVE.
Score Version Severity Vector Exploitability Score Impact Score Source
CVSS 134c704f-9b21-4f2e-91b3-4a467353bcc0
CVSS 3.1 HIGH [email protected]
CVSS 3.1 HIGH 0b0ca135-0b70-47e7-9f44-1890c2a1c46c
CVSS 4.0 HIGH [email protected]
Solution
Update LiteLLM to version 1.83.7 or later to fix arbitrary command execution.
  • Update LiteLLM to version 1.83.7 or later.
  • Remove unnecessary privileges from proxy process.
  • Implement stricter access controls for endpoints.
  • Review and sanitize all user inputs.
Public PoC/Exploit Available at Github

CVE-2026-42271 has a 23 public PoC/Exploit available at Github. Go to the Public Exploits tab to see the list.

References to Advisories, Solutions, and Tools

Here, you will find a curated list of external links that provide in-depth information, practical solutions, and valuable tools related to CVE-2026-42271.

URL Resource
https://github.com/BerriAI/litellm/releases/tag/v1.83.7-stable Product Release Notes
https://github.com/BerriAI/litellm/security/advisories/GHSA-v4p8-mg3p-g94g Mitigation Patch Vendor Advisory
https://access.redhat.com/errata/RHSA-2026:27784 Third Party Advisory
https://access.redhat.com/errata/RHSA-2026:28960 Third Party Advisory
https://access.redhat.com/errata/RHSA-2026:30056 Third Party Advisory
https://access.redhat.com/security/cve/CVE-2026-42271 Third Party Advisory
https://bugzilla.redhat.com/show_bug.cgi?id=2467924 Third Party Advisory
https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-42271.json Third Party Advisory
https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2026-42271 US Government Resource
CWE - Common Weakness Enumeration

While CVE identifies specific instances of vulnerabilities, CWE categorizes the common flaws or weaknesses that can lead to vulnerabilities. CVE-2026-42271 is associated with the following CWEs:

We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).

None

Cypher Python Shell

Updated: 2 weeks, 2 days ago
0 stars 0 fork 0 watcher
Born at : July 21, 2026, 3:53 a.m. This repo has been linked 2 different CVEs too.

一个简答的 AgentCore WebSearch 搜索功能 Demo

Python Java

Updated: 2 weeks, 6 days ago
0 stars 0 fork 0 watcher
Born at : July 9, 2026, 7:50 a.m. This repo has been linked 5 different CVEs too.

Professional vulnerability assessment report for LiteLLM command injection risk, including executive summary, technical impact, remediation, and mitigation strategy.

cve-analysis remediation root-cause-analysis security-research technical-writing vulnerability-research

Python

Updated: 3 weeks ago
3 stars 0 fork 0 watcher
Born at : July 7, 2026, 11:52 p.m. This repo has been linked 1 different CVEs too.

주요 CVE 분석

Updated: 2 weeks, 3 days ago
0 stars 0 fork 0 watcher
Born at : July 3, 2026, 5:27 a.m. This repo has been linked 154 different CVEs too.

Python CLI tool to check CVE details + nuclei template coverage. Security research writeups in /research.

Python

Updated: 1 month, 1 week ago
0 stars 0 fork 0 watcher
Born at : June 28, 2026, 1:27 p.m. This repo has been linked 14 different CVEs too.

None

Python JavaScript CSS TypeScript

Updated: 1 month, 1 week ago
0 stars 0 fork 0 watcher
Born at : June 26, 2026, 12:06 p.m. This repo has been linked 1 different CVEs too.

252 standalone, live-validated CVE exploit PoCs (pure-Python stdlib) across web apps, AI/ML platforms and the Linux kernel; 75 in the CISA KEV catalog. For authorized security testing and education.

cve exploit penetration-testing poc security-research vulnerability cybersecurity ethical-hacking infosec rce red-team security appsec cisa-kev deserialization exploit-development proof-of-concept python

Python C

Updated: 2 weeks, 3 days ago
1 stars 0 fork 0 watcher
Born at : June 23, 2026, 8:55 a.m. This repo has been linked 251 different CVEs too.

Four approaches to monitoring LLM token consumption on Amazon EKS - from zero-touch billing to distributed agent tracing - with no code changes.

Makefile Dockerfile Python Shell

Updated: 1 month, 2 weeks ago
0 stars 0 fork 0 watcher
Born at : June 22, 2026, 1:40 p.m. This repo has been linked 1 different CVEs too.

UMBRASEC is an independent research project focused on the defensive side of security - detection engineering, honest threat analysis, open-source tooling, and a free security guide for small businesses.

HTML CSS JavaScript Python Mermaid Shell

Updated: 2 weeks, 4 days ago
1 stars 0 fork 0 watcher
Born at : June 12, 2026, 10:20 a.m. This repo has been linked 2 different CVEs too.

⚡ Awesome AI Gateway — curated comparison of 100+ AI gateways & LLM proxies (LiteLLM, OpenRouter, Portkey, Kong, Higress, new-api, Bifrost) by cost, security, compliance & self-hosting. Decision tree + reproducible benchmarks. Open source, bilingual, updated daily.

ai-gateway ai-infrastructure api-gateway awesome awesome-list litellm llm llm-gateway llm-proxy llm-router llmops mcp openrouter ai-tools anthropic deepseek openai self-hosted benchmark cost-optimization

Python HTML

Updated: 2 weeks, 4 days ago
52 stars 26 fork 26 watcher
Born at : June 11, 2026, 12:44 p.m. This repo has been linked 1 different CVEs too.

每日CVE漏洞汇总

Updated: 1 month, 4 weeks ago
0 stars 0 fork 0 watcher
Born at : June 9, 2026, 4:54 p.m. This repo has been linked 25 different CVEs too.

CVE-2026-42271 - Draft

Updated: 1 month, 4 weeks ago
0 stars 0 fork 0 watcher
Born at : June 9, 2026, 8:13 a.m. This repo has been linked 1 different CVEs too.

The code for personally reproducing the corresponding vulnerability

Python

Updated: 2 months, 2 weeks ago
0 stars 0 fork 0 watcher
Born at : May 20, 2026, 1:12 a.m. This repo has been linked 1 different CVEs too.

BioDockify Pharma AI is a Pharmaceutical Research fork of Agent Zero, an open-source agentic framework created by Tajuddin Shaik for Pharma Professional across Globe.

assistant docking literature-review literature-search pharma reserch

Python Jupyter Notebook HTML Shell Dockerfile JavaScript TypeScript TeX CSS MATLAB

Updated: 1 month, 1 week ago
5 stars 1 fork 1 watcher
Born at : May 12, 2026, 7:11 a.m. This repo has been linked 1 different CVEs too.

The Project shares all information on MCP related CVE's published

mcp mcp-security mcp-cve

Updated: 2 weeks, 6 days ago
19 stars 4 fork 4 watcher
Born at : May 7, 2026, 3:47 p.m. This repo has been linked 307 different CVEs too.

Results are limited to the first 15 repositories due to potential performance issues.

The following list is the news that have been mention CVE-2026-42271 vulnerability anywhere in the article.

  • The Hacker News
LiteLLM Vulnerability Chain Lets Low-Privilege Users Take Over AI Gateway Servers

A default low-privilege account on a LiteLLM proxy can climb to full admin and run code on the server by chaining three vulnerabilities, researchers at Obsidian Security disclosed LiteLLM is a widely ... Read more

Published Date: Jun 15, 2026 (1 month, 3 weeks ago)
  • TheCyberThrone
CISA adds BerriAI LiteLLM & Check Point Security Gateway to KEV

CISA added two vulnerabilities to its Known Exploited Vulnerabilities catalog on June 8, 2026, confirming active exploitation of both. The two entries are CVE-2026-42271 (BerriAI LiteLLM Command Injec ... Read more

Published Date: Jun 09, 2026 (1 month, 4 weeks ago)
  • The Hacker News
LiteLLM Flaw CVE-2026-42271 Exploited in the Wild, Chains to Unauthenticated RCE

The U.S. Cybersecurity and Infrastructure Security Agency (CISA) on Monday added a high-severity flaw impacting BerriAI LiteLLM to its Known Exploited Vulnerabilities (KEV) catalog, citing evidence of ... Read more

Published Date: Jun 09, 2026 (1 month, 4 weeks ago)

The following table lists the changes that have been made to the CVE-2026-42271 vulnerability over time.

Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.

  • CVE Modified by 0b0ca135-0b70-47e7-9f44-1890c2a1c46c

    Jul. 15, 2026

    Action Type Old Value New Value
    Changed Affected [{'cpes': ['cpe:/a:redhat:openshift_ai:2.25::el9'], 'vendor': 'Red Hat', 'product': 'Red Hat OpenShift AI 2.25', 'defaultStatus': 'affected'}, {'cpes': ['cpe:/a:redhat:openshift_ai:3.3::el9'], 'vendor': 'Red Hat', 'product': 'Red Hat OpenShift AI 3.3', 'defaultStatus': 'affected'}, {'cpes': ['cpe:/a:redhat:openshift_ai:3.4::el9'], 'vendor': 'Red Hat', 'product': 'Red Hat OpenShift AI 3.4', 'defaultStatus': 'affected'}, {'cpes': ['cpe:/a:redhat:exploit_intelligence:0'], 'vendor': 'Red Hat', 'product': 'Exploit Intelligence', 'defaultStatus': 'unaffected'}, {'cpes': ['cpe:/a:redhat:ansible_automation_platform:2'], 'vendor': 'Red Hat', 'product': 'Red Hat Ansible Automation Platform 2', 'defaultStatus': 'unaffected'}, {'cpes': ['cpe:/a:redhat:openshift_ai'], 'vendor': 'Red Hat', 'product': 'Red Hat OpenShift AI (RHOAI)', 'defaultStatus': 'unaffected'}] [{'cpes': ['cpe:/a:redhat:openshift_ai:2.25::el9'], 'vendor': 'Red Hat', 'product': 'Red Hat OpenShift AI 2.25', 'versions': [{'status': 'unaffected', 'version': '1781826406', 'lessThan': '*', 'versionType': 'rpm'}], 'packageName': 'rhoai/odh-llama-stack-core-rhel9', 'collectionURL': 'https://catalog.redhat.com/software/containers/', 'defaultStatus': 'affected'}, {'cpes': ['cpe:/a:redhat:openshift_ai:3.3::el9'], 'vendor': 'Red Hat', 'product': 'Red Hat OpenShift AI 3.3', 'versions': [{'status': 'unaffected', 'version': '1782310008', 'lessThan': '*', 'versionType': 'rpm'}], 'packageName': 'rhoai/odh-llama-stack-core-rhel9', 'collectionURL': 'https://catalog.redhat.com/software/containers/', 'defaultStatus': 'affected'}, {'cpes': ['cpe:/a:redhat:openshift_ai:3.4::el9'], 'vendor': 'Red Hat', 'product': 'Red Hat OpenShift AI 3.4', 'versions': [{'status': 'unaffected', 'version': '1781622627', 'lessThan': '*', 'versionType': 'rpm'}], 'packageName': 'rhoai/odh-trustyai-garak-lls-provider-dsp-rhel9', 'collectionURL': 'https://catalog.redhat.com/software/containers/', 'defaultStatus': 'affected'}, {'cpes': ['cpe:/a:redhat:exploit_intelligence:0'], 'vendor': 'Red Hat', 'product': 'Exploit Intelligence', 'packageName': 'exploit-intelligence-tech-preview/vulnerability-analysis-rhel9', 'collectionURL': 'https://access.redhat.com/downloads/content/package-browser/', 'defaultStatus': 'unaffected'}, {'cpes': ['cpe:/a:redhat:ansible_automation_platform:2'], 'vendor': 'Red Hat', 'product': 'Red Hat Ansible Automation Platform 2', 'packageName': 'ansible-automation-platform-26/lightspeed-chatbot-rhel9', 'collectionURL': 'https://access.redhat.com/downloads/content/package-browser/', 'defaultStatus': 'unaffected'}, {'cpes': ['cpe:/a:redhat:ansible_automation_platform:2'], 'vendor': 'Red Hat', 'product': 'Red Hat Ansible Automation Platform 2', 'packageName': 'ansible-automation-platform-27/lightspeed-chatbot-rhel9', 'collectionURL': 'https://access.redhat.com/downloads/content/package-browser/', 'defaultStatus': 'unaffected'}, {'cpes': ['cpe:/a:redhat:openshift_ai'], 'vendor': 'Red Hat', 'product': 'Red Hat OpenShift AI (RHOAI)', 'packageName': 'rhoai/odh-mlflow-rhel9', 'collectionURL': 'https://access.redhat.com/downloads/content/package-browser/', 'defaultStatus': 'unaffected'}]
  • Modified Analysis by [email protected]

    Jun. 30, 2026

    Action Type Old Value New Value
    Added CPE Configuration OR *cpe:2.3:a:redhat:openshift_ai:*:*:*:*:*:*:*:* versions from (including) 2.25 up to (excluding) 2.25.8 *cpe:2.3:a:redhat:openshift_ai:*:*:*:*:*:*:*:* versions from (including) 3.3 up to (excluding) 3.3.4 *cpe:2.3:a:redhat:openshift_ai:3.4:*:*:*:*:*:*:*
    Added Reference Type redhat-SADP: https://access.redhat.com/errata/RHSA-2026:27784 Types: Third Party Advisory
    Added Reference Type redhat-SADP: https://access.redhat.com/errata/RHSA-2026:28960 Types: Third Party Advisory
    Added Reference Type redhat-SADP: https://access.redhat.com/errata/RHSA-2026:30056 Types: Third Party Advisory
    Added Reference Type redhat-SADP: https://access.redhat.com/security/cve/CVE-2026-42271 Types: Third Party Advisory
    Added Reference Type redhat-SADP: https://bugzilla.redhat.com/show_bug.cgi?id=2467924 Types: Third Party Advisory
    Added Reference Type redhat-SADP: https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-42271.json Types: Third Party Advisory
  • CVE Modified by 0b0ca135-0b70-47e7-9f44-1890c2a1c46c

    Jun. 30, 2026

    Action Type Old Value New Value
    Added Affected [{'cpes': ['cpe:/a:redhat:openshift_ai:2.25::el9'], 'vendor': 'Red Hat', 'product': 'Red Hat OpenShift AI 2.25', 'defaultStatus': 'affected'}, {'cpes': ['cpe:/a:redhat:openshift_ai:3.3::el9'], 'vendor': 'Red Hat', 'product': 'Red Hat OpenShift AI 3.3', 'defaultStatus': 'affected'}, {'cpes': ['cpe:/a:redhat:openshift_ai:3.4::el9'], 'vendor': 'Red Hat', 'product': 'Red Hat OpenShift AI 3.4', 'defaultStatus': 'affected'}, {'cpes': ['cpe:/a:redhat:exploit_intelligence:0'], 'vendor': 'Red Hat', 'product': 'Exploit Intelligence', 'defaultStatus': 'unaffected'}, {'cpes': ['cpe:/a:redhat:ansible_automation_platform:2'], 'vendor': 'Red Hat', 'product': 'Red Hat Ansible Automation Platform 2', 'defaultStatus': 'unaffected'}, {'cpes': ['cpe:/a:redhat:openshift_ai'], 'vendor': 'Red Hat', 'product': 'Red Hat OpenShift AI (RHOAI)', 'defaultStatus': 'unaffected'}]
    Added CVSS V3.1 AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
    Added CWE CWE-78
    Added Reference https://access.redhat.com/errata/RHSA-2026:27784
    Added Reference https://access.redhat.com/errata/RHSA-2026:28960
    Added Reference https://access.redhat.com/errata/RHSA-2026:30056
    Added Reference https://access.redhat.com/security/cve/CVE-2026-42271
    Added Reference https://bugzilla.redhat.com/show_bug.cgi?id=2467924
    Added Reference https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-42271.json
  • CVE Modified by [email protected]

    Jun. 17, 2026

    Action Type Old Value New Value
    Added Affected [{'vendor': 'BerriAI', 'product': 'litellm', 'versions': [{'status': 'affected', 'version': '>= 1.74.2, < 1.83.7'}]}]
  • CVE Modified by 134c704f-9b21-4f2e-91b3-4a467353bcc0

    Jun. 17, 2026

    Action Type Old Value New Value
    Added SSVC {'id': 'CVE-2026-42271', 'role': 'CISA Coordinator', 'options': [{'exploitation': 'active'}, {'automatable': 'no'}, {'technicalImpact': 'total'}], 'version': '2.0.3', 'timestamp': '2026-05-08T00:00:00+00:00'}
  • Modified Analysis by [email protected]

    Jun. 09, 2026

    Action Type Old Value New Value
    Added Reference Type CISA-ADP: https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2026-42271 Types: US Government Resource
  • CVE CISA KEV Update by 9119a7d8-5eab-497f-8521-727c672e3725

    Jun. 08, 2026

    Action Type Old Value New Value
    Added Date Added 2026-06-08
    Added Due Date 2026-06-08
    Added Required Action 2026-06-08
    Added Vulnerability Name 2026-06-08
  • CVE Modified by 134c704f-9b21-4f2e-91b3-4a467353bcc0

    Jun. 08, 2026

    Action Type Old Value New Value
    Added Reference https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2026-42271
  • Initial Analysis by [email protected]

    May. 08, 2026

    Action Type Old Value New Value
    Added CVSS V3.1 AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
    Added CPE Configuration OR *cpe:2.3:a:litellm:litellm:*:*:*:*:*:*:*:* versions from (including) 1.74.2 up to (excluding) 1.83.7
    Added Reference Type GitHub, Inc.: https://github.com/BerriAI/litellm/releases/tag/v1.83.7-stable Types: Product, Release Notes
    Added Reference Type GitHub, Inc.: https://github.com/BerriAI/litellm/security/advisories/GHSA-v4p8-mg3p-g94g Types: Mitigation, Patch, Vendor Advisory
  • New CVE Received by [email protected]

    May. 08, 2026

    Action Type Old Value New Value
    Added 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.
    Added CVSS V4.0 AV:N/AC:L/AT:P/PR:L/UI:N/VC:H/VI:H/VA:H/SC:H/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
    Added CWE CWE-78
    Added CWE CWE-77
    Added Reference https://github.com/BerriAI/litellm/releases/tag/v1.83.7-stable
    Added Reference https://github.com/BerriAI/litellm/security/advisories/GHSA-v4p8-mg3p-g94g
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.