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.
01
beschreibt (1)
Zugehörige CVEs.
| ID | Schweregrad | ausnutzbar | ||
|---|---|---|---|---|
| CVE-2024-2952US | — | — | ||
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 `… | ||||
02
Referenzen
Externe Belege — Patches, Meldungen, Analysen.
- https://github.com/BerriAI/litellmPACKAGE
- https://github.com/BerriAI/litellm/blob/0d803e13798db40aa7463e64a6bafaee386424f5/litellm/proxy/proxy_server.py#L2087WEB
- https://github.com/BerriAI/litellm/commit/8a1cdc901708b07b7ff4eca20f9cb0f1f0e8d0b3WEB
- https://github.com/BerriAI/litellm/issues/2949WEB
- https://github.com/BerriAI/litellm/pull/2941WEB
- https://github.com/advisories/GHSA-46cm-pfwv-cgf8ADVISORY
- https://github.com/pypa/advisory-database/tree/main/vulns/litellm/PYSEC-2026-387.yamlWEB
- https://huntr.com/bounties/a9e0a164-6de0-43a4-a640-0cbfb54220a4WEB
scry
Advisories wie diese benennen die exponierten Produkte, die Angreifer auf Ihrer Angriffsfläche ins Visier nehmen. Sehen Sie mit einem kostenlosen Passiv-Scan, was exponiert ist.
Kostenloser Scan