Skip to content
High 7.5

Banks generates meaningful LLM prompts using a simple template language. In versions prior to 2.4.3, banks parses Tool…

CVE-2026-61536 First seen on SecPulse

Summary

Code injection reported (CVE-2026-61536). Successful exploitation can lead to full system takeover. Mitigation: upgrade to 2.4.2 or later.

AI summary

Produced by SecPulse using an external AI model; it may contain mistakes. Check the original description and references below before acting on it.

A vulnerability tracked as CVE-2026-61536 has been found.
Successful exploitation can lead to full system takeover. CVSS score: 7.5/10.
What to do: upgrade the affected software to 2.4.2 or later.
If unsure, ask your IT team or search "CVE-2026-61536" on the vendor's site.

CVE-2026-61536 — CWE-94 / CVSS v3 7.5
Attack vector: remote (network-reachable) / no user interaction
Patched: 2.4.2 — apply immediately
Plan: 1) Audit SBOM/dependencies, 2) Stage→prod upgrade, 3) Add WAF/proxy monitoring on affected endpoints, 4) Hunt IOCs in logs.
Refs: see the GHSA / vendor advisory / patched release linked on this page.

What is the problem

Arbitrary code execution (CWE-94) has been reported.

Affected scope

Check the vendor advisory for the affected versions.

Severity

Severity: High (CVSS 7.5/10). Successful exploitation can lead to full system takeover.

How to fix

Update to 2.4.2.

Workaround

Until the patch is applied: disable the affected feature, apply WAF rules, or restrict access via network ACLs.

Detection

Search webserver/proxy logs for unusual request patterns matching this CVE's known IOCs. Audit SBOM/dependencies to find affected services.

Response actions

Concrete steps and command examples for SOC/SRE teams to execute in order

  1. 1
    Identify exposureidentify
    Audit SBOM/dependencies for affected components.

    資産台帳・SBOM・依存マニフェストで影響コンポーネントを特定する。

  2. 2
    Apply patchpatch
    Upgrade to 2.4.2

    ステージング環境で 2.4.2 に上げて回帰テスト → 本番反映。回帰テストはアプリの主要ハッピーパスを含めること。

  3. 3
    Post-deployment verificationverify
    Confirm patched version is live in production

    パッチ適用後、ステージングで PoC または同等の悪用パターンを再現して脆弱性が閉じたことを確認。本番ではアクセスログ・WAF でアラート再発が無いか継続監視。

Affected packages

PackageAffected → Fixed
pipbanks
< 2.4.3→ 2.4.3
PyPIbanks
< 2.4.3→ 2.4.3
Original description The description as published by the source.

Summary

banks parses Tool JSON objects from the rendered body of {% completion %} blocks and later resolves their
import_path field through importlib.import_module(...) + getattr(...) to obtain the callable that handles a tool
call. There is no allowlist or sanitization on import_path, so any importable Python attribute (e.g. os.system,
subprocess.getoutput) can be selected. When the LLM emits a tool_calls entry whose function.name matches the
attacker-supplied tool name, the resolved callable is invoked with kwargs decoded from tool_call.function.arguments,
yielding arbitrary code execution in the banks-hosting process.

This is distinct from GHSA-gphh-9q3h-jgpp / CVE-2026-44209. That advisory was fixed in 2.4.2 by switching
src/banks/env.py from Environment to SandboxedEnvironment. The fix does not touch
src/banks/extensions/completion.py, and the unsafe import + getattr chain still executes on 2.4.2. The malicious
Tool JSON is plain text in the rendered template body — it requires no Jinja attribute access, so the sandbox is
irrelevant.

Vulnerable Code

src/banks/extensions/completion.py:79-98

def _get_tool_callable(self, tools, tool_call):
    for tool in tools:
        if tool.function.name == tool_call.function.name:
            module_name, func_name = tool.import_path.rsplit(".", maxsplit=1)
            module = importlib.import_module(module_name)
            return getattr(…

Source: NIST National Vulnerability Database NVD GitHub Advisory

References

We use cookies for analytics and ad measurement. This setting applies to all Game co., Ltd. sites. Details