{"id":"CVE-2026-44209","published":"2026-05-26T20:46:56Z","modified":"2026-07-24T12:05:31Z","title":"Banks: Critical Remote Code Execution (RCE) via Jinja2 SSTI","vendor":"masci","product":"banks","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.5,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00737,"percentile":0.50533,"provenance":"source"},"cwes":[{"id":"CWE-1336","name":"Improper Neutralization of Special Elements Used in a Template Engine"},{"id":"CWE-917","name":"Improper Neutralization of Special Elements used in an Expression Language Statement"}],"references":[{"url":"https://github.com/masci/banks/security/advisories/GHSA-gphh-9q3h-jgpp","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/masci/banks/pull/74","tags":["x_refsource_MISC"]},{"url":"https://access.redhat.com/security/cve/CVE-2026-44209","tags":["vdb-entry","x_refsource_REDHAT"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2481713","tags":["issue-tracking","x_refsource_REDHAT"]},{"url":"https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-44209.json","tags":["x_sadp-csaf-vex"]}],"priority":{"score":15.4,"factors":[{"name":"EPSS percentile","points":10.11},{"name":"CVSS severity","points":5.25}]},"vendorSlug":"masci","affectedVersions":[{"vendor":"masci","product":"banks","versions":["< 2.4.2"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"total","timestamp":"2026-05-28T14:07:18.330651Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"banks","vulnerableRanges":["<2.4.2"],"patched":["2.4.2"],"from":["GHSA-gphh-9q3h-jgpp","PYSEC-2026-2390"],"provenance":"source"}],"summary":{"text":"The flaw is a server-side template injection in the banks prompt-rendering library from masci, where versions before 2.4.2 render prompt templates with an unsandboxed jinja2.Environment(). An attacker can achieve remote code execution on the host system when an application passes user-supplied strings as the template argument to Prompt(). Exploitation requires that the vulnerable application build templates from user input and that a user interacts with it in a way that triggers that input to be rendered.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:45:46Z"},"euvd":{"id":"EUVD-2026-31997","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2026-44209","published":"2026-05-26","fixed":"2.4.2","kev":false},{"cve":"CVE-2026-61536","published":"2026-07-30","fixed":"2.4.3","kev":false,"link":{"from":"CVE-2026-44209","to":"CVE-2026-61536","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:banks","fromFixed":"2.4.2","toFixed":"2.4.3","daysApart":65}]}},{"cve":"CVE-2026-71492","published":"2026-08-20","fixed":"2.4.5","kev":false},{"cve":"CVE-2026-107717","published":"2026-10-08","fixed":"2.5.0","kev":false}],"package":"PyPI:banks"}}