LiteLLM flaws CVE-2026-108574 (IDOR in spend logs) and CVE-2026-108575 (team admin env secret exfiltration) disclosed by Hakai
The Yokai Research team at Hakai Offensive Security disclosed two access control flaws in LiteLLM, the open-source AI model gateway/proxy. CVE-2026-108574 (CVSS 4.3, versions up to 1.95.0) is an IDOR in GET /spend/logs/session/ui that lets an authenticated low-privilege user read another user's session spend logs, including api_key data. CVE-2026-108575 (CVSS 6.3, versions up to 1.94.0) lets a team administrator register a model whose parameters reference os.environ/ secrets such as LITELLM_MASTER_KEY and point api_base at an attacker server, leaking the secret in the Authorization header. No exploitation in the wild is reported. This research was not checked against vendor channels, so the details below rest on the researcher's write-up alone.
Entenda a falha
A vulnerabilidade
Two access control flaws in LiteLLM, the open-source AI model gateway. CVE-2026-108574 (CVSS 4.3, up to 1.95.0, fixed in 1.96.0) is an IDOR in GET /spend/logs/session/ui: any authenticated low-privilege user can read another user's session spend logs, including user, team and organization IDs, models, spend, IP addresses and api_key data. CVE-2026-108575 (CVSS 6.3, up to 1.94.0) lets a team administrator register a model whose parameters reference os.environ/ secrets such as LITELLM_MASTER_KEY and point api_base at a server they control, leaking the secret. It needs an Enterprise license, STORE_MODEL_IN_DB=True and outbound connectivity. No official fix is confirmed for it.
Como funciona
For CVE-2026-108574, the endpoint receives a session_id parameter and passes it to the Prisma ORM, which looks up the matching records in the logs table and returns them. Nothing checks whether the caller owns that session. For CVE-2026-108575, a team admin adds or updates a model with parameters they control. For models stored in the database, LiteLLM resolves os.environ/ references through get_secret() while processing those parameters. When the model is later called, LiteLLM sends the request to the configured external api_base with the resolved secret in the Authorization header. The call itself returns a 500 error, but the secret has already reached the remote server.
Por que é vulnerável
CVE-2026-108574 is a missing object-level authorization check: session_id is the only filter in the query, with no ownership validation. CVE-2026-108575 comes from validation that does not adequately restrict the configuration parameters team admins may supply, combined with resolution of os.environ/ references from database-stored model params and no restriction on external api_base destinations. The articles say only that the first flaw was fixed in a commit released in 1.96.0, and do not describe what that fix changes.
Onde está
CVE-2026-108574: litellm/proxy/spend_tracking/spend_management_endpoints.py (fix commit 722d9ffa4f6c5ae15702ab9ab2c5f6bf1688308b). CVE-2026-108575: litellm/proxy/management_endpoints/model_management_endpoints.py and litellm/proxy/proxy_server.py, via get_secret().
Como foi descoberta
Both flaws were found by the Yokai Research team at Hakai Offensive Security through source code analysis of LiteLLM commits, and disclosed in the team's own write-up. The story notes this rests on the researcher's account alone and was not checked against vendor channels. For CVE-2026-108575, the researchers report no vendor response and no confirmed official fix. No exploitation in the wild is reported.
PoC pública
Hakai published working exploits for both flaws. The write-up demonstrates the IDOR with two test users, where one reads the other's session logs including api_key data, and an automated exploit exists. For CVE-2026-108575 it demonstrates a team admin registering a model and receiving the master key at a server they control, with an automated exploit on Hakai's GitHub. Since public exploits exist, patch CVE-2026-108574 quickly and treat CVE-2026-108575 as urgent given no confirmed fix.
Publicada em: yokai.hakaisecurity.io/en-between-the-lines-of-litellm-two-vulnerabilities-two-paths-to-sensitive-data/ ↗
Explicação gerada por IA a partir da matéria e dos artigos, em 30/11/2026 18:16.
Detalhes técnicos
- CVE-2026-108574:
session_idis used as the only filter in the Prisma query, with no check that the caller owns the session. Exposed data includes user, team and organization IDs, models, spend, IP addresses and api_key data. - CVE-2026-108575: team admins can add and update models with insufficiently restricted parameters. Database-stored model params resolve
os.environ/references throughget_secret(). Exploitation requires an Enterprise license,STORE_MODEL_IN_DB=True, and connectivity to the external destination. The call to the registered model returns 500, but the secret still reaches the attacker's server. - Public PoC exploits are published by Hakai.
Detalhes da correção
CVE-2026-108574 was fixed in commit 722d9ffa4f6c5ae15702ab9ab2c5f6bf1688308b, released in LiteLLM 1.96.0. For CVE-2026-108575, the researchers report no vendor response and no confirmed official fix.
Remediação
Upgrade to 1.96.0 or later. For CVE-2026-108575, restrict team admins' ability to create and update models, limit os.environ/ resolution to explicitly allowed variables, validate external api_base destinations, monitor suspicious requests, and rotate potentially exposed secrets such as the master key.
Linha do tempo
-
LiteLLM flaws CVE-2026-108574 (IDOR in spend logs) and CVE-2026-108575 (team admin env secret exfiltration) disclosed by Hakai
ler a análise desta fonte ocultar
The Yokai Research team at Hakai Offensive Security disclosed two access control flaws in LiteLLM, the open-source AI model gateway/proxy. CVE-2026-108574 (CVSS 4.3, versions up to 1.95.0) is an IDOR in
GET /spend/logs/session/uithat lets an authenticated low-privilege user read another user's session spend logs, including api_key data. CVE-2026-108575 (CVSS 6.3, versions up to 1.94.0) lets a team administrator register a model whose parameters referenceos.environ/secrets such asLITELLM_MASTER_KEYand pointapi_baseat an attacker server, leaking the secret in the Authorization header. No exploitation in the wild is reported. This research was not checked against vendor channels, so the details below rest on the researcher's write-up alone.Technical Details
- CVE-2026-108574:
session_idis used as the only filter in the Prisma query, with no check that the caller owns the session. Exposed data includes user, team and organization IDs, models, spend, IP addresses and api_key data. - CVE-2026-108575: team admins can add and update models with insufficiently restricted parameters. Database-stored model params resolve
os.environ/references throughget_secret(). Exploitation requires an Enterprise license,STORE_MODEL_IN_DB=True, and connectivity to the external destination. The call to the registered model returns 500, but the secret still reaches the attacker's server. - Public PoC exploits are published by Hakai.
Fix Details
CVE-2026-108574 was fixed in commit 722d9ffa4f6c5ae15702ab9ab2c5f6bf1688308b, released in LiteLLM 1.96.0. For CVE-2026-108575, the researchers report no vendor response and no confirmed official fix.
Remediation
Upgrade to 1.96.0 or later. For CVE-2026-108575, restrict team admins' ability to create and update models, limit
os.environ/resolution to explicitly allowed variables, validate external api_base destinations, monitor suspicious requests, and rotate potentially exposed secrets such as the master key. - CVE-2026-108574: