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 Information

Status: PUBLISHED

Assigner: @huntr_ai

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

Updated: 2024-07-03T16:51:12.428Z

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


Link: CVE-2024-2952

JSON object: View

cve-icon NVD Information

Status : Awaiting Analysis

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

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


Link: CVE-2024-2952

JSON object: View

cve-icon Redhat Information

No data.

CWE