Disclosed weakness · no CVE recorded

LiteLLM strict budget mode could still admit requests during a database outage

LiteLLM · LiteLLM Proxy opt-in fail-closed budget enforcement

First documented disclosure · Review checkpoint

Summary

A proxy without Redis could keep admitting budgeted requests on cached spend during a database outage even when fail_closed_budget_enforcement was enabled.

Severity and exploitation evidence

No CVSS score recorded in this review.

Exploitation not established: The author reports controlled database-outage requests using a live proxy and real OpenAI calls. This is not evidence of malicious exploitation; no product 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

When cached fallback_spend exceeded a worker’s local counter, get_current_spend returned the cached value before reaching the existing rejection for unverified spend. The correction permits that early return only for verified spend or when strict enforcement is off.

Conditions required

The operator explicitly enables fail_closed_budget_enforcement; a budgeted request uses an unverified local estimate below its limit, cached spend is higher than that counter, no Redis authority is available and the database cannot verify spend. The author’s live setup used two workers without Redis.

Potential impact

Requests can consume provider resources during an outage despite the operator’s policy to reject unverifiable budget decisions. The controlled evidence demonstrates admission contrary to that policy; it does not quantify an actual budget overrun.

Affected versions and configurations

The report demonstrates main at d9de39f10f8. Stable 1.112.1 and LTS 1.108.24 also retain the inspected unconditional cached-spend early return ahead of the fail-closed check. Exact introduction and complete affected release bounds are unverified.

Fix and mitigation status

Development prerelease 1.114.0-dev.1 contains PR 55883’s verified-or-not-strict guard on the cached-spend early return. No stable corrected release was verified. Default fail-open behavior and explicitly authoritative fallbacks are unchanged.

Practical next steps

Use a validated build containing the correction. Where strict budget verification is required, independently gate requests during database outages when no authoritative Redis counter is available.

Operating lesson

Every early return in an enforcement path must honor the operator’s configured failure policy.

Evidence and limits

PR 55883 opened December 3 at 02:03:52Z and merged at 18:39:14Z. The full original, complete two-file diff and complete selected tagged proxy_server.py sources were captured. The author reports two-worker no-Redis comparisons: calls that returned 200 with the database down before the correction returned 503 afterward, including an unmodified-spend control. One setup raised recorded spend to make the stale-counter condition explicit; the control also reached the same branch through normal cross-worker differences. Source inspection confirms the corrected early-return guard in 1.114.0-dev.1 and its absence in stable 1.112.1/LTS 1.108.24. The opt-in setting, unreadable authoritative sources and cached-spend ordering are essential prerequisites. Healthy authoritative reads, default fail-open mode and fallback_authoritative=True remain outside the behavior change. This is distinct from the baseline calendar/budget-reset boundary arithmetic record. No CVE or issue-specific numeric severity was established. December 5 review reuses the frozen December 4 originals with their original retrieval timestamps; selected release/remediation states were checked again. December 5 source comparison finds the pass-through batch guard and cached-spend strict-mode guard absent from stable 1.112.2 and LTS 1.108.25. The native batch ownership guard is also absent from the inspected 1.112.2 hook. The 1.108.25 native-hook path returned 404; its absence is not proof of safety or applicability. Their new Gemini endpoint fix is a separate issue.

Sources