Skip to main content
EPSS 0.3%top 78%

CVE-2026-61536: CWE-94: Improper Control of Generation of Code ('Code Injection') in masci banks

0
High
VulnerabilityCVE-2026-61536cvecve-2026-61536cwe-94cwe-470
Published: 07/30/2026 (07/30/2026, 16:50:01 UTC)
Source: CVE Database V5
Vendor/Project: masci
Product: 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

Attack Vector
Network
Attack Complexity
High
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H

Affected software

masci

banks

Affected versions
<2.4.3
banks
pkg:pypi/banks
Affected versions
<2.4.3

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

AILast updated: 08/07/2026, 14:32:04 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses