PyPI: litellm
CVE-2026-35029
Safety vulnerability ID: SFTY-20260403-20736
Safety legacy ID: pyup.io-91740
Affected versions of the litellm package are vulnerable to Privilege Escalation due to missing admin role authorisation on the /config/update endpoint. This endpoint allows any authenticated user to modify proxy configuration and environment variables, register custom pass-through endpoint handlers pointing to attacker-controlled Python code, read arbitrary server files via the UI_LOGO_PATH setting, and overwrite privileged account credentials by modifying UI_USERNAME and UI_PASSWORD environment variables. An authenticated low-privilege attacker can exploit this endpoint to achieve Remote Code Execution, read sensitive server files, or take over administrator accounts without requiring proxy_admin role privileges.
Overview
LiteLLM: Privilege escalation via unrestricted proxy configuration endpoint
Advisory
Affected versions of the litellm package are vulnerable to Privilege Escalation due to missing admin role authorisation on the /config/update endpoint. This endpoint allows any authenticated user to modify proxy configuration and environment variables, register custom pass-through endpoint handlers pointing to attacker-controlled Python code, read arbitrary server files via the UI_LOGO_PATH setting, and overwrite privileged account credentials by modifying UI_USERNAME and UI_PASSWORD environment variables. An authenticated low-privilege attacker can exploit this endpoint to achieve Remote Code Execution, read sensitive server files, or take over administrator accounts without requiring proxy_admin role privileges.
How to Fix
Mitigation and Workarounds
---
Vulnerable Functions
Functions linked to known vulnerabilities.
References
- https://getsafety.com/vulnerabilities/SFTY-20260403-20736/CVE-2026-35029
- https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2026-35029
- https://data.safetycli.com/changelogs/litellm/
- https://github.com/advisories/GHSA-53mr-6c8q-9789
- https://pypi.org/project/litellm
- https://github.com/BerriAI/litellm/security/advisories/GHSA-53mr-6c8q-9789
- https://nvd.nist.gov/vuln/detail/CVE-2026-35029
- http://seclists.org/fulldisclosure/2026/Apr/17
- https://github.com/advisories/GHSA-53mr-6c8q-9789
Verified by Safety
Our Cybersecurity Intelligence Team reviewed this vulnerability. We combine public data with our own research to find issues not yet reported to public sources.
Learn more
