Free and open · new CVEs checked every 20 minutesStatusRSSOpen dataContact

CVE-2026-42271: BerriAI LiteLLM Command Injection Vulnerability

91
Patch now
HIGH 8.8EXPLOITEDWATCHLISTUPGRADEUPGRADE

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.

Risk facts

CVSS score8.8 (High)
Attack vectorNetwork (remote)
Attack complexityLow
Privileges neededLow
User interactionNone
EPSS exploit chance91.4% (top 1%)
CISA exploited listYes, fix due 2026-06-22
WeaknessCWE-77, CWE-78
Published2026-05-08
Last modified2026-10-26
Publisher (CNA): GitHub, Inc. · Vendor: litellm · redhat

Share: LinkedIn · X · Reddit

Last updated 2026-10-26 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score

Am I affected?

Timeline

litellm litellm UPGRADE
Affected: >= 1.74.2 and < 1.83.7
Fixed in: 1.83.7
Safe to downgrade to: a release before 1.74.2
1. Check installed version
apt-cache policy litellm || rpm -q litellm || litellm --version
2. UPGRADE to 1.83.7 (Debian / Ubuntu)
sudo apt update && sudo apt install --only-upgrade litellm
2. UPGRADE (RHEL / Amazon Linux / Fedora)
sudo dnf upgrade litellm
Note
Distros often backport fixes without changing the version number. Confirm with the distro advisory or changelog.
3. If no update is available yet, DOWNGRADE to a release before 1.74.2 (Debian / Ubuntu)
apt-cache madison litellm sudo apt install litellm=<VERSION_BEFORE_1.74.2> sudo apt-mark hold litellm
3. If no update is available yet, DOWNGRADE (RHEL / Amazon Linux / Fedora)
dnf --showduplicates list litellm sudo dnf downgrade litellm-<VERSION_BEFORE_1.74.2> sudo dnf versionlock add litellm
Downgrade risk
Downgrading can break dependent software and may reopen older bugs. Read the distro advisory first and test on a non-production host.
After downgrade
Restart the service, and keep the package held until a fixed release ships.
redhat openshift ai UPGRADE
Affected: >= 2.25 and < 2.25.8 · >= 3.3 and < 3.3.4 · 3.4
Fixed in: 2.25.8, 3.3.4
Safe to downgrade to: a release before 2.25
1. Check installed version
apt-cache policy openshift-ai || rpm -q openshift-ai || openshift-ai --version
2. UPGRADE to 2.25.8 (Debian / Ubuntu)
sudo apt update && sudo apt install --only-upgrade openshift-ai
2. UPGRADE (RHEL / Amazon Linux / Fedora)
sudo dnf upgrade openshift-ai
Note
Distros often backport fixes without changing the version number. Confirm with the distro advisory or changelog.
3. If no update is available yet, DOWNGRADE to a release before 2.25 (Debian / Ubuntu)
apt-cache madison openshift-ai sudo apt install openshift-ai=<VERSION_BEFORE_2.25> sudo apt-mark hold openshift-ai
3. If no update is available yet, DOWNGRADE (RHEL / Amazon Linux / Fedora)
dnf --showduplicates list openshift-ai sudo dnf downgrade openshift-ai-<VERSION_BEFORE_2.25> sudo dnf versionlock add openshift-ai
Downgrade risk
Downgrading can break dependent software and may reopen older bugs. Read the distro advisory first and test on a non-production host.
After downgrade
Restart the service, and keep the package held until a fixed release ships.

Exact fixes by distribution

Python (pip) · litellm · FIXED · 1.83.7 · vulnerable: >= 1.74.2, < 1.83.7 · source
pip install --upgrade "litellm>=1.83.7" pip show litellm
Fedora 46 · ddnet · FIXED · 20.2-1.fc46 · FEDORA-2026-6991b4ab14 · source
sudo dnf upgrade --advisory=FEDORA-2026-6991b4ab14
Fedora ELN · libplacebo · FIXED · 7.360.1-5.eln159 · FEDORA-2026-92226f221e · source
sudo dnf upgrade --advisory=FEDORA-2026-92226f221e

Public exploits and detection

Public code exists for this CVE. Treat unpatched systems as at risk, and only run PoCs in a lab.

Advisories and coverage

Research and news

Verify at the official source NVD · CVE Program · CISA KEV catalog · Report a problem with this page
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

References

← Back to latest CVEs

Get the weekly exploited-CVE digest by emailThe CVEs being attacked this week and how to fix them. No spam, unsubscribe any time.