Banks: Critical Remote Code Execution (RCE) via Jinja2 SSTI
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- Required
- Attack complexity
- High
- Impact type
- Code execution
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Partial Red Hat: 2 without a fix
Attack profile from CVSS 3.1 · CNA. Fix status from CNA, GitHub and Red Hat. Impact type from CWE-1336.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- No
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| masci | banks | before 2.4.2 | 2.4.2 | Patch available | CNA |
| — | banks (PyPI) | before 2.4.2 | 2.4.2 | Patch available | GHSA-gphh-9q3h-jgpp |
- banks Vendormasci Affected before 2.4.2 Fixed in 2.4.2 Patch available CNA
- banks (PyPI) Vendor— Affected before 2.4.2 Fixed in 2.4.2 Patch available GHSA-gphh-9q3h-jgpp
Remediation
- Fix · CNA banks (masci) Fixed in 2.4.2
- Fix · GHSA-gphh-9q3h-jgpp banks (PyPI) Fixed in 2.4.2 Advisory →
Vendor assessments
Red Hat
Red Hat rating: Important. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Exploit Intelligence | Affected | No fix yet |
| Red Hat Ansible Automation Platform 2 | Affected | No fix planned: Will not fix |
Not affected: 1 product
- OpenShift Lightspeed
Timeline
- 2026-10-02 Threatist record created from CVE-2026-44209
- 2026-10-03 Alias added: GHSA-gphh-9q3h-jgpp
- 2026-10-25 EPSS moved to the below the 50th percentile
References
More masci vulnerabilities
- TI-2026-44773 Banks: Arbitrary File Read via Path Traversal in Media Filters (image/audio/video/document) CVSS 3.1HIGH 7.5
- TI-2026-69696 Banks parses untrusted prompt input as privileged chat messages CVSS 3.1MEDIUM 6.5
- TI-2026-44099 Banks: Unsafe importlib.import_module of attacker-controlled Tool.import_path in CompletionExtension allows RCE CVSS 3.1HIGH 7.5
- TI-2026-50100 Banks: Path traversal in `DirectoryPromptRegistry.set()` allows arbitrary file write outside the registry root CVSS 4.0MEDIUM 6.0
- TI-2026-69682 Symlink traversal in Banks DirectoryPromptRegistry CVSS 4.0HIGH 7.3
Sources
- CVE-2026-44209 · CVE Program
- CVE-2026-44209 · NVD
- FIRST EPSS
- GHSA-gphh-9q3h-jgpp · GitHub Advisory Database · CC BY 4.0
- CVE-2026-44209 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences