Authenticated file disclosure via raw token query
Published Jul 3, 2025 · Updated Mar 12, 2026
SQL injection in BerriAI LiteLLM before 1.81.0 allows remote authenticated users to read server files through key-management requests. The /key/block and /key/unblock handlers pass a non-sk key unchanged into a raw SQL token lookup, letting SQL syntax alter the query. A proxy_admin_viewer API key reaches the affected endpoint, and time-based PostgreSQL predicates disclose file contents one character at a time.
Summary
What happened
SQL injection in BerriAI LiteLLM before 1.81.0 allows remote authenticated users to read server files through key-management requests. The /key/block and /key/unblock handlers pass a non-sk key unchanged into a raw SQL token lookup, letting SQL syntax alter the query. A proxy_admin_viewer API key reaches the affected endpoint, and time-based PostgreSQL predicates disclose file contents one character at a time.
The record
- CVE
- CVE-2025-45809
- Published
- Jul 3, 2025
- Updated
- Mar 12, 2026
- Vendor
- Unknown vendor
- Product
- Unknown product
- Classifications
- CWE-89, T1190
- Attack vector
- network
- Privileges
- authenticated
Timeline
How it unfolded
- Jul 3, 2025CVE publishedPublication date reported by the CVE source.
- Mar 12, 2026Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
What conditions does exploitation require?
What is affected?
Affected products and versions are unavailable in this record.
Published CVSS scores
CVSS describes severity. EPSS estimates exploitation probability.
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Weakness, pattern, technique
Public exploit references
- LiteLLM time-based SQL injection proof of conceptproof of concept · demonstrated
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo