LiteLLM sandbox escape listed by CISA as exploited (CVE-2026-40217): check your proxy version and who holds the admin key
A flaw in the custom-code guardrail test endpoint of the LiteLLM proxy lets someone with an admin credential run code on the server, as root in the default Docker image. CISA added it to its Known Exploited Vulnerabilities catalog on 18 November 2026.
How urgent
Plan this week
Who is affected
LiteLLM proxy from 1.81.8 up to the fix, according to the GitHub advisory
What to do
Update to a current release (1.106.9, 1.108.6, 1.109.1 or later, which also covers newer advisories), protect the admin and master keys, and block POST /guardrails/test_custom_code if you cannot update
Published 3 Dec 2026 · Sources last checked 3 Dec 2026No. 160 / 168
What happened
The LiteLLM proxy, a gateway many teams put in front of their AI model providers, has an endpoint for testing custom guardrail code: POST /guardrails/test_custom_code. The restrictions around that code could be bypassed, so Python sent there could run commands on the server, as root in the default Docker image. X41 D-Sec published the finding on 8 April 2026.
On 18 November 2026 CISA added CVE-2026-40217 to its Known Exploited VulnerabilitiesVulnerability A weakness in software, a setting or a process that an attacker could use to get in or do harm. Tap again to open the glossary catalog, which means it has evidence of real-world exploitation. The entry does not say who is exploiting it or how. We are covering it late.
Who has to act
Anyone running an affected LiteLLM proxy. According to the GitHub advisory, reaching the endpoint requires a proxy-admin credential in default configurations, so a leaked or shared admin or master key matters a lot. NVD lists a score of 8.8 (high).
The fixed version: the advisory says two things
The GitHub advisory's version field says the fix is 1.83.10, and it links that release; its text says "fixed in 1.83.11" and to upgrade to 1.83.11 or later. You do not need to settle it: LiteLLM published newer advisories since then, and the 12 November one points to 1.106.9, 1.108.6, 1.109.1 or later. Go there.
What to do
- Update to a current release. Avoid 1.107.0, the poisoned release of October.
- If you cannot update yet, block
POST /guardrails/test_custom_codeat your reverse proxy or API gateway. - Check who holds the master and admin keys, and rotate them if they have been shared or exposed.
- Keep the admin interface off untrusted networks and do not run the container as root.
- Our advice: if the proxy was exposed, look in your logs for requests to that endpoint and consider rotating the provider keys the proxy holds.
What we could not confirm
We have not found details about the exploitation CISA refers to. We did not test the flaw.
Related
Glossary: vulnerability, patchPatch (security update) A fix released by the maker of a piece of software to close a flaw or a bug. Tap again to open the glossary, API key.
Keep reading
More stories on the same topic or from the same area.
- GPUStack flaw lets anyone become admin and is already being exploited: CISA lists CVE-2026-102895. Upgrade to 2.2.0 or laterAct now 11 Nov 2026
- RabbitMQ and Erlang fix two critical flaws: anyone could mint an admin token on RabbitMQ consoles that use OAuth2, and Erlang TLS 1.2 clients could talk to a fake server; update RabbitMQ to 4.4.1, 4.3.8 or 4.2.13 and Erlang/OTPPlan this week 30 Nov 2026
- Ghostscript CVE-2026-125396 lets a malicious PostScript or PDF file escape its sandbox and run code: update to 10.08.0 if your servers process uploaded documentsPlan this week 23 Nov 2026
Comments
No account needed. Add a nickname if you like, or leave it empty to comment anonymously. Comments are reviewed before they appear. Links are not allowed.
We store your comment, your nickname and a scrambled form of your connection that we use only to limit spam. We do not store your IP address or set cookies. Cloudflare Turnstile checks that you are not a bot.
Sources and verification
- GitHub Advisory GHSA-wxxx-gvqv-xp7p, "LiteLLM has a sandbox escape in custom-code guardrail" (published 11 May 2026; read 3 Dec 2026) (opens in a new tab)
- X41 D-Sec, advisory X41-2026-001, "Guardrail Sandbox Escape in LiteLLM" (8 Apr 2026; read 3 Dec 2026) (opens in a new tab)
- CISA Known Exploited Vulnerabilities catalog, CVE-2026-40217 (added 18 Nov 2026; read 3 Dec 2026) (opens in a new tab)
- NVD, CVE-2026-40217 (read 3 Dec 2026) (opens in a new tab)
- LiteLLM security advisory GHSA-2rwg-2wh4-7c4f, secret exfiltration via Azure Entra parameters (12 Nov 2026; read 3 Dec 2026) (opens in a new tab)
We use primary sources first and say when we rely on a news report. Dates are the day we last checked each source.
Spotted a mistake? Email [email protected] and we will correct it and note the change.