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.
History

No history.

cve-icon MITRE

Status: PUBLISHED

Assigner: @huntr_ai

Published: 2024-04-10T17:07:52.935Z

Updated: 2024-08-01T19:32:42.587Z

Reserved: 2024-03-26T18:00:46.844Z

Link: CVE-2024-2952

cve-icon Vulnrichment

Updated: 2024-08-01T19:32:42.587Z

cve-icon NVD

Status : Awaiting Analysis

Published: 2024-04-10T17:15:54.823

Modified: 2024-04-15T18:15:11.027

Link: CVE-2024-2952

cve-icon Redhat

No data.