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 affecting versions prior to 2.4.3. The vulnerability arises from unsafe dynamic import and attribute resolution of Python callables based on attacker-controlled input in Tool JSON objects parsed from LLM prompt templates. This allows an attacker to execute arbitrary code within the banks-hosting process. The issue was fixed in version 2.4.3. No known exploits are reported in the wild.
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 from these JSON objects is resolved using importlib.import_module(...) and getattr(...) without any allowlist or sanitization, enabling arbitrary Python attribute access 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 a prior issue fixed in 2.4.2 and is specifically addressed by the fix in 2.4.3.
Potential Impact
Successful exploitation allows an attacker to execute arbitrary code within the process hosting the banks application, leading to full confidentiality, integrity, and availability compromise 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, but requiring low privileges and 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 since the vulnerability stems from 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 affecting versions prior to 2.4.3. The vulnerability arises from unsafe dynamic import and attribute resolution of Python callables based on attacker-controlled input in Tool JSON objects parsed from LLM prompt templates. This allows an attacker to execute arbitrary code within the banks-hosting process. The issue was fixed in version 2.4.3. No known exploits are reported in the wild.
CVSS v3.1
Score 7.5high
Affected software
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 from these JSON objects is resolved using importlib.import_module(...) and getattr(...) without any allowlist or sanitization, enabling arbitrary Python attribute access 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 a prior issue fixed in 2.4.2 and is specifically addressed by the fix in 2.4.3.
Potential Impact
Successful exploitation allows an attacker to execute arbitrary code within the process hosting the banks application, leading to full confidentiality, integrity, and availability compromise 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, but requiring low privileges and 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 since the vulnerability stems from 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
- Remediation Level
- null
Threat ID: 6a6b88839c2644c7f86a7f2f
Added to database: 07/30/2026, 17:23:15 UTC
Last enriched: 07/30/2026, 17:36:59 UTC
Last updated: 07/30/2026, 17:36:59 UTC
Views: 4
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.