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

exploitDog

github логотип

GHSA-46cm-pfwv-cgf8

Опубликовано: 10 апр. 2024
Источник: github
Github: Прошло ревью
CVSS3: 9.8

Описание

LiteLLM has Server-Side Template Injection vulnerability in /completions endpoint

BerriAI/litellm is vulnerable to Server-Side Template Injection (SSTI) via the /completions endpoint. The vulnerability arises from the hf_chat_template method processing the chat_template parameter from the tokenizer_config.json file through the Jinja template engine without proper sanitization. Attackers can exploit this by crafting malicious tokenizer_config.json files that execute arbitrary code on the server.

Пакеты

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

litellm

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

< 1.34.42

1.34.42

EPSS

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

9.8 Critical

CVSS3

Дефекты

CWE-76

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

CVSS3: 9.8
nvd
почти 2 года назад

BerriAI/litellm is vulnerable to Server-Side Template Injection (SSTI) via the `/completions` endpoint. The vulnerability arises from the `hf_chat_template` method processing the `chat_template` parameter from the `tokenizer_config.json` file through the Jinja template engine without proper sanitization. Attackers can exploit this by crafting malicious `tokenizer_config.json` files that execute arbitrary code on the server.

EPSS

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

9.8 Critical

CVSS3

Дефекты

CWE-76