Cyber · Background
CISA adds LiteLLM flaw to its exploited-vulnerability catalog — check AI gateway versions and access
Edited by WF LABs · Published
Source date
CISA added LiteLLM CVE-2026-40217 to KEV on 18 November 2026. Review affected versions, administrator access, the developer’s patch guidance and the limits of the available evidence.

Summary
On 18 November 2026, CISA added LiteLLM CVE-2026-40217 to its Known Exploited Vulnerabilities catalog, indicating evidence of exploitation. LiteLLM can serve as a central proxy for AI model requests.
CISA describes remote code execution through bytecode modification at /guardrails/test_custom_code. The developer’s advisory, published on 7 May 2026, lists versions from 1.81.8 up to, but excluding, 1.83.10 as affected. In the default configuration, exploiting the endpoint requires proxy-admin credentials.
What the primary sources say
CISA added CVE-2026-40217, classified as an Unprotected Alternate Channel weakness (CWE-420), on 18 November. Its remediation deadline for US federal civilian agencies is 2 December 2026. The catalog records ransomware campaign use as Unknown.
CISA describes arbitrary code execution through bytecode modification at /guardrails/test_custom_code.
GitHub advisory GHSA-wxxx-gvqv-xp7p describes a bytecode-level escape from the custom sandbox used for custom-code guardrails. Code runs in the proxy process, which runs as root in the default Docker image.
The default configuration requires proxy-admin credentials. The advisory rates the vulnerability Moderate, with a CVSS v4 score of 5.9.
The affected-version field says >= 1.81.8, < 1.83.10, while the narrative says the fix arrived in 1.83.11 with RestrictedPython. The patched-version field says >= 1.83.10. Upgrading to 1.83.11 or later accommodates both statements. Check the current advisory before changing production.
If an immediate upgrade is unavailable, the advisory recommends blocking POST /guardrails/test_custom_code at the reverse proxy or API gateway.
Why a Moderate flaw appears in KEV
CISA does not identify the attackers, targets or methods used in the observed incidents. The available evidence establishes that exploitation occurred, while the original advisory gives a score of 5.9 and an administrator-access requirement. It does not establish unauthenticated access or easier exploitation than the advisory describes.
WF LABs editorial analysis
A central AI gateway may hold credentials for several model providers. Combined with a default image running as root, compromised administrator access can have significant consequences. Review internet exposure, reused passwords and where administrator keys are stored.
CVSS describes technical severity, while KEV indicates evidence of exploitation. Our general recommendation is to use both when prioritizing patches. This prioritization advice is editorial analysis.
The 2 December deadline applies to the relevant US federal agencies. It is a reference point, rather than a binding deadline for organizations in Thailand.
What readers should check next
Identify whether LiteLLM proxy is deployed and check its actual version against the affected range. Consult the developer’s current advisory and plan an upgrade to 1.83.11 or later.
Review internet exposure of the proxy and administrator endpoints. If patching is delayed, restrict access through VPN or IP allowlists and block POST /guardrails/test_custom_code as recommended in the advisory.
Review who holds administrator keys and upstream model-provider keys. If access is suspected, rotate the keys and inspect endpoint logs.
Check whether containers run as root and consider a non-privileged runtime user.
Original sources
- CISA Known Exploited Vulnerabilities Catalog — announced 18 November 2026 (opens in a new tab)
- BerriAI LiteLLM security advisory GHSA-wxxx-gvqv-xp7p — announced 7 May 2026 (opens in a new tab)
Summarised from the original announcement; our recommendations are kept separate in The White Forces view.