Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

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 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

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

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: 07/30/2026, 17:36:59 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 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.

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
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 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