Логотип exploitDog
Консоль
Логотип exploitDog

exploitDog

github логотип

GHSA-72m8-9m7m-h278

Опубликовано: 22 июл. 2026
Источник: github
Github: Прошло ревью
CVSS4: 2.1

Описание

LiteLLM: Custom Code Guardrails production endpoints bypass code safety checks

Impact

LiteLLM's Custom Code Guardrails production create/update paths did not apply the same sandboxing and validation used by the test endpoint.

A privileged user with access to create or update guardrails could submit custom Python code that executed in the LiteLLM proxy environment. In deployments without a configured master key, callers could be treated as proxy administrators, making this reachable without intended administrative authorization.

This could allow arbitrary code execution in the LiteLLM proxy container and exposure of secrets available to the process.

Patches

The issue is fixed in 1.82.0-stable.

LiteLLM recommend upgrading to 1.82.0-stable or later.

Workarounds

If upgrading is not immediately possible:

  1. Restrict access to POST /guardrails and PUT /guardrails/{guardrail_id} to trusted administrators only.
  2. Ensure LITELLM_MASTER_KEY is configured.
  3. Avoid enabling Custom Code Guardrails for untrusted users.

Пакеты

Наименование

litellm

pip
Затронутые версииВерсия исправления

< 1.82.0

1.82.0

EPSS

Процентиль: 28%
0.00355
Низкий

2.1 Low

CVSS4

Дефекты

CWE-94

Связанные уязвимости

CVSS3: 7.2
redhat
26 дней назад

LiteLLM is a proxy server (AI Gateway) to call LLM APIs in OpenAI (or native) format. Prior to 1.82.0-stable, LiteLLM's Custom Code Guardrails production create and update paths did not apply the same sandboxing and validation used by the test endpoint, allowing a privileged user with access to create or update guardrails to submit custom Python code that executed in the LiteLLM proxy environment and could expose secrets available to the process. This issue is fixed in version 1.82.0-stable.

CVSS3: 7.2
nvd
26 дней назад

LiteLLM is a proxy server (AI Gateway) to call LLM APIs in OpenAI (or native) format. Prior to 1.82.0-stable, LiteLLM's Custom Code Guardrails production create and update paths did not apply the same sandboxing and validation used by the test endpoint, allowing a privileged user with access to create or update guardrails to submit custom Python code that executed in the LiteLLM proxy environment and could expose secrets available to the process. This issue is fixed in version 1.82.0-stable.

EPSS

Процентиль: 28%
0.00355
Низкий

2.1 Low

CVSS4

Дефекты

CWE-94