CVE-2026-30623 in LiteLLM: when adding an MCP server means running a command
Advisory explainer. Facts come from the public records and the vendor posts linked in the sources. Last checked: 2026-11-27.
Short answer: CVE-2026-30623 is a command injection in the way LiteLLM created MCP servers with the stdio transport. A holder of a valid LiteLLM API key could make the proxy run an operating system command, through MCP server creation or the preview endpoints. The vendor says the fix is in every release from v1.83.6-nightly, and v1.83.7-stable is the first stable one. The vendor also says the issue needed an authenticated user. The public CVE score says no privileges are required. A related flaw in the MCP test endpoints, CVE-2026-42271, is in the CISA Known Exploited Vulnerabilities catalog, which means CISA has evidence that it has been exploited. The same v1.83.7-stable release fixes both. Read both statements before you decide how urgent it is for you.
What do the public records say?
Short answer: a critical severity, CVSS 3.1 score 9.8, weakness type CWE-77 (command injection), published on 2026-07-16 in the GitHub Advisory Database.
| Field | Value |
|---|---|
| Advisory ID | GHSA-gw7c-8jfv-4mj2 |
| CVE | CVE-2026-30623 |
| CVSS 3.1 vector in the record | AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| Record text | LiteLLM 1.18.10 contains a remote code execution vulnerability in its MCP server creation functionality |
| Fixed, per the vendor | v1.83.6-nightly first, v1.83.7-stable first stable |
Two details do not line up. The record names version 1.18.10, while the vendor's own post describes the fix in the 1.83 series. The record's vector says PR:N (no privileges required), while the vendor states that all affected endpoints sit behind LiteLLM authentication.
What does the vendor say happened?
Short answer: the vendor post of 2026-04-21 says that when an MCP server was added with the stdio transport, the command field was passed to the MCP SDK's StdioServerParameters and run as a subprocess on the proxy host.
From the vendor post:
- OX Security published an advisory on 2026-04-15 about command injection in the stdio transport of Anthropic's MCP SDK.
- The affected surfaces are MCP server creation and update, the
/mcp-rest/test/connectionand/mcp-rest/test/tools/listpreview endpoints, and servers loaded from config or the database at runtime. - The vendor states that an attacker needed a valid LiteLLM API key, and after the patch the
PROXY_ADMINrole. - The process runs the command with the privileges of the LiteLLM process.
LiteLLM also has a separate GitHub advisory about command execution through the MCP stdio test endpoints: GHSA-v4p8-mg3p-g94g, CVE-2026-42271, published 2026-04-25, CVSS 3.1 score 8.8 with the vector AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H. It lists affected versions from 1.74.2 up to but not including 1.83.7, and its vector says low privileges are required. The vendor and the GitHub Advisory Database keep the full list of LiteLLM advisories.
CISA added CVE-2026-42271 to its Known Exploited Vulnerabilities catalog on 2026-06-08. CISA adds a CVE to that catalog when it has reliable evidence that the flaw has been exploited. The entry does not say who was attacked or how. It gave US federal civilian agencies until 2026-06-22 to apply the vendor's fix or stop using the product, and it lists ransomware use as unknown. CVE-2026-30623 was not in the catalog at our check on 2026-11-27.
What did the fix change?
Short answer: four things, according to the vendor post.
- A command allowlist for stdio:
npx,uvx,python,python3,node,dockeranddeno. More can be added with theLITELLM_MCP_STDIO_EXTRA_COMMANDSenvironment variable. - Validation at request parsing for new and updated MCP server configs.
- A second check at runtime, so old database rows and config files are also blocked when the client starts.
- The preview endpoints now require the
PROXY_ADMINrole.
The post warns that stdio MCP servers configured before the upgrade fail to start if the command is not on the allowlist.
What should you check in your own system?
Short answer: version, who can add servers, and what the proxy process can reach.
- Version. Compare the deployed LiteLLM version with v1.83.7-stable.
- Who can create or test MCP servers. Any valid API key could reach the preview endpoints before the fix. List every key and role that can call the creation and test endpoints. Remove the ability from anyone who does not need it.
- Existing servers. Review each stdio MCP server. Which command does it run, from which image, and who approved it?
- Process rights. The command runs with the proxy's privileges. Give the proxy no cloud credentials, no broad network access and no write access it does not need.
- Launchers on the allowlist still run code. The allowlist includes
python,python3,node,dockeranddeno, andLITELLM_MCP_STDIO_EXTRA_COMMANDSextends it. Anyone who can register a server with one of those launchers can still run code of their choice, so keep admin rights and that variable tightly controlled. - Regression test. In a test environment, try to add a stdio MCP server whose command is a binary that is not on the allowlist, as a non-admin and as an admin. Assert that both are rejected. Also try the preview endpoints as a non-admin and assert a 403. Keep the test in CI.
The same principle applies to any gateway or agent platform that lets users register tools. See agent tool permissions and MCP server review.
Is this the same as the compromised LiteLLM releases of 2026?
Short answer: no. CVE-2026-30623 is a flaw in LiteLLM's own code. In March and October 2026, attackers published LiteLLM releases that carried a credential stealer. For October, the vendor says the release was built from a lookalike repository and not from the tagged source. For March, the public report says the two versions reached PyPI with no matching GitHub release, and the repository has no tags for them. So a version check against the CVE fix does not tell you whether you ever installed one of them.
The vendor describes the two incidents in its own posts, and the public reports in the LiteLLM repository add the file details:
| March 2026 | October 2026 | |
|---|---|---|
| Releases | litellm 1.82.7 and 1.82.8 on PyPI |
litellm 1.107.0 on PyPI, and the Docker tags v1.107.0, latest, main-latest and main-stable on Docker Hub and GHCR |
| When | 2026-03-24, about 40 minutes on PyPI before PyPI quarantined them | 2026-10-21, on PyPI from 11:39 to 13:23 UTC, the Docker tags from 11:46 to 14:20 UTC |
| How, per the vendor | a compromised Trivy scanner dependency in CI could read static release credentials | stolen GitHub CLI tokens were used to run the release workflow against a lookalike repository, Berri-AI/litellm |
| What runs | 1.82.7 on import litellm.proxy, 1.82.8 also through a litellm_init.pth file at every Python start |
cook.pth, cook.py and sitecustomize.py, at every Python start |
First find out whether you ran one of them:
- Did you install one? Search lock files, image build logs and package caches for 1.82.7, 1.82.8 and 1.107.0.
- Which Docker image ran? Look up the digest of any image pulled from those tags on 2026-10-21 and run since, not only its tag. The vendor says the compromised 1.107.0 images carry a valid signature from its previous signing key, so compare digests.
If you did, start the cleanup from the shell, because any Python start in an affected environment runs the payload again. For 1.107.0 the remediation says not to start with pip install:
- Remove the files. Delete
cook.pth,cook.pyandsitecustomize.py, and their.pycfiles under__pycache__, from every affected site-packages. - Stop the payload. Stop the detached Python process that holds
/tmp/remote_code_loader.lock, then rebuild the image or virtual environment from scratch. - Treat 1.82.8 the same way. Its
litellm_init.pthalso runs at every Python start, and the March report says to check site-packages for it. In our reading the same order applies: remove it from the shell, then rebuild.
Then deal with what may have leaked:
- Rotate what the host could reach. If 1.107.0 ran on a host with outbound internet, the report says to assume the data left. Its list: the instance or task IAM role, every provider key stored in the proxy database, the master and virtual keys, the
DATABASE_URLpassword, and any secret in the environment of a process on the host. For 1.82.7 and 1.82.8, the March report says to rotate every credential that sat in environment variables or config files on that machine. - Look for use of the stolen credentials. For 1.107.0 the report says to check CloudTrail for
GetCallerIdentitycalls from the instance role around install time, and then for use of that role's credentials from outside your infrastructure.
Both incidents come back to process rights. A LiteLLM proxy often holds the upstream provider keys, so code that runs inside its process can reach the keys it holds, whether it got there through a flaw like this CVE or through a poisoned release.
Sources
- GitHub Advisory Database, GHSA-gw7c-8jfv-4mj2. Published 2026-07-16.
- National Vulnerability Database, CVE-2026-30623.
- LiteLLM, Security Update: CVE-2026-30623. Published 2026-04-21.
- OX Security, MCP Supply Chain Advisory. Published 2026-04-15.
- GitHub Advisory Database, GHSA-v4p8-mg3p-g94g.
- CISA, Known Exploited Vulnerabilities catalog, entry for CVE-2026-42271. Added 2026-06-08, due date 2026-06-22. Checked against the catalog feed of 2026-11-25.
- LiteLLM, Security Townhall Updates, on the March releases. Published 2026-03-27.
- Public report, issue #24518 in the LiteLLM repository, on 1.82.7 and 1.82.8. Opened 2026-03-24.
- LiteLLM, incident summary for v1.107.0. Published 2026-10-21, updated up to 2026-11-15.
- Public report, issue #47826 in the LiteLLM repository, with file hashes and the remediation steps for 1.107.0. Opened 2026-10-21.
We re-check this page against these records when they are updated. If you see a difference, write to contact@arviser.com.
Weekly advisories · digest by email planned
Hear when the weekly AI security digest starts
Every week we publish a plain-language digest of public advisories for AI frameworks, gateways and MCP servers, with the real dates and what to check for each. The email digest is planned. Leave your address and you get one message when it starts, with a link to confirm. Until then you get nothing else from this form. You can also follow the Atom feed.
Saved
You will get one email when the digest starts, with a link to confirm. Nothing else is sent before that. To remove your address, write to contact@arviser.com.
Next: Agent tool permissions and MCP · Lethal trifecta · Twelve security tests · AI Security Review · Request scope