Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1000 CNY

100.0%

CVE-2026-42203— LiteLLM: Server-Side Template Injection in /prompts/test endpoint

EPSS 0.05% · P14
Get alerts for future matching vulnerabilitiesLog in to subscribe

I. Basic Information for CVE-2026-42203

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
LiteLLM: Server-Side Template Injection in /prompts/test endpoint
Source: NVD (National Vulnerability Database)
Vulnerability Description
LiteLLM is a proxy server (AI Gateway) to call LLM APIs in OpenAI (or native) format. From version 1.80.5 to before version 1.83.7, the POST /prompts/test endpoint accepted user-supplied prompt templates and rendered them without sandboxing. A crafted template could run arbitrary code inside the LiteLLM Proxy process. The endpoint only checks that the caller presents a valid proxy API key, so any authenticated user could reach it. Depending on how the proxy is deployed, this could expose secrets in the process environment (such as provider API keys or database credentials) and allow commands to be run on the host. This issue has been patched in version 1.83.7.
Source: NVD (National Vulnerability Database)
CVSS Information
N/A
Source: NVD (National Vulnerability Database)
Vulnerability Type
CWE-1336
Source: NVD (National Vulnerability Database)
Vulnerability Title
LiteLLM 安全漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
LiteLLM是Berri AI开源的一个应用程序。可以使用 OpenAI 格式调用所有 LLM API。 LiteLLM 1.80.5版本至1.83.7之前版本存在安全漏洞,该漏洞源于POST /prompts/test端点接受用户提供的提示模板且无沙箱渲染,可能导致特制模板在LiteLLM代理进程中运行任意代码,任何拥有有效代理API密钥的认证用户均可利用,可能暴露进程环境中的秘密并允许在主机上运行命令。
Source: CNNVD (China National Vulnerability Database)
CVSS Information
N/A
Source: CNNVD (China National Vulnerability Database)
Vulnerability Type
N/A
Source: CNNVD (China National Vulnerability Database)

Affected Products

VendorProductAffected VersionsCPESubscribe
BerriAIlitellm >= 1.80.5, < 1.83.7 -

II. Public POCs for CVE-2026-42203

#POC DescriptionSource LinkShenlong Link
AI-Generated POCPremium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2026-42203

登录查看更多情报信息。

Same Patch Batch · BerriAI · 2026-05-08 · 3 CVEs total

CVE-2026-42271LiteLLM: Authenticated command execution via MCP stdio test endpoints
CVE-2026-42208LiteLLM: SQL injection in Proxy API key verification

IV. Related Vulnerabilities

V. Comments for CVE-2026-42203

No comments yet


Leave a comment