LiteLLM is a proxy server (AI Gateway) to call LLM APIs in OpenAI (or native) format. Prior to 1.83.0, the /config/update endpoint does not enforce admin role authorization. A user who is already authenticated into the platform can then use this endpoint to modify proxy configuration and environment variables, register custom pass-through endpoint handlers pointing to attacker-controlled Python code, achieving remote code execution, read arbitrary server files by setting UI_LOGO_PATH and fetching via /get_image, and take over other privileged accounts by overwriting UI_USERNAME and UI_PASSWORD environment variables. Fixed in v1.83.0.
CVE-2026-35029 is a critical authorization bypass vulnerability in LiteLLM versions prior to 1.83.0 affecting the /config/update endpoint. An authenticated attacker can modify proxy configurations, execute arbitrary Python code, read sensitive files, and hijack administrative accounts without requiring admin privileges. This poses severe risk to organizations using LiteLLM as an AI Gateway, particularly those integrating with enterprise LLM services.
IMMEDIATE ACTIONS:
1. Upgrade LiteLLM to version 1.83.0 or later immediately
2. Audit all /config/update endpoint access logs for unauthorized modifications
3. Review environment variables and proxy configurations for unauthorized changes
4. Reset all UI_USERNAME and UI_PASSWORD credentials
5. Inspect custom endpoint handlers for malicious code
PATCHING GUIDANCE:
- Deploy v1.83.0+ across all LiteLLM instances
- Test in staging environment before production deployment
- Implement automated patching for future releases
COMPENSATING CONTROLS (if immediate patching delayed):
- Restrict /config/update endpoint access via WAF/reverse proxy to admin IPs only
- Implement strict role-based access control (RBAC) at application level
- Monitor /config/update endpoint for suspicious requests
- Disable custom endpoint handler registration if not required
- Implement API rate limiting on configuration endpoints
DETECTION RULES:
- Alert on POST requests to /config/update from non-admin users
- Monitor for environment variable modifications (UI_USERNAME, UI_PASSWORD, UI_LOGO_PATH)
- Detect custom endpoint handler registration attempts
- Flag unauthorized proxy configuration changes
- Monitor for Python code execution patterns in request payloads
الإجراءات الفورية:
1. ترقية LiteLLM إلى الإصدار 1.83.0 أو أحدث فوراً
2. تدقيق جميع سجلات الوصول إلى نقطة نهاية /config/update للتعديلات غير المصرح بها
3. مراجعة متغيرات البيئة وتكوينات الوكيل للتغييرات غير المصرح بها
4. إعادة تعيين جميع بيانات اعتماد UI_USERNAME و UI_PASSWORD
5. فحص معالجات نقاط النهاية المخصصة للكود الضار
إرشادات التصحيح:
- نشر v1.83.0+ عبر جميع مثيلات LiteLLM
- الاختبار في بيئة التجريب قبل نشر الإنتاج
- تنفيذ التصحيح الآلي للإصدارات المستقبلية
الضوابط البديلة (إذا تأخر التصحيح الفوري):
- تقييد وصول نقطة نهاية /config/update عبر WAF/reverse proxy لعناوين IP الإدارية فقط
- تنفيذ التحكم في الوصول القائم على الأدوار (RBAC) على مستوى التطبيق
- مراقبة نقطة نهاية /config/update للطلبات المريبة
- تعطيل تسجيل معالج نقطة النهاية المخصصة إذا لم تكن مطلوبة
- تنفيذ تحديد معدل API على نقاط نهاية التكوين
قواعد الكشف:
- تنبيه على طلبات POST إلى /config/update من مستخدمين غير إداريين
- مراقبة تعديلات متغيرات البيئة (UI_USERNAME و UI_PASSWORD و UI_LOGO_PATH)
- كشف محاولات تسجيل معالج نقطة النهاية المخصصة
- وضع علم على تغييرات تكوين الوكيل غير المصرح بها
- مراقبة أنماط تنفيذ كود Python في حمولات الطلب