CVE-2026-44209

Banks: Critical Remote Code Execution (RCE) via Jinja2 SSTI

Published May 26, 2026 CVSS 3.1 · 7.5 High EPSS < 1% KEV · Not listed
Description
Banks generates meaningful LLM prompts using a template language that makes sense. Prior to 2.4.2, banks uses jinja2.Environment() (unsandboxed) to render prompt templates. Applications that pass user-supplied strings as the template argument to Prompt() are vulnerable to Server-Side Template Injection (SSTI), which can lead to Remote Code Execution (RCE) on the host system. This vulnerability is fixed in 2.4.2.

Analysis

AI-generated

Technical impact

Banks renders LLM prompt templates using Jinja2’s Environment without sandboxing. When an application passes a user‑supplied string directly to the Prompt() function, the unsanitised template can execute arbitrary Python code. This leads to remote code execution on the host and is classified as a server‑side template injection flaw (CWE-1336) and a code execution vulnerability (CWE-917).

Affected Systems

The affected product is Banks from the masci organization. Versions earlier than 2.4.2 use the vulnerable rendering engine and are therefore impacted. The issue is fixed in 2.4.2, with no additional patch information provided.

Risk and Exploitability

The CVSS score is 7.5, indicating high severity, and the EPSS score of 0.00539, which translates to a very low current exploitation probability. The vulnerability is not listed in CISA KEV. Because the attack requires supplying a malicious template string to Prompt(), it can be executed remotely from any interface that allows user‑provided prompt content. Successful exploitation results in full code execution on the server hosting Banks.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Banks to version 2.4.2 or later, which removes the unsandboxed Jinja2 rendering.
  • If an upgrade cannot be performed immediately, hard‑enforce that the Prompt() function receives only pre‑validated or constant templates and rejects any dynamic user‑supplied strings.
  • Consider reimplementing the prompt rendering with a sandboxed Jinja2 environment or an alternative safe templating library to mitigate future injection risks.

Generated by OpenCVE AI on August 13, 2026 at 23:34 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-gphh-9q3h-jgpp banks has Critical Remote Code Execution (RCE) via Jinja2 SSTI
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Masci
Masci banks
Vendors & Products Masci
Masci banks
Type Values Removed Values Added
Description Banks generates meaningful LLM prompts using a template language that makes sense. Prior to 2.4.2, banks uses jinja2.Environment() (unsandboxed) to render prompt templates. Applications that pass user-supplied strings as the template argument to Prompt() are vulnerable to Server-Side Template Injection (SSTI), which can lead to Remote Code Execution (RCE) on the host system. This vulnerability is fixed in 2.4.2.
Title Banks: Critical Remote Code Execution (RCE) via Jinja2 SSTI
Weaknesses CWE-1336
References
Metrics cvssV3_1

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

Weaknesses
  • CWE-1336

    Improper Neutralization of Special Elements Used in a Template Engine

  • CWE-917

    Improper Neutralization of Special Elements used in an Expression Language Statement ('Expression Language Injection')

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Jul 24, 2026, 12:05 PM
Reserved
May 5, 2026, 3:13 PM
Status
Deferred
Published
May 26, 2026, 9:16 PM
Modified
Jul 24, 2026, 1:18 PM