SCA: security update for litellm (GHSA-46cm-pfwv-cgf8)

critical Tenable Self-Hosted Container Security Plugin ID 409997

Description

There are packages installed that are affected by a vulnerability referenced in the following CVE:

- 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. (CVE-2024-2952)

Solution

Update the litellm library and its related packages to version 1.34.42 or later.

See Also

https://github.com/advisories/GHSA-46cm-pfwv-cgf8

Plugin Details

Severity: Critical

ID: 409997

Version: Revision 1.10

Type: Local

Family: SCA Checks

Published: 1/23/2025

Updated: 7/6/2026

Supported Sensors: Tenable Cloud Security, Tenable Self-Hosted Container Security

Risk Information

VPR

Risk Factor: Medium

Score: 4.9

Percentile: 57.49

Vendor

Vendor Severity: Critical

CVSS v2

Risk Factor: Critical

Base Score: 10

Temporal Score: 7.8

Vector: CVSS2#AV:N/AC:L/Au:N/C:C/I:C/A:C

CVSS Score Source: CVE-2024-2952

CVSS v3

Risk Factor: Critical

Base Score: 9.8

Temporal Score: 8.8

Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Temporal Vector: CVSS:3.0/E:P/RL:O/RC:C

Vulnerability Information

Exploit Available: true

Exploit Ease: Exploits are available

Patch Publication Date: 4/10/2024

Vulnerability Publication Date: 4/10/2024

Reference Information

CVE: CVE-2024-2952

cwe: CWE-76