(Pwn2Own) LiteLLM Pass-Through Endpoint Code Injection Remote Code Execution Vulnerability
Vulnerability Details
This vulnerability allows remote attackers to execute arbitrary code on affected installations of LiteLLM. Authentication is required to exploit this vulnerability.
The specific flaw exists within the handling of pass_through_endpoints. The issue results from the lack of proper validation of code before it is executed via module import. An attacker can leverage this vulnerability to execute code in the context of the service account.
Additional Details
LiteLLM has issued an update to correct this vulnerability. More details can be found at:
https://github.com/BerriAI/litellm/pull/27801
Disclosure Timeline
- 2026-06-02 - Vulnerability reported to vendor
- 2026-11-24 - Coordinated public release of advisory
- 2026-11-24 - Advisory Updated
Credit
k3vg3n