CVE-2026-42203 json
LiteLLM: Server-Side Template Injection in /prompts/test endpoint
published 2026-04-24 6 mo ago modified 2026-10-26 13 d ago also EUVD-2026-28502 , GHSA-xqmj-j6mv-4862 , PYSEC-2026-2602
- cvss
- 8.8
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.4%
- EPSS 0.4% chance of exploitation in 30 days, percentile 31%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- pypi litellm 1.83.7
- litellm litellm 1.83.7
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2026-42203 updated cvss 8.8
litellm: LiteLLM: Arbitrary code execution via unsandboxed prompt templates
-
Red Hat Ansible Automation Platform 2 ansible-automation-platform-26/lightspeed-chatbot-rhel9affected: workaround, no fix available
-
Red Hat Exploit Intelligence exploit-intelligence-tech-preview/vulnerability-analysis-rhel9 Red Hat OpenShift AI (RHOAI) rhoai/odh-llama-stack-core-rhel9not affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- total
- Assessed
- 6 mo ago
Exploit prediction
0.37% chance of exploitation in the next 30 days, higher than 31% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 4.0 | 8.6 | 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 |
| CISA ADP | 3.1 | 8.8 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| CNA | 4.0 | 8.6 | 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X |
| NVD | 3.1 | 8.8 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| CNA | 3.1 | 8.8 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| pypi | litellm | >=1.80.5, <1.83.7 |
1.83.7 |
Affected products
- BerriAI litellm
- Red Hat Exploit Intelligence
- Red Hat Red Hat Ansible Automation Platform 2
- Red Hat Red Hat OpenShift AI (RHOAI)
Classification
References
-
github.com
/BerriAI/litellm/security/advisories/GHSA-xqmj-j6mv-4862
web, mitigation, patch, vendor-advisory
-
github.com
/BerriAI/litellm/releases/tag/v1.83.7-stable
web, product, release-notes
-
access.redhat.com
/security/cve/CVE-2026-42203
vdb-entry
-
bugzilla.redhat.com
/show_bug.cgi?id=2467917
issue-tracking
- security.access.redhat.com /data/csaf/v2/vex/2026/cve-2026-42203.json
-
nvd.nist.gov
/vuln/detail/CVE-2026-42203
advisory
-
github.com
/BerriAI/litellm
package
-
pypi.org
/project/litellm
package
-
github.com
/advisories/GHSA-xqmj-j6mv-4862
advisory
Sources
- CVE List CVE-2026-42203
- GitHub Advisory GHSA-xqmj-j6mv-4862
- NVD CVE-2026-42203
- OSV PYSEC-2026-2602
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.
CPEs and fixed versions use Anchore's correction of NVD's data: Added CPE configurations because not yet analyzed by NVD.