CVE-2026-61536: CWE-94: Improper Control of Generation of Code ('Code Injection') in masci banks
CVE-2026-61536 is a high-severity code injection vulnerability in the masci banks product prior to version 2.4.3. It arises from unsafe dynamic import and attribute access of Python callables based on attacker-controlled input in Tool JSON objects within LLM prompt templates. This allows arbitrary code execution in the hosting process. The issue was fixed in version 2.4.3.
AI Analysis
Technical Summary
The masci banks product generates LLM prompts using a template language that parses Tool JSON objects from {% completion %} blocks. In versions before 2.4.3, the import_path field in these objects is resolved via importlib.import_module(...) and getattr(...) without any allowlisting or sanitization, enabling attackers to specify any importable Python attribute, such as os.system or subprocess.getoutput. When the LLM emits a tool_calls entry matching the attacker-supplied tool name, the resolved callable is invoked with attacker-controlled arguments, resulting in arbitrary code execution. This vulnerability is distinct from CVE-2026-44209, which was fixed in 2.4.2 by sandboxing the environment; however, the unsafe import and getattr chain remained exploitable until fixed in 2.4.3. The malicious payload is plain text in the rendered template body, bypassing sandbox protections.
Potential Impact
Successful exploitation allows an attacker to execute arbitrary code within the process hosting masci banks, leading to full compromise of confidentiality, integrity, and availability of the affected system. The CVSS 3.1 base score is 7.5 (High), reflecting network attack vector, high impact on confidentiality, integrity, and availability, and requiring low privileges but high attack complexity.
Mitigation Recommendations
A fix is available in masci banks version 2.4.3. Users should upgrade to version 2.4.3 or later to remediate this vulnerability. No other mitigations are indicated or effective because the vulnerability involves unsafe dynamic imports without sanitization. Patch status is confirmed by the vendor advisory stating the issue is fixed in 2.4.3.
CVE-2026-61536: CWE-94: Improper Control of Generation of Code ('Code Injection') in masci banks
Description
CVE-2026-61536 is a high-severity code injection vulnerability in the masci banks product prior to version 2.4.3. It arises from unsafe dynamic import and attribute access of Python callables based on attacker-controlled input in Tool JSON objects within LLM prompt templates. This allows arbitrary code execution in the hosting process. The issue was fixed in version 2.4.3.
CVSS v3.1
Score 7.5high
Affected software
masci
banks
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The masci banks product generates LLM prompts using a template language that parses Tool JSON objects from {% completion %} blocks. In versions before 2.4.3, the import_path field in these objects is resolved via importlib.import_module(...) and getattr(...) without any allowlisting or sanitization, enabling attackers to specify any importable Python attribute, such as os.system or subprocess.getoutput. When the LLM emits a tool_calls entry matching the attacker-supplied tool name, the resolved callable is invoked with attacker-controlled arguments, resulting in arbitrary code execution. This vulnerability is distinct from CVE-2026-44209, which was fixed in 2.4.2 by sandboxing the environment; however, the unsafe import and getattr chain remained exploitable until fixed in 2.4.3. The malicious payload is plain text in the rendered template body, bypassing sandbox protections.
Potential Impact
Successful exploitation allows an attacker to execute arbitrary code within the process hosting masci banks, leading to full compromise of confidentiality, integrity, and availability of the affected system. The CVSS 3.1 base score is 7.5 (High), reflecting network attack vector, high impact on confidentiality, integrity, and availability, and requiring low privileges but high attack complexity.
Mitigation Recommendations
A fix is available in masci banks version 2.4.3. Users should upgrade to version 2.4.3 or later to remediate this vulnerability. No other mitigations are indicated or effective because the vulnerability involves unsafe dynamic imports without sanitization. Patch status is confirmed by the vendor advisory stating the issue is fixed in 2.4.3.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-07-10T16:27:03.093Z
- Cvss Version
- 3.1
- State
- PUBLISHED
Threat ID: 6a6b88839c2644c7f86a7f2f
Added to database: 07/30/2026, 17:23:15 UTC
Last enriched: 08/07/2026, 14:32:04 UTC
Last updated: 09/12/2026, 10:01:32 UTC
Views: 80
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.