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.
Published: 2026-08-27
Score: n/a
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

BerriAI lesellm versions up to and including 1.82.4 are vulnerable to Server‑Side Template Injection, which allows an unauthenticated attacker to execute arbitrary operating‑system commands. The flaw stems from using an unsandboxed Jinja2 environment that evaluates attacker‑supplied template content. An attacker can trigger the vulnerability by sending a crafted dotprompt_content payload to the /prompts/test endpoint, leading to code execution under the service account.

Affected Systems

The affected product is BerriAI’s Litellm, impacting all releases up to and including version 1.82.4. Any deployment of these versions without the fix is vulnerable.

Risk and Exploitability

The CVE does not list explicit CVSS or EPSS scores, and it is not included in the CISA KEV catalog, but the nature of the flaw—unauthenticated remote code execution via a reachable HTTP endpoint—suggests a high potential impact. Once a request is made to the vulnerable endpoint, an attacker can fully control the host machine, implying critical risk until mitigated.

Generated by OpenCVE AI on August 28, 2026 at 06:30 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade BerriAI litellm to a version newer than 1.82.4 once the vendor releases a patch
  • Restrict or disable the /prompts/test endpoint and enforce authentication to prevent unauthenticated access
  • Configure Jinja2 to use a sandboxed environment or sanitize input before rendering to eliminate template execution

Generated by OpenCVE AI on August 28, 2026 at 06:30 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Fri, 28 Aug 2026 07:00:00 +0000

Type Values Removed Values Added
Title Litellm SSTI Vulnerability Enabling Unauthenticated Remote Code Execution
Weaknesses CWE-94

Fri, 28 Aug 2026 06:00:00 +0000

Type Values Removed Values Added
First Time appeared Berriai
Berriai litellm
Vendors & Products Berriai
Berriai litellm

Thu, 27 Aug 2026 18:00:00 +0000

Type Values Removed Values Added
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.
References

cve-icon MITRE

Status: PUBLISHED

Assigner: mitre

Published:

Updated: 2026-08-27T17:25:36.371Z

Reserved: 2026-04-06T00:00:00.000Z

Link: CVE-2026-37004

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-08-27T20:17:41.270

Modified: 2026-08-27T20:17:41.270

Link: CVE-2026-37004

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-28T06:45:04Z

Weaknesses
  • CWE-94

    Improper Control of Generation of Code ('Code Injection')