{"id":"CVE-2026-42203","aliases":["GHSA-xqmj-j6mv-4862","PYSEC-2026-2602","WID-SEC-W-2026-1422"],"summary":"LiteLLM: Server-Side Template Injection in /prompts/test endpoint","published_at":"2026-04-24T16:02:42Z","modified_at":"2026-09-10T03:50:45.007056Z","products":[],"rating":{"severity":"high","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","attack_path":"internet_authenticated","user_interaction":false,"malicious":false,"red_hat":"Important","vendor_ratings":[{"source":"BSI","rating":"hoch"},{"source":"Red Hat","rating":"Important"}]},"fix_available":false,"kev":{"listed":false,"ransomware":false},"public_exploit":false,"exploits":[],"epss":{"score":0.0037299999967217445,"percentile":0.3197999894618988,"date":"2026-11-19T00:00:00Z"},"priority":9.8,"details":"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.","affected_stack":[],"affected_other":[{"ecosystem":"CVE","package":"BerriAI/litellm","versions":[">= 1.80.5, < 1.83.7"],"provider":"cvelistv5","source":"CVE-2026-42203","relation":"self"},{"ecosystem":"NVD","package":"litellm:litellm","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"1.80.5"},{"fixed":"1.83.7"}]}],"fixed":["1.83.7"],"provider":"nvd","source":"CVE-2026-42203","relation":"self"},{"ecosystem":"PyPI","package":"litellm","purl":"pkg:pypi/litellm","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"1.80.5"},{"fixed":"1.83.7"}]}],"versions":["1.80.10","1.80.11","1.80.12","1.80.13","1.80.15","1.80.16","1.80.17","1.80.5","1.80.6","1.80.7","1.80.8","1.80.9","1.81.0","1.81.1","1.81.10","1.81.11","1.81.12","1.81.13","1.81.14","1.81.15","1.81.16","1.81.3","1.81.4","1.81.5","1.81.6","1.81.7","1.81.8","1.81.9","1.81.9.dev1","1.82.0","1.82.1","1.82.2","1.82.3","1.82.4","1.82.5","1.82.6","1.83.0","1.83.1","1.83.2","1.83.3","1.83.4","1.83.5","1.83.6"],"fixed":["1.83.7"],"provider":"osv","source":"GHSA-xqmj-j6mv-4862","relation":"self"},{"ecosystem":"PyPI","package":"litellm","purl":"pkg:pypi/litellm","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"1.80.5"},{"fixed":"1.83.7"}]}],"versions":["1.80.10","1.80.11","1.80.12","1.80.13","1.80.15","1.80.16","1.80.17","1.80.5","1.80.6","1.80.7","1.80.8","1.80.9","1.81.0","1.81.1","1.81.10","1.81.11","1.81.12","1.81.13","1.81.14","1.81.15","1.81.16","1.81.3","1.81.4","1.81.5","1.81.6","1.81.7","1.81.8","1.81.9","1.81.9.dev1","1.82.0","1.82.1","1.82.2","1.82.3","1.82.4","1.82.5","1.82.6","1.83.0","1.83.1","1.83.2","1.83.3","1.83.4","1.83.5","1.83.6"],"fixed":["1.83.7"],"provider":"osv","source":"PYSEC-2026-2602","relation":"self"}],"product_status":[{"vendor":"BSI","product":"Open Source LiteLLM <1.83.7","status":"affected","packages":[],"package_count":0,"fixed":[],"advisories":[],"provider":"csaf-bsi","source":"WID-SEC-W-2026-1422"},{"vendor":"Red Hat","product":"Exploit Intelligence","cpe":"cpe:/a:redhat:exploit_intelligence:0","status":"not_affected","packages":["exploit-intelligence-tech-preview/vulnerability-analysis-rhel9"],"package_count":1,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2026-42203"},{"vendor":"Red Hat","product":"Red Hat Ansible Automation Platform 2","cpe":"cpe:/a:redhat:ansible_automation_platform:2","status":"affected","packages":["ansible-automation-platform-26/lightspeed-chatbot-rhel9"],"package_count":1,"fixed":[],"advisories":[],"note":"Affected","provider":"redhat-vex","source":"CVE-2026-42203"},{"vendor":"Red Hat","product":"Red Hat OpenShift AI (RHOAI)","cpe":"cpe:/a:redhat:openshift_ai","status":"not_affected","packages":["rhoai/odh-llama-stack-core-rhel9"],"package_count":1,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2026-42203"}],"records":[{"provider":"cvelistv5","source_id":"CVE-2026-42203","relation":"self","url":"https://www.cve.org/CVERecord?id=CVE-2026-42203","license":"CC-BY-4.0","published_at":"2026-05-08T03:36:58.648Z","modified_at":"2026-07-15T00:58:06.313Z","summary":"LiteLLM: Server-Side Template Injection in /prompts/test endpoint","details":"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.","severity":[{"type":"CVSS_V4","score":"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","source":"CVE-2026-42203"},{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","source":"redhat-SADP:CVE-2026-42203"}],"affected":[{"ecosystem":"CVE","package":"BerriAI/litellm","versions":[">= 1.80.5, < 1.83.7"],"provider":"cvelistv5","source":"CVE-2026-42203","relation":"self"}],"product_status":[],"references":[{"type":"WEB","url":"https://github.com/BerriAI/litellm/security/advisories/GHSA-xqmj-j6mv-4862"},{"type":"WEB","url":"https://github.com/BerriAI/litellm/releases/tag/v1.83.7-stable"}]},{"provider":"csaf-bsi","source_id":"WID-SEC-W-2026-1422","relation":"self","url":"https://wid.cert-bund.de/portal/wid/securityadvisory?name=WID-SEC-2026-1422","license":"TLP:CLEAR, mirroring permitted","published_at":"2026-05-07T22:00:00Z","modified_at":"2026-05-07T22:00:00Z","summary":"LiteLLM: Schwachstelle ermöglicht Codeausführung und Offenlegung von Informationen","details":"Ein entfernter, authentisierter Angreifer kann eine Schwachstelle in LiteLLM ausnutzen, um beliebigen Programmcode auszuführen, und um Informationen offenzulegen.\n\nLiteLLM ist ein Gateway, das eine einheitliche Schnittstelle für verschiedene Large Language Models (LLMs) bietet.","severity":[{"type":"BSI","score":"hoch","source":"WID-SEC-W-2026-1422"}],"affected":[],"product_status":[{"vendor":"BSI","product":"Open Source LiteLLM <1.83.7","status":"affected","packages":[],"package_count":0,"fixed":[],"advisories":[],"provider":"csaf-bsi","source":"WID-SEC-W-2026-1422"}],"references":[{"type":"WEB","url":"https://wid.cert-bund.de/.well-known/csaf/white/2026/wid-sec-w-2026-1422.json"},{"type":"WEB","url":"https://wid.cert-bund.de/portal/wid/securityadvisory?name=WID-SEC-2026-1422"},{"type":"WEB","url":"https://github.com/BerriAI/litellm/security/advisories/GHSA-xqmj-j6mv-4862"},{"type":"WEB","url":"https://euvd.enisa.europa.eu/enisa/EUVD-2026-28502"}]},{"provider":"nvd","source_id":"CVE-2026-42203","relation":"self","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-42203","severity":[],"affected":[{"ecosystem":"NVD","package":"litellm:litellm","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"1.80.5"},{"fixed":"1.83.7"}]}],"fixed":["1.83.7"],"provider":"nvd","source":"CVE-2026-42203","relation":"self"}],"product_status":[],"references":[]},{"provider":"osv","source_id":"GHSA-xqmj-j6mv-4862","relation":"self","url":"https://osv.dev/vulnerability/GHSA-xqmj-j6mv-4862","license":"CC-BY-4.0","published_at":"2026-04-24T16:02:42Z","modified_at":"2026-09-10T03:50:45.007056Z","summary":"LiteLLM: Server-Side Template Injection in /prompts/test endpoint","details":"### Impact\nThe `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.\n\nThe 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.\n\nProxy deployments running an affected version are in scope.\n\n### Patches\nThe 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.\n\nLiteLLM recommends upgrading to `1.83.7-stable` or later.\n\n### Workarounds\nIf upgrading is not immediately possible:\n\n1. Block `POST /prompts/test` at your reverse proxy or API gateway.\n2. Review and rotate API keys that should not have access to prompt management routes.","severity":[{"type":"CVSS_V4","score":"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","source":"GHSA-xqmj-j6mv-4862"}],"affected":[{"ecosystem":"PyPI","package":"litellm","purl":"pkg:pypi/litellm","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"1.80.5"},{"fixed":"1.83.7"}]}],"versions":["1.80.10","1.80.11","1.80.12","1.80.13","1.80.15","1.80.16","1.80.17","1.80.5","1.80.6","1.80.7","1.80.8","1.80.9","1.81.0","1.81.1","1.81.10","1.81.11","1.81.12","1.81.13","1.81.14","1.81.15","1.81.16","1.81.3","1.81.4","1.81.5","1.81.6","1.81.7","1.81.8","1.81.9","1.81.9.dev1","1.82.0","1.82.1","1.82.2","1.82.3","1.82.4","1.82.5","1.82.6","1.83.0","1.83.1","1.83.2","1.83.3","1.83.4","1.83.5","1.83.6"],"fixed":["1.83.7"],"provider":"osv","source":"GHSA-xqmj-j6mv-4862","relation":"self"}],"product_status":[],"references":[{"type":"WEB","url":"https://github.com/BerriAI/litellm/security/advisories/GHSA-xqmj-j6mv-4862"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-42203"},{"type":"PACKAGE","url":"https://github.com/BerriAI/litellm"},{"type":"WEB","url":"https://github.com/BerriAI/litellm/releases/tag/v1.83.7-stable"}]},{"provider":"osv","source_id":"PYSEC-2026-2602","relation":"self","url":"https://osv.dev/vulnerability/PYSEC-2026-2602","license":"CC-BY-4.0","published_at":"2026-07-13T15:02:53.26715Z","modified_at":"2026-07-13T16:32:04.546343Z","summary":"LiteLLM: Server-Side Template Injection in /prompts/test endpoint","details":"### Impact\nThe `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.\n\nThe 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.\n\nProxy deployments running an affected version are in scope.\n\n### Patches\nThe 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.\n\nLiteLLM recommends upgrading to `1.83.7-stable` or later.\n\n### Workarounds\nIf upgrading is not immediately possible:\n\n1. Block `POST /prompts/test` at your reverse proxy or API gateway.\n2. Review and rotate API keys that should not have access to prompt management routes.","severity":[{"type":"CVSS_V4","score":"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","source":"PYSEC-2026-2602"}],"affected":[{"ecosystem":"PyPI","package":"litellm","purl":"pkg:pypi/litellm","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"1.80.5"},{"fixed":"1.83.7"}]}],"versions":["1.80.10","1.80.11","1.80.12","1.80.13","1.80.15","1.80.16","1.80.17","1.80.5","1.80.6","1.80.7","1.80.8","1.80.9","1.81.0","1.81.1","1.81.10","1.81.11","1.81.12","1.81.13","1.81.14","1.81.15","1.81.16","1.81.3","1.81.4","1.81.5","1.81.6","1.81.7","1.81.8","1.81.9","1.81.9.dev1","1.82.0","1.82.1","1.82.2","1.82.3","1.82.4","1.82.5","1.82.6","1.83.0","1.83.1","1.83.2","1.83.3","1.83.4","1.83.5","1.83.6"],"fixed":["1.83.7"],"provider":"osv","source":"PYSEC-2026-2602","relation":"self"}],"product_status":[],"references":[{"type":"WEB","url":"https://github.com/BerriAI/litellm/security/advisories/GHSA-xqmj-j6mv-4862"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-42203"},{"type":"PACKAGE","url":"https://github.com/BerriAI/litellm"},{"type":"WEB","url":"https://github.com/BerriAI/litellm/releases/tag/v1.83.7-stable"},{"type":"PACKAGE","url":"https://pypi.org/project/litellm"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-xqmj-j6mv-4862"}]},{"provider":"redhat-vex","source_id":"CVE-2026-42203","relation":"self","url":"https://access.redhat.com/security/cve/CVE-2026-42203","license":"CC-BY-4.0","published_at":"2026-05-08T03:36:58.648Z","modified_at":"2026-05-18T12:38:23Z","summary":"litellm: LiteLLM: Arbitrary code execution via unsandboxed prompt templates","details":"A flaw was found in LiteLLM, an AI Gateway. An authenticated user could exploit this by sending a crafted prompt template to the POST /prompts/test endpoint. The endpoint rendered user-supplied prompt templates without proper sandboxing. This could lead to arbitrary code execution within the LiteLLM Proxy process, potentially exposing sensitive information such as API keys or database credentials, and allowing commands to be run on the host system.","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","source":"CVE-2026-42203"},{"type":"Red Hat","score":"Important","source":"CVE-2026-42203"}],"affected":[],"product_status":[{"vendor":"Red Hat","product":"Exploit Intelligence","cpe":"cpe:/a:redhat:exploit_intelligence:0","status":"not_affected","packages":["exploit-intelligence-tech-preview/vulnerability-analysis-rhel9"],"package_count":1,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2026-42203"},{"vendor":"Red Hat","product":"Red Hat Ansible Automation Platform 2","cpe":"cpe:/a:redhat:ansible_automation_platform:2","status":"affected","packages":["ansible-automation-platform-26/lightspeed-chatbot-rhel9"],"package_count":1,"fixed":[],"advisories":[],"note":"Affected","provider":"redhat-vex","source":"CVE-2026-42203"},{"vendor":"Red Hat","product":"Red Hat OpenShift AI (RHOAI)","cpe":"cpe:/a:redhat:openshift_ai","status":"not_affected","packages":["rhoai/odh-llama-stack-core-rhel9"],"package_count":1,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2026-42203"}],"references":[{"type":"WEB","url":"https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-42203.json"},{"type":"WEB","url":"https://access.redhat.com/security/cve/CVE-2026-42203"},{"type":"WEB","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2467917"},{"type":"WEB","url":"https://www.cve.org/CVERecord?id=CVE-2026-42203"},{"type":"WEB","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-42203"},{"type":"WEB","url":"https://github.com/BerriAI/litellm/releases/tag/v1.83.7-stable"},{"type":"WEB","url":"https://github.com/BerriAI/litellm/security/advisories/GHSA-xqmj-j6mv-4862"}]}],"references":[{"type":"WEB","url":"https://github.com/BerriAI/litellm/security/advisories/GHSA-xqmj-j6mv-4862"},{"type":"WEB","url":"https://github.com/BerriAI/litellm/releases/tag/v1.83.7-stable"},{"type":"WEB","url":"https://wid.cert-bund.de/.well-known/csaf/white/2026/wid-sec-w-2026-1422.json"},{"type":"WEB","url":"https://wid.cert-bund.de/portal/wid/securityadvisory?name=WID-SEC-2026-1422"},{"type":"WEB","url":"https://euvd.enisa.europa.eu/enisa/EUVD-2026-28502"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-42203"},{"type":"PACKAGE","url":"https://github.com/BerriAI/litellm"},{"type":"PACKAGE","url":"https://pypi.org/project/litellm"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-xqmj-j6mv-4862"},{"type":"WEB","url":"https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-42203.json"},{"type":"WEB","url":"https://access.redhat.com/security/cve/CVE-2026-42203"},{"type":"WEB","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2467917"},{"type":"WEB","url":"https://www.cve.org/CVERecord?id=CVE-2026-42203"}],"sources":[{"provider":"cvelistv5","source_id":"CVE-2026-42203","url":"https://www.cve.org/CVERecord?id=CVE-2026-42203","license":"CC-BY-4.0","modified_at":"2026-07-15T00:58:06.313Z","relation":"self"},{"provider":"csaf-bsi","source_id":"WID-SEC-W-2026-1422","url":"https://wid.cert-bund.de/portal/wid/securityadvisory?name=WID-SEC-2026-1422","license":"TLP:CLEAR, mirroring permitted","modified_at":"2026-05-07T22:00:00Z","relation":"self"},{"provider":"nvd","source_id":"CVE-2026-42203","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-42203","relation":"self"},{"provider":"osv","source_id":"GHSA-xqmj-j6mv-4862","url":"https://osv.dev/vulnerability/GHSA-xqmj-j6mv-4862","license":"CC-BY-4.0","modified_at":"2026-09-10T03:50:45.007056Z","relation":"self"},{"provider":"osv","source_id":"PYSEC-2026-2602","url":"https://osv.dev/vulnerability/PYSEC-2026-2602","license":"CC-BY-4.0","modified_at":"2026-07-13T16:32:04.546343Z","relation":"self"},{"provider":"redhat-vex","source_id":"CVE-2026-42203","url":"https://access.redhat.com/security/cve/CVE-2026-42203","license":"CC-BY-4.0","modified_at":"2026-05-18T12:38:23Z","relation":"self"}]}
