Hackers are exploiting a critical LiteLLM pre-auth SQLi flaw
- Published
- Record updated
Summary
Attackers are actively exploiting CVE-2026-42208, a critical pre-authentication SQL injection flaw in the proxy API key verification step of the LiteLLM LLM gateway. Sysdig observed targeted requests to '/chat/completions' with a malicious 'Authorization: Bearer' header that queried tables holding API keys, provider credentials and configs, beginning about 36 hours after public disclosure on April 24. The flaw can be used to read and modify the proxy's database, exposing the credentials it manages.
Mitigation
Fixed in LiteLLM version 1.83.7, which replaces string concatenation with parameterized queries. Researchers advise treating exposed vulnerable instances as potentially compromised and rotating every virtual API key, master key and provider credential stored in them. If upgrading is not possible, maintainers suggest setting 'disable_error_logs: true' under 'general_settings'.
Related items
- InfoPrompting AI to be ‘thorough’ can drive sandbox escapes, Anthropic saysSame vendor · CSO Online
- InfoThe Great Escape: Tradecraft insights from an agentic swarmSame vendor · Cisco Talos Blog
- InfoEx-OpenAI Employee Accused of Bugging Company Offices Granted $1 Million BailSame vendor · The Hacker News
- InfoDespite doom and gloom headlines, AI attacks are thin on the groundSame vendor · CSO Online
- InfoDrupal Flaw Found by Anthropic Scanner Exploited in AttacksSame vendor · SecurityWeek