Lucene search

K
veracodeVeracode Vulnerability DatabaseVERACODE:46375
HistoryApr 12, 2024 - 3:42 a.m.

Server-side Template Injection (SSTI)

2024-04-1203:42:21
Veracode Vulnerability Database
sca.analysiscenter.veracode.com
7
ssti
vulnerability
jinja
arbitrary code
template engine
factory.py
tokenizer
insufficient sanitization

9.8 High

CVSS3

Attack Vector

NETWORK

Attack Complexity

LOW

Privileges Required

NONE

User Interaction

NONE

Scope

UNCHANGED

Confidentiality Impact

HIGH

Integrity Impact

HIGH

Availability Impact

HIGH

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

8.3 High

AI Score

Confidence

Low

0.0004 Low

EPSS

Percentile

9.1%

litellm is vulnerable to Server-Side Template Injection (SSTI). The vulnerability is due to insufficient sanitization within the hf_chat_template method in factory.py, which processes the chat_template parameter from the tokenizer_config.json file using the Jinja template engine, allowing attackers to execute arbitrary code on the server.

CPENameOperatorVersion
litellmle1.34.41
litellmle1.34.41

9.8 High

CVSS3

Attack Vector

NETWORK

Attack Complexity

LOW

Privileges Required

NONE

User Interaction

NONE

Scope

UNCHANGED

Confidentiality Impact

HIGH

Integrity Impact

HIGH

Availability Impact

HIGH

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

8.3 High

AI Score

Confidence

Low

0.0004 Low

EPSS

Percentile

9.1%

Related for VERACODE:46375