LiteLLM: authenticated command execution (CVE-2026-42271) fixed in 1.83.7, scans seen, public exploit code
Published 20/11/2026 21:23
Timeline
2 events over 4 d 7 h
- 16/11/2026 14:11ConfirmedSANS Internet Storm Center+4 d 7 h
- 20/11/2026 21:23Published on WatchtowerPro CISO
In short
Any user with a valid LiteLLM proxy API key can run commands on the proxy host through two MCP test endpoints (CVE-2026-42271); a related Starlette flaw (CVE-2026-48710) may allow chaining without authentication. Versions 1.74.2 up to before 1.83.7 are affected. SANS honeypots saw scans for the endpoint, so update to 1.83.7 and Starlette 1.0.1 now. Shodan recognises at least 156,500 internet-facing LiteLLM servers worldwide, 32,883 of them in the EU (29/11/2026); the real number is likely higher, and how many run an affected version is not yet known.
How bad is it
High. An attacker holding any valid LiteLLM proxy API key, even a low-privilege one, can run their own commands on the server hosting the proxy.
Being exploited - on CISA's known-exploited list since 08/06/2026.
Severity score
The worst of 2 CVEs · CVSS 4.0 from NVD, from github.com, read 29/11/2026.
What an attacker needs
- Internet access to itEnough
- A loginA user account
- A user to clickNo
- Special settingsUsually yes
Red helps the attacker, blue holds them back, grey is not published yet.
If it works, an attacker can
- Run their own code on the system
- Read the data it holds
- Change or delete that data
- Take it offline
Type: remote code execution.
A score is the worst case for the flaw, not a verdict on any one system. How we score · ReconX customers see which of their own systems are affected.
Affected versions
- LiteLLM >= 1.74.2 and < 1.83.7 (POST /mcp-rest/test/connection and POST /mcp-rest/test/tools/list accept a full MCP server configuration; a stdio configuration spawns the supplied command on the proxy host).
- The endpoints were gated only by a valid proxy API key, with no role check, so low-privilege internal-user keys could run arbitrary commands.
- Starlette before 1.0.1 (Host header not validated before rebuilding request.url); FastAPI and other frameworks inherit the flaw if they pull in a vulnerable Starlette.
Fixed in
- 1.83 branch: 1.83.7
What to do now
- Update LiteLLM to 1.83.7 or later. 1.83.7 adds a PROXY_ADMIN role check on both endpoints and a stdio command allowlist (deno, docker, node, npx, python, python3, uvx).
- Update Starlette to 1.0.1 or later; on Debian apply the security updates (bookworm 0.26.1-1+deb12u1, trixie 0.46.1-3+deb13u2).
- Until updated, block POST /mcp-rest/test/connection and POST /mcp-rest/test/tools/list at the reverse proxy or API gateway. This reduces exposure but does not make the server safe.
- Check that dependency constraints (e.g. starlette>=0.49.1,<1) do not allow vulnerable Starlette versions.
- Review who holds proxy API keys and avoid exposing the proxy to the internet.
ReconX customers see the full notice - and their own systems
Our customers are alerted at every phase. Until a patch exists, the ReconX agent watches their servers from the inside for anomalies, and our outside view - the attacker's view - shows which systems to fix first.
In ReconX: the full analysis, 6 open questions, followed up as sources answer and all 4 sources with their dates. And technology matching: which of your systems run LiteLLM, at which version, fixed or not - and what each one needs.
Main sources
[UPDATE] [kritisch] LiteLLM: Mehrere Schwachstellen CERT · Scans for LiteLLM/Starlette (CVE-2026-42271, CVE-2026-48710), (Mon, Nov 16th) Research · CVE Record: CVE-2026-48710 Research