Skip to content
FlawDB
Sign in
Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

CVE-2026-42271

HIGH 8.7ExploitedEPSS 95%

LiteLLM: Authenticated command execution via MCP stdio test endpoints

Also known as GHSA-v4p8-mg3p-g94g, PYSEC-2026-2599

Mitigation

  • Upgrade litellm to 1.83.7 or later.

Who should check

  • Projects that depend on PyPI package litellm (>= 1.74.2, < 1.83.7)
  • Anyone running BerriAI litellm >= 1.74.2, < 1.83.7

Vulnerability facts

Affected
litellm >= 1.74.2, < 1.83.7
Fixed in
1.83.7
Exploited in the wild
Yes: in CISA KEV since 2026-06-08; federal due date 2026-06-22
Public exploit / PoC
None known
Remote exploitation
Remote, login needed
CVSS
8.7 (v4.0, CNA)CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:H/VI:H/VA:H/SC:H/SI:N/SA:NOpen in CVSS calculator
Show all 11 CVSS metrics
  • Attack vector: Network
  • Attack complexity: Low
  • Attack requirements: Present
  • Privileges required: Low
  • User interaction: None
  • Confidentiality impact: High
  • Integrity impact: High
  • Availability impact: High
  • Confidentiality impact on other systems: High
  • Integrity impact on other systems: None
  • Availability impact on other systems: None
EPSS
7.31% chance of exploitation in 30 days (percentile 95, 2026-11-26)
CWE
CWE-77, CWE-78
Published
Modified

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.

Affected and fixed versions

Package / productAffectedFixedSource
PyPI litellm>= 1.74.2, < 1.83.71.83.7osv
BerriAI litellm>= 1.74.2, < 1.83.7—cvelist

Timeline

  1. 2026-04-25 Published
  2. 2026-06-08 Added to CISA KEV (exploited in the wild)
  3. 2026-06-22 CISA remediation due date for US federal agencies
  4. 2026-10-26 Last modified

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

Check whether anything I run is affected by CVE-2026-42271. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-42271.md
Affected: litellm >= 1.74.2, < 1.83.7
Fixed in: 1.83.7

Steps:
1. Search this machine and project for litellm (PyPI), BerriAI litellm: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.

References

FAQ

Is CVE-2026-42271 being exploited?

Yes. CISA lists CVE-2026-42271 in its Known Exploited Vulnerabilities catalog since 2026-06-08, which means attacks have been seen. No public exploit code is known. EPSS estimates a 7.31% chance of exploitation in the next 30 days (as of 2026-11-26).

How serious is CVE-2026-42271?

High: CVSS 8.7 (v4.0, scored by CNA). Remote, login needed.

Which versions are affected by CVE-2026-42271?

litellm >= 1.74.2, < 1.83.7.

Is there a fix for CVE-2026-42271?

Yes. Fixed in 1.83.7. Upgrade litellm to 1.83.7 or later.

How do I check if I'm affected by CVE-2026-42271?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

Sponsors