ZDI-26-1084: (Pwn2Own) LiteLLM Pass-Through Endpoint Code Injection Remote Code Execution Vulnerability
Summary
A Remote Code Execution (RCE) vulnerability has been identified in LiteLLM, tracked under CVE-2026-136539 and advisory ID ZDI-26-1084. The issue stems from a code injection flaw within the handling of pass-through endpoints. An authenticated attacker can leverage this vulnerability to execute arbitrary code within the context of the service account. Discovered during the Pwn2Own competition, an update addressing this vulnerability has been issued by the vendor.
Affected Products
- LiteLLM (unpatched versions prior to the
pass_through_endpointsvalidation fix)
Technical Details
The specific flaw exists within the handling of pass_through_endpoints in LiteLLM. The issue results from a lack of proper code validation before execution via module import. A remote attacker with high-privilege authentication can exploit this flaw to inject and execute arbitrary code on affected LiteLLM installations in the context of the service account.
Impact
Successful exploitation allows an authenticated remote attacker to execute arbitrary code on the target host, potentially leading to a full system compromise of the LiteLLM deployment.
- Confidentiality: High — Attacker can access sensitive data and environment details processed by the application.
- Integrity: High — Attacker can modify system configurations or execute malicious binaries.
- Availability: High — Attacker can disrupt operations or cause a total denial of service.
Mitigation & Remediation Recommendations
- Update LiteLLM to the latest version containing the fix for
pass_through_endpointshandling (refer to GitHub Pull Request #27801). - Restrict administrative access and API endpoints of LiteLLM to authorized users and trusted network segments adhering to the principle of least privilege.
- Monitor system and application logs for unusual module imports or abnormal service account executions.
References
- Advisory Source Link Zero Day Initiative ZDI-26-1084 — http://www.zerodayinitiative.com/advisories/ZDI-26-1084/
- LiteLLM GitHub Pull Request #27801 — https://github.com/BerriAI/litellm/pull/27801
- NVD CVE-2026-136539 — https://nvd.nist.gov/vuln/detail/CVE-2026-136539
- MITRE CVE-2026-136539 — https://www.cve.org/CVERecord?id=CVE-2026-136539
- LiteLLM Repository Security Portal — https://github.com/BerriAI/litellm/security
Advisory ini disajikan tim ICT Cybersecurity PT Pertamina Bina Medika IHC sebagai informasi kesadaran keamanan. Verifikasi pada sumber resmi sebelum tindakan.