Case · DiggingBeagle record

LiteLLM custom guardrail bytecode introspection bypassed its intended execution sandbox

CVE-2026-40217 concerns executable custom guardrail code escaping a restricted Python execution context. It is not the virtual-key privilege-escalation mechanism reported in Google’s LLMjacking research.

Published by DiggingBeagle:

Public disclosure: Nov 18, 2026

Scope

Custom guardrail execution feature in a privileged LiteLLM administration context.

Assessment profile

Assessment method
Setting
research demonstration
Exploitation
demonstrated
Evidence
Grade B
Remediation
patch available
AI role
AGAINST AI
Basis and provenance

Advisory identifies an administrative sandbox escape; it disagrees internally on fixed version metadata, and no default unauthenticated entry is shown. Impact band is unassigned because the cited material does not establish a calibrated real-world loss or affected-population denominator.

Assessed Nov 20, 2026 using diggingbeagle.assessment/1.

At a glance

Mechanism and trust boundary

  1. 01

    Privileged actor invokes custom code guardrail test.

  2. 02

    Python runtime introspection bypasses the intended restricted execution namespace.

Timeline

  1. Nov 18, 2026
    Event type unspecified

    Underlying evidence published or disclosed

  2. Nov 18, 2026
    disclosure

    Public disclosure

Claims & evidence

CLM-2026-NOV20-LITELLM-GUARDGitHub documents a sandbox-escape vulnerability in LiteLLM custom code guardrail testing, affecting 1.81.8 through versions before the 1.83.10 stable patch, distinct from the earlier /key/regenerate ownership failure.supported

Basis: reported finding

Link to claim
CLM-2026-NOV20-LITELLM-GUARD-ENRICHThe LiteLLM custom-code guardrail sandbox escape requires proxy-admin access in default configurations, and the advisory conflicts internally on the minimum fixed version: metadata lists 1.83.10, while its narrative directs upgrades to 1.83.11 or later.supported

Basis: reported finding

Link to claim

Implications

This finding is separate from the ordinary-virtual-key /key/regenerate ownership flaw used in the earlier LLMjacking investigation. Both affect LiteLLM, but the attacker prerequisites and trust boundaries differ.

Controls and mitigations

  • Restrict custom-code guardrail testing to administrators, sandbox the proxy independently, and reconcile the 1.83.10 metadata versus 1.83.11 narrative before selecting the minimum fixed version.

Unknowns and contradictions

  • No verified broad in-the-wild exploitation through this CVE.
  • Patched-release metadata should be reconciled with the tested commit and 1.83.10/1.83.11 documentation.

Sources and citation

Material revision history

  1. Nov 20, 2026 · Published version · first publication · revision 269