Intel

AIKIDO-2026-946256

banks is vulnerable to Remote Code Execution (RCE)

Remote Code Execution (RCE)CVE-2026-61536 Published 4 days ago

75

High Risk

This Affects:

PYTHONbanks
1.4.0 - 2.4.2
Fixed in 2.4.3
Are you affected? Scan for Free

TL;DR

When resolving a tool call, CompletionExtension reads the import_path field of a Tool parsed from rendered template output and resolves it with importlib.import_module() before invoking the resulting callable. Prompts loaded from untrusted sources such as shared Redis or file-based registries can supply an arbitrary import path like os.system, so a matching tool call executes attacker-chosen Python with attacker-supplied arguments. This yields code execution in applications that load prompts from influenced storage. The fix removes dynamic importing entirely and resolves tool calls only against an allowlist of explicitly registered callables.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and your application loads prompt templates from sources that untrusted users can influence.

Background info

banks is vulnerable to Remote Code Execution (RCE) in versions 1.4.0 - 2.4.2.

How to fix this

Upgrade the banks library to the patch version.

Are You Affected?

Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.

Free. No credit card required.

Aikido Platform