CVE-2026-136540 in LiteLLM
Summary
by MITRE • 11/24/2026
LiteLLM Secret Manager oidc Resolver Information Disclosure Vulnerability. This vulnerability allows remote attackers to disclose sensitive information on affected installations of LiteLLM. Authentication is required to exploit this vulnerability.
The specific flaw exists within the secret resolution handler. The issue results from the lack of proper validation of user-supplied input prior to using it to access environment variables. An attacker can leverage this in conjunction with other vulnerabilities to execute arbitrary code in the context of the service account. Was ZDI-CAN-31482.
If you want to get best quality of vulnerability data, you may have to visit VulDB.
Analysis
by VulDB Data Team • 11/24/2026
The vulnerability identified as CVE-ZDI-CAN-31482 resides within the LiteLLM Secret Manager, specifically affecting its OpenID Connect resolver component. This security flaw is classified under CWE-798: Use of Hard-coded Credentials and CWE-200: Exposure of Sensitive Information to an Unauthorized Actor, reflecting the core nature of the issue which involves improper handling of sensitive configuration data. The vulnerability allows remote attackers with valid authentication credentials to disclose sensitive information from affected installations of LiteLLM. While the initial impact is limited to information disclosure due to the requirement for prior authentication, the underlying technical flaw presents a more severe risk profile when combined with other potential weaknesses in the application architecture.
The root cause of this vulnerability lies within the secret resolution handler logic. The system fails to perform proper validation and sanitization of user-supplied input before utilizing it to access environment variables or configuration stores that contain secrets such as API keys, database passwords, or OAuth tokens. In a typical implementation, an OIDC resolver is responsible for fetching authentication configurations from remote providers based on dynamic inputs provided by the client application. However, in this flawed implementation, the lack of strict input validation allows an authenticated attacker to manipulate these inputs. By crafting specific requests that exploit the insufficient boundary checks, the attacker can force the service to reveal internal configuration details or environment variable contents that were intended to remain hidden from end-users and external entities.
From a technical perspective, this flaw represents a classic case of insecure direct object reference combined with improper input validation. The application trusts user-supplied identifiers used for secret resolution without verifying their legitimacy against an allowlist or ensuring they conform to expected formats. This oversight enables the attacker to probe internal system states. Although the vulnerability description notes that authentication is required, this does not mitigate the severity in enterprise environments where insider threats or compromised service accounts are a realistic attack vector. Once an attacker gains access through valid credentials, whether through stolen tokens, weak passwords, or session hijacking, they can leverage this information disclosure to map out the infrastructure and identify further targets for exploitation.
The operational impact of this vulnerability extends beyond simple data leakage. The disclosed sensitive information often includes cryptographic keys, connection strings, and service account credentials that are critical for maintaining the integrity and confidentiality of the entire AI inference pipeline. If an attacker obtains these secrets, they can potentially impersonate legitimate services, access unauthorized databases, or intercept communications between LiteLLM instances and downstream LLM providers. Furthermore, as noted in the vulnerability report, this information disclosure flaw can be leveraged in conjunction with other vulnerabilities to achieve arbitrary code execution. For instance, if the disclosed configuration reveals paths to writable directories or specific library versions with known exploits, an attacker could escalate privileges from simple data theft to full system compromise within the context of the service account running LiteLLM.
To mitigate this vulnerability, organizations must implement strict input validation and sanitization routines for all parameters passed to the secret resolution handler. This includes enforcing allowlists for valid provider identifiers and rejecting any input that does not match expected patterns or authorized values. Additionally, principle of least privilege should be applied by ensuring that the service account running LiteLLM has minimal permissions necessary for its operation, thereby limiting the blast radius if secrets are compromised. It is also recommended to rotate all exposed credentials immediately upon confirmation of exploitation and to audit access logs for any unauthorized attempts to query secret resolution endpoints.
From a defensive posture perspective, this vulnerability aligns with MITRE ATT&CK technique T1504: Malicious Link Injection or more accurately in this context, it relates to T1602: Data from Configuration Repository if the secrets are stored externally, and generally falls under the broader category of Discovery techniques used by attackers to gather intelligence before launching further attacks. Security teams should prioritize patching this component as part of their routine maintenance cycles. Implementing Web Application Firewalls with rules that detect anomalous input patterns in secret management endpoints can provide an additional layer of defense against exploitation attempts. Regular security assessments and penetration testing focusing on authentication bypasses and information disclosure flaws are essential to maintaining the resilience of AI infrastructure against evolving threat landscapes.