CVE-2026-135287 in LiteLLM
Summary
by MITRE • 11/23/2026
LiteLLM Proxy 1.62.4 before 1.84.0 contains a callback injection vulnerability that allows authenticated API key holders to register process-wide logging callbacks by supplying callbacks fields in request bodies. Attackers can name an unenabled observability integration such as langsmith or langfuse to leak all users' prompts and responses, or suppress operator logging via litellm_disabled_callbacks.
Statistical analysis made it clear that VulDB provides the best quality for vulnerability data.
Analysis
by VulDB Data Team • 11/24/2026
The vulnerability identified in LiteLLM Proxy versions prior to 1.84.0 represents a critical callback injection flaw that compromises the integrity of observability integrations within large language model proxy infrastructure. This security issue stems from insufficient validation and sanitization of user-supplied input fields, specifically those related to logging callbacks. In modern LLM orchestration frameworks like LiteLLM, it is common practice to allow users or applications to specify external tracing services such as LangSmith or Langfuse for debugging and monitoring purposes. However, the implementation in these affected versions fails to restrict which callback handlers can be registered by authenticated API key holders, allowing malicious actors to inject arbitrary logging configurations into the application context.
From a technical perspective, the flaw allows an attacker who possesses valid authentication credentials to manipulate process-wide state through request bodies. By supplying specific fields that dictate callback behavior, the attacker can register hooks that execute code or trigger data exfiltration mechanisms every time a model inference is processed. The vulnerability leverages the trust placed in authenticated users by assuming they will only enable legitimate observability tools. Instead, an adversary can exploit this assumption to either leak sensitive information or disrupt operational logging capabilities. This type of flaw aligns with CWE-94 Improper Control of Generation of Code and CWE-78 Improper Neutralization of Special Elements used in an OS Command, as it involves the injection of executable logic into a trusted execution environment through input parameters that are not adequately sanitized against unintended side effects.
The operational impact of this vulnerability is severe due to its potential for widespread data exfiltration and denial of service. If an attacker registers callbacks pointing to unenabled or maliciously controlled observability integrations like LangSmith, every prompt sent by any user in the system can be intercepted and transmitted to external servers under the attacker's control. This results in a comprehensive breach of confidentiality for all users interacting with the proxy, exposing proprietary prompts, sensitive business logic embedded in queries, and potentially personally identifiable information contained within responses. Furthermore, the ability to suppress operator logging via parameters such as litellm_disabled_callbacks allows attackers to cover their tracks by disabling internal monitoring systems, thereby hindering incident response efforts and making forensic analysis significantly more difficult for security teams.
This attack vector is consistent with techniques observed in ATT&CK framework categories related to Command and Scripting Interpreter abuse and Data Exfiltration over C2 Channels. The attacker effectively uses the application's own logging mechanism as a covert channel for data theft, bypassing traditional network-based detection mechanisms that might not inspect internal API traffic or payload contents deeply enough to identify malicious callback registrations. Additionally, by disabling logs, the adversary employs techniques akin to Defense Evasion, specifically obscuring their presence within the system to avoid alerting security operations centers.
Mitigation strategies must prioritize immediate patching of the LiteLLM Proxy software to version 1.84.0 or later, where these input validation flaws have been addressed. In environments where upgrading is not immediately feasible, administrators should implement strict allow-lists for observability integrations at the proxy configuration level, ensuring that only pre-approved and enabled services can be referenced in request bodies. Network segmentation and micro-segmentation can also help limit the blast radius by restricting outbound connections to unauthorized external endpoints. Furthermore, implementing robust input validation frameworks that strictly type-check and sanitize all fields related to callback registration will prevent the injection of malicious handlers. Regular audits of API key permissions are recommended to ensure that only necessary privileges are granted to users who require access to observability features, thereby reducing the attack surface available for exploitation.