$2 / month

Comment and reply across TML.

Start or manage membership

Most pulsed

Latest from other desks

tml.the modern leap
Tech / Cybersecurity

Exploited LiteLLM Flaw Lets Attackers Run Code as Root

CISA added a code-execution flaw in BerriAI's LiteLLM proxy to its exploited-vulnerabilities catalog on November 18, 2026, with a federal remediation deadline of December 2. The flaw escapes a guardrails test endpoint's sandbox inside a process that runs as root and holds a company's AI provider keys, and the patch has been available since April.

TML Tech DeskDec 1, 9:44 AM ET · 2 min read

Edited and fact-checked by Stephen Sprague

A server room of the kind that hosts self-hosted AI gateways like LiteLLM, the BerriAI proxy carrying the exploited CVE-2026-40217 flaw. Photo by Indrajit Das, CC BY-SA 3.0, via Wikimedia Commons.
Summary

An exploited flaw in the LiteLLM AI proxy, CVE-2026-40217, lets escaped test code run as root beside a company's model API keys, and federal agencies must remediate by December 2, 2026.

Tap a passage. React to the part that matters.

A test endpoint in LiteLLM's guardrails feature runs whatever Python an admin pastes into it, and the sandbox around that code doesn't hold.

BerriAI's own advisory describes the failure plainly. The POST /guardrails/test_custom_code endpoint executes user-supplied Python inside what the company calls a hand-rolled sandbox, and the sandbox can be escaped with bytecode-level techniques. Escaped code runs inside the proxy process itself, with root privileges in the default Docker image.

The process an attacker lands in is the wrong one to lose. A LiteLLM proxy sits in front of a company's AI providers and holds the API keys for every model behind it, so code execution inside the proxy puts those keys within reach. The flaw, tracked as CVE-2026-40217, affects versions from 1.81.8 up to the fix, and reaching the endpoint requires a proxy-admin credential in default configurations.

BerriAI patched the hole on April 27, 2026 in version 1.83.10, and its GitHub advisory GHSA-wxxx-gvqv-xp7p followed. The scores attached to the flaw still disagree, with MITRE rating it 8.8 out of 10 while BerriAI calls it Moderate at 5.9 under CVSS version 4. The X41 D-Sec research team published its own advisory, x41-2026-001, documenting the escape.

What changed in November was the evidence, not the code. CISA added CVE-2026-40217 to its Known Exploited Vulnerabilities catalog on November 18, 2026, which means the agency holds evidence of active exploitation, and federal civilian agencies must remediate by December 2, 2026. FIRST's EPSS model puts the chance of exploitation in the next thirty days at roughly one in five, and CISA lists ransomware use as unknown.

The fix has existed for seven months, so the exposed population is a patching problem. Any LiteLLM proxy still running a build between 1.81.8 and 1.83.9 carries an exploited flaw in the component that guards the company's model keys, and the federal deadline lands tomorrow.

The conversation

A little more perspective.

Reading is free. Verified members can comment and reply for $2 a month.

The conversation.

Loading comments…

Keep your curiosity going.

Some links here are affiliate links. If you buy through one, we might make a commission — it never changes what you pay. As an Amazon Associate I earn from qualifying purchases.