Skip to main content
VulnerabilityPublished Updated

CVE-2026-42203: BerriAI litellm · Template Injection

Affects BerriAI litellmSource CVE Database V5

0
Compare

Not known to be exploited · CVSS 8.6 High : upgrade to 1.83.7 soon.

Data as of 30 Oct 2026, 11:52 UTC

CVSS 4.0 base score
8.6High
How severe the flaw is on the 0–10 CVSS scale.
EPSS
0.3% chance of exploitation in 30 days – higher than 31% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
Patch
Available – fixed in 1.83.7
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 8 May 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: evidence found.

    Public exploit code: GitHub proofs of concept

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), GitHub proofs of concept, the Metasploit, Exploit-DB and nuclei-templates index as of 30 Oct 2026.

What to do

Upgrade litellm and berriai/litellm to 1.83.7.

Affected software

ProductAffectedFixed in
BerriAIlitellmAffected
  • >=1.80.5 <1.83.7
Fixed in
  • 1.83.7
GitHubberriai/litellmpkg:github/berriai/litellmOther threatsAffected
  • <1.83.7 >=1.80.5
Fixed in
  • 1.83.7

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

Upgrade LiteLLM to version 1.83.7 or later, where this vulnerability is patched. Since the vendor advisory does not indicate any alternative mitigations or temporary fixes, applying the official update is the recommended remediation. Restrict access to the proxy API key to trusted users to reduce risk until patched.

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.

References

Community reviews

Loading reviews…