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 :

June 9, 2026, 1:22 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 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 3.1 HIGH [email protected]
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 10 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://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).

Standalone Python 3 proof-of-concept exploits for recent CVEs - each with a write-up and a screenshot of a real run. For authorized security testing and education only.

cve exploit penetration-testing poc proof-of-concept python security-research vulnerability

Python C

Updated: 20 hours, 32 minutes ago
0 stars 0 fork 0 watcher
Born at : June 23, 2026, 8:55 a.m. This repo has been linked 37 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: 2 days, 12 hours 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: 4 days, 18 hours ago
2 stars 0 fork 0 watcher
Born at : June 12, 2026, 10:20 a.m. This repo has been linked 2 different CVEs too.

每日CVE漏洞汇总

Updated: 2 weeks, 1 day 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: 2 weeks, 1 day 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: 1 month 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.

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

mcp mcp-security mcp-cve

Updated: 12 hours, 30 minutes ago
14 stars 4 fork 4 watcher
Born at : May 7, 2026, 3:47 p.m. This repo has been linked 249 different CVEs too.

Cathedral-Grade Security for AI Agents. Attack vectors updated daily. Local-first, zero API cost. MIT licensed.

Python

Updated: 3 weeks, 1 day ago
5 stars 0 fork 0 watcher
Born at : March 13, 2026, 5:10 p.m. This repo has been linked 114 different CVEs too.

None

Updated: 2 weeks, 1 day ago
0 stars 0 fork 0 watcher
Born at : Jan. 14, 2023, 11:38 a.m. This repo has been linked 1 different CVEs too.

📡 PoC auto collect from GitHub. ⚠️ Be careful Malware.

security cve exploit poc vulnerability

Updated: 2 weeks, 3 days ago
7810 stars 1261 fork 1261 watcher
Born at : Dec. 8, 2019, 1:03 p.m. This repo has been linked 718 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 week, 2 days 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 (2 weeks, 1 day 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 (2 weeks, 1 day 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.

  • 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.