cve.bz

CVE-2026-44209 masci banks: Expression Language Injection

7.5 highEPSS 0.4%Fix available

High (7.5) in masci banks. EPSS 0.4% estimated probability of exploitation activity in the next 30 days. Fixed in banks 2.4.2.

On this page
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.

Severity

CVSS 3.1

7.5 high
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H
EPSS
0.4% (unchanged from 0.4% a week ago; 0.7% 30 days ago) estimated probability of exploitation activity in the next 30 days; 37th percentile. Scored 2026-11-23. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: PoC · Automatable: no · Technical impact: total, assessed 2026-05-28. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWEs
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)
OWASP Top 10
A05:2025 Injection
Published
Modified
NVD analysis
Deferred: the NVD does not plan to analyze it
Record from
the NVD, synced

Fix and patched versions

  • banks (PyPI): fixed in 2.4.2

Ask an AI about this CVE

Show the promptExplain CVE-2026-44209 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-44209?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-44209?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-44209 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
masci banks< 2.4.2

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-gphh-9q3h-jgppPyPIbanks<2.4.22.4.2
PYSEC-2026-2390PyPIbanks<2.4.22.4.2

Red Hat

Red Hat rates this Important.

Red Hat's statement

This Important flaw in the `banks` library allows remote code execution through Server-Side Template Injection (SSTI). The vulnerability arises when applications using `banks` pass unsanitized, user-supplied strings directly as template arguments to the `Prompt()` function, which then renders these templates in an unsandboxed environment. Exploitation requires the application to pass user-controlled data into `Prompt()` template function, which is not a standard procedure - limiting the attack's overall complexity.

Red Hat's mitigation

To mitigate this issue, applications utilizing the `banks` library should avoid passing user-controlled data into `Prompt()` sink. This prevents malicious input from being interpreted as template code, thereby reducing the risk of Server-Side Template Injection and subsequent remote code execution. Recommended to update to patched version.

ProductPackageStateAdvisory
Exploit Intelligenceexploit-intelligence-tech-preview/vulnerability-analysis-rhel9Affected
OpenShift Lightspeedopenshift-lightspeed/lightspeed-ocp-rag-rhel9Not affected
OpenShift Lightspeedopenshift-lightspeed/lightspeed-service-api-rhel9Not affected
OpenShift Lightspeedopenshift-lightspeed-tech-preview/lightspeed-rag-tool-rhel9Not affected
Red Hat Ansible Automation Platform 2ansible-automation-platform-25/lightspeed-chatbot-rhel8Will not fix

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-44209.

References

Check your stackJSON