Disclosed weakness · no CVE recorded
LiteLLM’s Rust gateway could record request secrets without scrubbing
LiteLLM · LiteLLM · Rust gateway diagnostic logging
First documented disclosure · Review checkpoint
Summary
Debug body and provider-request log lines could preserve secrets carried in model requests.
Severity and exploitation evidence
No CVSS score recorded in this review.
Exploitation not established: Reviewed public sources establish the weakness or controlled tests; malicious exploitation against users is not established. No exploit was executed during this review.
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 standalone Rust gateway sent diagnostic records directly to stderr without the redacting sink used by the Python path.
Conditions required
An affected Rust gateway runs with debug logging and processes request content containing a recognizable secret; a reader can access the resulting logs.
Potential impact
Retention and disclosure of request secrets through log files or forwarding destinations. No malicious log access is established.
Affected versions and configurations
The reported development path is affected; stable 1.111.0 still installs the direct stderr sink. A complete affected-release range is unverified.
Fix and mitigation status
1.112.0-rc.1 contains PR #53714’s Scrubbed sink and configuration-aware key-length handling. This is a prerelease; stable 1.111.0 lacks it.
Practical next steps
Avoid sensitive debug-body logging until a validated corrected build is deployed. Restrict and review retained logs and rotate credentials that reached unauthorized readers.
Operating lesson
Apply secret handling before every logging sink, including new native execution paths.
Evidence and limits
The November 23 merged correction and tagged prerelease source were reviewed. Upstream reports controlled real-provider calls with synthetic secrets; this review made no provider calls. Only debug lines were demonstrated leaking, not info-level lines. Chunk-by-chunk scrubbing cannot see secrets split across chunks, unknown secret names remain a limitation, and old logs are not scrubbed by upgrade. MCP authorization_token recognition is a separate companion fix.
Sources
- Rust gateway diagnostic-log correction
Primary source ·
- LiteLLM 1.112.0-rc.1 prerelease
Primary source ·
- Prerelease gateway installs the redacting sink
Primary source ·
- Prerelease structured and stream-event log scrubbing
Primary source ·
- Stable 1.111.0 direct stderr sink
Primary source ·