A LiteLLM proxy administrator can exercise a feature intended to test custom Python guardrails under a restricted execution environment. The disclosed attack instead uses Python introspection paths to reach objects and functionality beyond that environment. A sandbox label therefore overstates the strength of the actual language-level isolation. The…
Inspect the ClaimsCase · 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
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.
Evidence basis: CLM-2026-NOV20-LITELLM-GUARD · CLM-2026-NOV20-LITELLM-GUARD-ENRICH · GitHub: LiteLLM custom guardrail sandbox escape
At a glance
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.
Read the implicationsNo 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.
Limits and uncertaintyFull account
A LiteLLM proxy administrator can exercise a feature intended to test custom Python guardrails under a restricted execution environment. The disclosed attack instead uses Python introspection paths to reach objects and functionality beyond that environment. A sandbox label therefore overstates the strength of the actual language-level isolation.
The advisory’s described endpoint is ordinarily an administrator-only operation, so its presence does not establish unauthenticated remote code execution. Its public exploitability depends on which principals can invoke the guardrail test, as well as the proxy’s deployment privileges. The release narrative and affected-range metadata disagree about one patched build, so operators should verify the exact version and tested fix rather than assuming all adjacent versions are safe.
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.
The attack starts from an intentionally code-executing administrative test endpoint, not from an ordinary inference client. The described Python bytecode sandbox escape is separate from LiteLLM virtual-key ownership escalation; operational guidance should retain the conflicting 1.83.10 versus 1.83.11 patch statements until code and releases are compared.
Mechanism and trust boundary
- 01
Privileged actor invokes custom code guardrail test.
- 02
Python runtime introspection bypasses the intended restricted execution namespace.
Timeline
- Nov 18, 2026Event type unspecified
Underlying evidence published or disclosed
- Nov 18, 2026disclosure
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
- supportsGitHub: LiteLLM custom guardrail sandbox escapeprimary disclosure
GHSA-wxxx-gvqv-xp7p, Affected versions, PoC description and Patch
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
- supportsGitHub: LiteLLM custom guardrail sandbox escapeprimary disclosure
GHSA-wxxx-gvqv-xp7p, Affected/Patched versions and Impact/Patches paragraphs
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
- Nov 20, 2026 · Published version · first publication · revision 269