⚠️

Disclaimer & Liability

The content provided on this website is for educational, research, and security awareness purposes only. Any unauthorized, illegal, or abusive use of the information, tools, and techniques discussed is solely the responsibility of the user. The author and publisher assume no liability for any damages, injuries, or consequences resulting from the misuse of this content.

CVE-2026-136539: LiteLLM Pass-Through Endpoint Code Injection Enables Authenticated RCE | Alireza Bolbolabadi - Red Team Security
LOADING

CVE-2026-136539: LiteLLM Pass-Through Endpoint Code Injection Enables Authenticated RCE

Affected Products: 1.83.14-stable.patch.3

Executive summary

CVE-2026-136539 affects the network-accessible pass-through endpoint functionality in LiteLLM 1.83.14-stable.patch.3. The root cause is inadequate validation of code before it reaches a module-import mechanism. An attacker with valid authentication can therefore cause malicious code to execute in the context of the LiteLLM service account.

The advisory assigns the issue a CVSS 3.1 score of 7.2 High with the vector CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H. The vulnerability is remotely reachable, has low attack complexity, requires no user interaction, and can affect all three principal security properties. The authentication requirement lowers the issue from a pre-authentication compromise but does not remove the impact of a stolen session, compromised API key, or improperly privileged account.

LiteLLM has issued a fix associated with pull request 27801. The supplied sources do not name a separate fixed release, so administrators should verify the intended release or commit with the vendor before rollout.

Affected systems

  • Product: LiteLLM

  • Affected version identified in the advisory: 1.83.14-stable.patch.3

  • Affected functionality: Processing of pass_through_endpoints

  • Required access: Valid authentication, represented by PR:H

  • Execution context: The LiteLLM service account

  • Corrective update: https://github.com/BerriAI/litellm/pull/27801

The exposure depends on whether the affected LiteLLM version is deployed and whether an authenticated user can reach the relevant pass-through endpoint. The supplied intelligence does not identify default credentials, particular deployment topologies, exposed management interfaces, or a specific required role beyond authentication.

Technical analysis

The vulnerable path processes requests through LiteLLM's pass-through endpoint handling. According to the advisory, code is not properly validated before it is executed via module import. This allows attacker-controlled code to reach an execution mechanism instead of remaining constrained to the endpoint's intended behavior.

Once exploitation succeeds, the attacker gains code execution with the operating-system permissions assigned to the LiteLLM service. Depending on how the service is configured, that context may expose application configuration, credentials, model-provider secrets, internal network services, customer data, or writable filesystem resources. It may also permit outbound network activity and modification of service state.

The security characteristics are:

  • Network attack vector: The flaw is reachable over the network.

  • Low attack complexity: No unusual race condition or complex preparation is described.

  • High privileges required: Authentication is mandatory.

  • No user interaction: Successful exploitation does not depend on a victim action.

  • Scope unchanged: The advisory does not indicate a security authority boundary is crossed during the initial compromise.

  • High CIA impact: The attacker can potentially disclose, alter, or destroy accessible information and disrupt the service.

Exploitation status and risk context

The available information supports treating the flaw as directly exploitable when the affected endpoint is exposed to an authenticated attacker. However, the supplied sources contain no evidence of exploitation in the wild and do not describe a public weaponized exploit. The Pwn2Own reference in the advisory title identifies the research context but does not, by itself, establish active exploitation.

The most plausible initial access paths include a compromised account, stolen API key, leaked session, or an authenticated user granted broader access than intended. Because the exact authorization model is not described in the supplied intelligence, organizations should assess who can invoke the affected functionality rather than treating the authentication requirement as a complete defense.

Mitigation

  1. Apply the vendor fix. Upgrade the affected 1.83.14-stable.patch.3 deployment using the corrective update associated with https://github.com/BerriAI/litellm/pull/27801. The supplied context does not identify a separate fixed version number, so the intended release or commit should be confirmed through LiteLLM's release guidance.

  1. Restrict endpoint exposure. Limit access to LiteLLM and its pass-through endpoints to trusted networks, administrative hosts, or appropriately protected reverse proxies. Enforce strong authentication and least-privilege authorization for users and service identities able to invoke the affected functionality.

  1. Minimize service-account privileges. Run LiteLLM under a dedicated operating-system identity that cannot access unnecessary secrets, modify startup mechanisms, write executable files, or reach sensitive internal services.

  1. Monitor relevant activity. Review LiteLLM and reverse-proxy logs for unusual pass-through requests, suspicious module imports, unexpected child processes, new outbound connections, file creation, and attempts to access configuration, credentials, or internal services. Correlate suspicious activity with authentication and account-management events.

  1. Investigate suspected compromise. When malicious requests or execution indicators appear, isolate the service, preserve logs and evidence, rotate credentials available to the service account, review downstream access, and rebuild the deployment from a trusted image or installation if integrity cannot be established.

  1. Validate the update. In a controlled environment, confirm that arbitrary code submitted through the affected endpoint is rejected and that no unintended module import or subprocess execution occurs.

The supplied sources do not identify a configuration-based workaround. Restricting access or blocking the affected functionality may reduce exposure, while the vendor update is the stated corrective action.

Expert insight

This vulnerability illustrates a familiar boundary failure in API gateway and model-proxy software: functionality intended to forward requests eventually crosses into a code-execution primitive. Module import is especially sensitive because it can turn data supplied through a request into executable behavior. Authentication limits who can reach the flaw, but it also makes account integrity and authorization design central parts of the security model.

A useful defensive review is to map every principal that can access pass_through_endpoints, trace what credentials or tokens those principals possess, and determine what the LiteLLM service account can reach. This establishes the difference between nominal CVSS impact and the actual blast radius in a particular deployment. The absence of reported in-the-wild exploitation makes timely patching preferable to waiting for public indicators, while the availability of a vendor correction reduces the need for risk-heavy workarounds.

advisory high CVE-2026-136539
·
← Back to Writeups