Home / BerriAI / litellm / CVE-2026-42271
CVE-2026-42271: is it exploited, and which versions of BerriAI litellm are affected and fixed?
CVE-2026-42271 is a command injection vulnerability in BerriAI litellm, and it is exploited in the wild: CISA added it to its Known Exploited Vulnerabilities catalog on June 8, 2026, with a federal due date of June 22, 2026. Affected: litellm from 1.74.2 before 1.83.7 (GitHub advisory GHSA-v4p8-mg3p-g94g). Fixed in 1.83.7 (GitHub advisory GHSA-v4p8-mg3p-g94g). Severity: High (8.7, CVSS 4.0, from GitHub_M).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 12:08 UTC, CVE record November 19, 2026, 07:07 UTC and NVD November 19, 2026, 07:11 UTC.
What is CVE-2026-42271?
LiteLLM: Authenticated command execution via MCP stdio test endpoints
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.
From the CVE record by GitHub_M, last updated July 15, 2026, 00:57 UTC.
Which versions are affected, and which fix it?
| Vendor | Product | Affected | Fixed or not affected from |
|---|---|---|---|
| BerriAI | litellm | >= 1.74.2, < 1.83.7 |
As the CVE record by GitHub_M states it, last updated July 15, 2026. Version ranges are the CNA's; a version the record calls not affected is usually the fix.
Which packages are affected, and in which version is each fixed?
| Ecosystem | Package | Affected | Fixed in | Advisory |
|---|---|---|---|---|
| PyPI | litellm | >= 1.74.2, < 1.83.7 | 1.83.7 | GHSA-v4p8-mg3p-g94g |
GitHub Advisory Database, reviewed advisories (CC BY 4.0); advisory updated June 9, 2026. Summary: LiteLLM: Authenticated command execution via MCP stdio test endpoints.
Which products and versions does the NVD list as affected?
| Vendor | Product | Versions | Type |
|---|---|---|---|
| litellm | litellm | from 1.74.2 before 1.83.7 | application |
| redhat | openshift ai | from 2.25 before 2.25.8 | application |
| redhat | openshift ai | from 3.3 before 3.3.4 | application |
| redhat | openshift ai | 3.4 | application |
NVD analysis (status Analyzed), last modified October 26, 2026, 20:10 UTC.
How severe is CVE-2026-42271?
| Score | Version | Vector | Source |
|---|---|---|---|
| High 8.7 | CVSS 4.0 | CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:H/VI:H/VA:H/SC:H/SI:N/SA:N | GitHub_M |
| High 8.8 | CVSS 3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H | redhat-SADP |
| High 8.8 | CVSS 3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H | NVD |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2026-42271 exploited in the wild?
- CISA KEV
- Listed as BerriAI LiteLLM Command Injection Vulnerability, added June 8, 2026; federal agencies must act by June 22, 2026
- 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.
- Ransomware use
- Unknown
- CISA's summary
- 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.
- CISA SSVC
- Exploitation: active; automatable: no; technical impact: total (CISA ADP, May 8, 2026)
- EPSS
- 94.5% probability of exploitation activity in the next 30 days, percentile 99.9 (FIRST EPSS, scores of December 2, 2026)
What kind of flaw is it?
- CWE-77 Improper Neutralization of Special Elements used in a Command
- CWE-78 Improper Neutralization of Special Elements used in an OS Command
Where are the vendor advisories and references?
- https://github.com/BerriAI/litellm/security/advisories/GHSA-v4p8-mg3p-g94g x_refsource_CONFIRM
- https://github.com/BerriAI/litellm/releases/tag/v1.83.7-stable x_refsource_MISC
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2026-42271 government-resource
- https://access.redhat.com/security/cve/CVE-2026-42271 vdb-entry, x_refsource_REDHAT
- RHBZ#2467924 issue-tracking, x_refsource_REDHAT
- https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-42271.json x_sadp-csaf-vex
- https://access.redhat.com/errata/RHSA-2026:28960 vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2026:30056 vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2026:27784 vendor-advisory, x_refsource_REDHAT
When was it published, and where is the official record?
- Reserved
- April 26, 2026
- Published
- May 8, 2026, 03:35 UTC
- CVE record updated
- July 15, 2026, 00:57 UTC by GitHub_M
- NVD
- Analyzed, last modified October 26, 2026, 20:10 UTC
- Last checked
- CVE list November 19, 2026, 07:07 UTC; NVD November 19, 2026, 07:11 UTC; KEV December 3, 2026, 12:08 UTC; EPSS December 2, 2026
- Official record
- cve.org · NVD · CISA KEV
What other CVEs affect litellm?
- Jul 8, 2026CVE-2026-59822 BerriAI litellm: authentication bypass (improper authentication) exploited
- May 8, 2026CVE-2026-42208 BerriAI litellm: SQL injection exploited
- Apr 10, 2026CVE-2026-40217 BerriAI LiteLLM: unprotected alternate channel exploited
- Mar 23, 2026CVE-2026-33634 aquasecurity setup-trivy: embedded Malicious Code exploited
- Nov 23, 2026CVE-2026-135287 BerriAI litellm: external Control of System or Configuration Setting
- Oct 22, 2026CVE-2026-114612 BerriAI litellm: privilege escalation (improper privilege management)
- Oct 11, 2026CVE-2026-108575 BerriAI LiteLLM: improper authorization
- Oct 11, 2026CVE-2026-108574 BerriAI LiteLLM: authorization bypass through a user-controlled key (IDOR)
Questions about CVE-2026-42271
Is CVE-2026-42271 exploited in the wild?
Yes. CISA added CVE-2026-42271 to its Known Exploited Vulnerabilities catalog on June 8, 2026 and set federal agencies a due date of June 22, 2026. FIRST's EPSS gives it a 94.5% chance of exploitation activity in the next 30 days (scores of December 2, 2026).
Which versions of BerriAI litellm are affected by CVE-2026-42271?
litellm from 1.74.2 before 1.83.7, per the GitHub advisory GHSA-v4p8-mg3p-g94g. The tables above give every range the sources list.
Which version fixes CVE-2026-42271?
1.83.7, per the GitHub advisory GHSA-v4p8-mg3p-g94g. Check the vendor's advisory before you rely on it.
How severe is CVE-2026-42271?
High (8.7, CVSS 4.0, from GitHub_M). The severity table above shows each score with its source.
Where is the official record of CVE-2026-42271?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov; CISA's entry is in its Known Exploited Vulnerabilities catalog. For a fix, the vendor's own advisory is the one to follow.