——
HighVULNERABILITIES

CVE-2026-40217: patch LiteLLM before the KEV deadline

CISA added CVE-2026-40217, an actively exploited LiteLLM Proxy remote-code-execution flaw, to KEV on 18 November 2026. Confirm your deployed version and exposure, upgrade to 1.83.10 or later, and contain the affected endpoint without attempting exploitation.

CISA added CVE-2026-40217, an actively exploited LiteLLM Proxy remote-code-execution flaw, to KEV on 18 November 2026. Confirm your deployed version and exposure, upgrade to 1.83.10 or later, and contain the affected endpoint without attempting exploitation.

CVE-2026-40217LiteLLMKEVAI securitypatching

Status (checked 20 November 2026): Confirmed. CVE-2026-40217 was published on 10 April 2026 and added to CISA's Known Exploited Vulnerabilities (KEV) Catalogue on 18 November 2026. CISA's SSVC assessment dated 19 November 2026 records active exploitation. Do not describe this as a newly published CVE: the operational change is the KEV listing and active-exploitation assessment.

Field Confirmed information
CVE CVE-2026-40217
Product BerriAI LiteLLM / LiteLLM Proxy
Affected versions LiteLLM 1.81.8 through 1.83.9; fixed in 1.83.10 according to the NVD configuration data
Severity CVSS 3.1 8.8 High — AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Exploitation Confirmed active by CISA SSVC, 19 November 2026
CISA KEV Yes, added 18 November 2026; US federal due date 2 December 2026
EPSS No EPSS value is asserted here; check FIRST EPSS on the day of your change
Author assessment Urgent where LiteLLM Proxy is reachable by untrusted or low-privilege users; treat as an incident lead if logs show use of the affected route

What this is — and what is not confirmed

LiteLLM through 8 April 2026 can permit remote code execution through bytecode rewriting at the Proxy endpoint /guardrails/test_custom_code. The NVD record describes a low-privilege network attack; it does not establish that every LiteLLM deployment is exposed, that anonymous access is sufficient, or that a particular environment has been compromised.

CISA lists the flaw in KEV and its 19 November SSVC entry says exploitation is active. That is the evidence for prioritising this work. It is not proof that an individual deployment was targeted. Do not send test payloads to the endpoint: version, routing and logs are safer evidence.

Are you affected?

You need all three facts: a LiteLLM Proxy deployment, an affected package version, and a route that can be reached by a principal outside the trusted administrative boundary.

On the host or in the image build context, record the installed package version:

python -m pip show litellm
# or, for a pinned Python environment:
python -m pip freeze | grep -i '^litellm=='

Expected result: a version between 1.81.8 and 1.83.9 is in the documented affected range. 1.83.10 or later is outside that range. A missing package proves only that this Python environment is not the one running LiteLLM.

For containers, inspect the deployed image rather than a developer workstation:

docker exec <litellm-container> python -m pip show litellm
docker inspect <litellm-container> --format '{{.Config.Image}}'

Then review the reverse proxy, ingress or API gateway configuration. Determine whether /guardrails/test_custom_code is routed to LiteLLM and which identity controls can invoke it. Preserve access logs covering at least the period since the KEV addition. Look for the route name, unexpected authenticated accounts, unusual request sizes, and child-process or container-runtime alerts. Those observations are leads, not proof of exploitation.

Safe external check: NetTools.tech HTTP Header Check may be used only against a hostname you own. Input: the public LiteLLM Proxy URL. Result: it can show whether a public HTTP service responds and reveal proxy headers. Limit: it cannot prove the affected route exists, authenticate safely, identify the LiteLLM version, or determine compromise. Do not use it to probe the vulnerable path.

Patch the documented fix

Prerequisites: a tested backup or image rollback point; maintenance approval; the deployment manifest or requirements file; and a way to health-check the proxy. Take a copy of the currently deployed image digest and configuration before changing anything.

For a Python deployment, pin the fixed minimum and rebuild:

python -m pip install --upgrade 'litellm>=1.83.10'
python -m pip show litellm

For a container build, change the dependency pin in the controlled build input, rebuild through your normal CI/CD pipeline, scan the resulting image, and deploy it through the approved rollout process. Do not patch a running production container as the lasting remedy.

Expected result: the deployed runtime reports 1.83.10 or a later supported version, and the service health endpoint and a normal, authorised model request succeed.

Validate after rollout:

docker exec <litellm-container> python -c "import litellm; print(litellm.__version__)"
curl -fsS https://<your-proxy>/health/liveliness

Replace the placeholder only with your own service. The first command validates the runtime, not merely the build file. The second should return the deployment's documented healthy response. Review error rate, latency and authentication failures during the canary window.

Rollback: if the upgraded proxy fails its defined health or functional checks, roll back to the previously recorded image digest or release through the same deployment tool. Keep the temporary containment below in place while investigating; do not re-expose the affected route just to restore convenience.

Temporary containment while patching

If an immediate upgrade is not possible, remove external reachability to /guardrails/test_custom_code at the reverse proxy or gateway, or restrict it to a tightly controlled administrator network and identity group. Use the product and proxy configuration your team already supports; test the rule with an authorised account and verify that normal model traffic remains available.

A safe validation is to review the effective routing configuration and gateway access logs, then confirm that a standard non-guardrails proxy request works. Do not validate containment by attempting bytecode rewriting or reproducing the vulnerability.

Containment reduces exposure but is not a substitute for the fixed release. Revisit the exception before CISA's 2 December 2026 KEV due date.

Evidence and incident handling

Preserve proxy access logs, gateway logs, container orchestration events and relevant identity-provider records before rotating or rebuilding. If you find unexpected use of the route, unexplained processes in the proxy container, or suspicious credential access, isolate the affected workload according to your incident process and investigate before destroying evidence. CISA's KEV entry confirms active exploitation in the wider ecosystem; it does not provide indicators of compromise for this CVE.

Timeline

  • 10 April 2026: CVE-2026-40217 published.
  • 18 November 2026: CISA added the vulnerability to KEV.
  • 19 November 2026: CISA SSVC data recorded active exploitation.
  • 20 November 2026: this article checked the NVD record, CISA KEV catalogue and vendor/upstream advisory material.

Izmaiņu žurnāls

  • 20 November 2026 — R1: Initial publication. KEV and SSVC status verified; publication date recorded as 10 April 2026.

References

  1. NVD: CVE-2026-40217
  2. CISA Known Exploited Vulnerabilities Catalog
  3. CISA KEV entry for CVE-2026-40217
  4. LiteLLM security advisories
  5. X41 advisory X41-2026-001: LiteLLM
  6. Red Hat CVE record