CVE-2026-42203
highpriority · attend · 45EPSS 0.004 · 31 %ileexploit · PoCDEEUUSEPSS · scored 2026-10-26
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.
cvss
Technical severity, 0–10. One row per scoring source.
base score 0–10 · higher = more severe · hover a vector to decode
ssvc
A stakeholder decision — act, attend, or track — from exploitation and impact.
weaknesses
The CWE weakness classes this flaw belongs to.
exploits (1)
Public proof-of-concept and weaponised exploit code.
- Astianjy/CVE-2026-42203Astianjy/CVE-2026-42203PoC · poc_in_github
affected products (5)
Products and version ranges known to be affected.
advisories (3)
Vendor and ecosystem advisories describing this.
- WID-SEC-W-2026-1422LiteLLM: Schwachstelle ermöglicht Codeausführung und Offenlegung von InformationenDeutsch2026-05-07csaf · cert_bundDE
Ein entfernter, authentisierter Angreifer kann eine Schwachstelle in LiteLLM ausnutzen, um beliebigen Programmcode auszuführen, und um Informationen offenzulegen.
- GHSA-xqmj-j6mv-4862LiteLLM: Server-Side Template Injection in /prompts/test endpoint2026-04-24ghsa · osvUS
### Impact 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. Proxy deployments running an affected version are in scope. ### Patches The issue is fixed in **`1.83.7-stable`**. The fix switches the prompt template renderer to a sandboxed environment that blocks the attributes this attack relies on. LiteLLM recommends upgrading to `1.83.7-stable` or later. ### Workarounds If upgrading is not immediately possible: 1. Block `POST /prompts/test` at your reverse proxy or API gateway. 2. Review and rotate API keys that should not have access to prompt management routes.
- PYSEC-2026-2602LiteLLM: Server-Side Template Injection in /prompts/test endpoint2026-07-13vendor · osvUS
### Impact 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. Proxy deployments running an affected version are in scope. ### Patches The issue is fixed in **`1.83.7-stable`**. The fix switches the prompt template renderer to a sandboxed environment that blocks the attributes this attack relies on. LiteLLM recommends upgrading to `1.83.7-stable` or later. ### Workarounds If upgrading is not immediately possible: 1. Block `POST /prompts/test` at your reverse proxy or API gateway. 2. Review and rotate API keys that should not have access to prompt management routes.
also known as (5)
Other names and identifiers for this entity.
sources
Which sources assert this record, and when.
references (9)
External citations — patches, advisories, analysis.
- https://github.com/BerriAI/litellm/releasesPatchcnnvd
- https://nvd.nist.gov/vuln/detail/CVE-2026-42203cnnvd
- https://github.com/BerriAI/litellm/releases/tag/v1.83.7-stableenisa_euvd
- https://github.com/BerriAI/litellm/security/advisories/GHSA-xqmj-j6mv-4862enisa_euvd
- https://access.redhat.com/security/cve/CVE-2026-42203nvd
- https://bugzilla.redhat.com/show_bug.cgi?id=2467917nvd
- https://github.com/BerriAI/litellm/releases/tag/v1.83.7-stableProductRelease Notesnvd
- https://github.com/BerriAI/litellm/security/advisories/GHSA-xqmj-j6mv-4862MitigationPatchVendor Advisorynvd
Attackers weaponise vulnerabilities like this against internet-exposed services. See what is exposed on your perimeter with a free passive scan.
Free scan