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: 9.8 Critical
EPSS: < 1% Very Low
KEV: No
Impact: Remote Code Execution
Action: Immediate Patch
AI Analysis

Impact

BerriAI litellm versions up to 1.82.4 are vulnerable to Server‑Side Template Injection caused by an unsandboxed Jinja2 environment. An attacker can supply a crafted dotprompt_content parameter to the /prompts/test endpoint, which is evaluated as a Jinja2 template. This evaluation leads to the execution of arbitrary operating‑system commands, giving the attacker full control over the service host.

Affected Systems

The affected product is BerriAI litellm, with all releases up to and including version 1.82.4 impacted. Any deployment of these versions that has not applied a fix remains vulnerable.

Risk and Exploitability

The CVSS score is 9.8 and the EPSS score is less than 1 %. While the exploitation probability is low, the impact of successful exploitation is catastrophic: remote code execution without authentication. The vulnerability is accessed via a reachable HTTP endpoint, and no KEV listing indicates it has not yet been widely exploited in the wild, but the flaw’s severity warrants urgent remediation.

Generated by OpenCVE AI on September 1, 2026 at 00:21 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade BerriAI litellm to a version newer than 1.82.4 as soon as the vendor releases a patch
  • Disable or protect the /prompts/test endpoint by requiring authentication or restricting access
  • Configure Jinja2 to use a sandboxed environment or sanitize input before rendering to prevent template execution

Generated by OpenCVE AI on September 1, 2026 at 00:21 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Github GHSA Github GHSA GHSA-6wvf-77m9-58rm LiteLLM vulnerable to server-side template injection in the /prompts/test endpoint
History

Tue, 01 Sep 2026 04:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}


Tue, 01 Sep 2026 00:45:00 +0000

Type Values Removed Values Added
Title Server‑Side Template Injection in BerriAI litellm Enables Remote Code Execution

Mon, 31 Aug 2026 23:15:00 +0000

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

Mon, 31 Aug 2026 21:30:00 +0000

Type Values Removed Values Added
Weaknesses CWE-1336
Metrics cvssV3_1

{'score': 9.8, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H'}


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-09-01T03:56:26.290Z

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

Link: CVE-2026-37004

cve-icon Vulnrichment

Updated: 2026-08-31T20:44:56.035Z

cve-icon NVD

Status : Deferred

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

Modified: 2026-09-01T04:18:00.997

Link: CVE-2026-37004

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-09-01T00:30:05Z

Weaknesses
  • CWE-1336

    Improper Neutralization of Special Elements Used in a Template Engine