Disclosed weakness · no CVE recorded

LiteLLM Gemini agent templates could redirect proxy requests to internal hosts

BerriAI · LiteLLM Gemini managed-agent routes

First documented disclosure · Review checkpoint

Summary

An API key holder could make Gemini managed-agent routes contact a chosen host and receive its response.

Severity and exploitation evidence

High · 8.8/10 · CVSS 3.1. Severity source.

Exploitation not established: The public source establishes a reported weakness or controlled test, not malicious exploitation or identified victims. No product, model or proof of concept was executed in this review.

Exploitation evidence source

Technical severity is not a measure of observed attacks or of risk to your deployment. Attempts, demonstrations, and successful compromise retain the qualifications in the source.

How the weakness works

The proxy checked the outer request before merging litellm_params_template, allowing template endpoint fields to bypass request-field restrictions on five /v1beta/agents routes.

Conditions required

A valid API key can reach an affected Gemini managed-agent route; the proxy can reach the chosen destination. The author’s test notes non-admin callers without a provider api_key are refused.

Potential impact

The maintainer reports requests to internal network services and returned responses, potentially exposing data or credentials reachable by the proxy. No real-world exploitation is established.

Affected versions and configurations

>= 1.87.0, < 1.108.25; >= 1.109.0, < 1.112.2; >= 1.113.0.dev1, < 1.113.0rc2 for litellm, per the advisory. These are separate release-line ranges.

Fix and mitigation status

Stable 1.108.25 and 1.112.2; release candidate 1.113.0rc2, per the advisory. The captured five-release inventory does not establish stable 1.113.0.

Practical next steps

Update the applicable release line, or block /v1beta/agents and subroutes if unused. Configure a trusted custom endpoint with proxy-side GEMINI_API_BASE; caller endpoint overrides now return 400 even for admins or allow_client_side_credentials. Review unusual route access and rotate potentially exposed credentials as the maintainer advises.

Operating lesson

Authorize the final merged request, including nested templates.

Evidence and limits

PR 56311 publicly described the boundary failure on December 4; GHSA published December 5. The author used the real proxy app with mocked outbound HTTP, not a live internal service. CVSS 3.1 8.8 is the maintainer assessment. The endpoint correction does not fix the separate batch-ownership or cached-spend issues.

Sources