# CVE-2026-37004: LiteLLM vulnerable to server-side template injection in the /prompts/test endpoint

- Severity: Critical 9.8 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 2.20%, higher than 83% of CVEs (2026-12-01)
- Published: 2026-08-27T00:00:00.000Z
- Modified: 2026-09-10T12:25:33.314Z
- Also known as: GHSA-6wvf-77m9-58rm, PYSEC-2026-3861
- Weaknesses: CWE-1336
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact total
- Assigned by: mitre

## Description

BerriAI litellm <=1.82.4 is vulnerable to Server-Side Template Injection (SSTI), which allows unauthenticated remote attackers to execute arbitrary OS commands via a crafted dotprompt_content parameter in the /prompts/test endpoint due to use of an unsandboxed jinja2.Environment.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- litellm (PyPI): before 1.83.7

## Every score

- CISA-ADP: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- GitHub: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- PyPA Advisory Database: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://github.com/BerriAI/litellm/blob/244bdffd1bfe7bebdfdef516e1ebe426a898e2f0/litellm/proxy/prompts/prompt_endpoints.py#L1073> (web)
- <https://yerangamage.com/cves/detail/?slug=litellm-ssti-rce> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-37004> (advisory)
- <https://github.com/BerriAI/litellm/commit/d910a95661fce3cdd36f3b06c03ecf9c46c6457c> (web)
- <https://github.com/BerriAI/litellm> (package)
- <https://github.com/BerriAI/litellm/releases/tag/v1.83.7-stable> (web)
- <https://pypi.org/project/litellm> (package)
- <https://github.com/advisories/GHSA-6wvf-77m9-58rm> (advisory)

## Sources

- CVE List: [CVE-2026-37004](https://www.cve.org/CVERecord?id=CVE-2026-37004), CVE Terms of Use, modified 2026-09-01
- GitHub Advisory Database: [GHSA-6wvf-77m9-58rm](https://github.com/advisories/GHSA-6wvf-77m9-58rm), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2026-37004](https://nvd.nist.gov/vuln/detail/CVE-2026-37004), Public domain, modified 2026-09-01
- PyPA Advisory Database: [PYSEC-2026-3861](https://osv.dev/vulnerability/PYSEC-2026-3861), CC-BY-4.0, modified 2026-09-10

---

Page: https://cve.day/CVE-2026-37004 · Whole record: https://cve.day/CVE-2026-37004.json · Rebuilt by cve.day 2026-11-25T22:59:35.523Z
