banks is vulnerable to Remote Code Execution (RCE)
75
High Risk
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.
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.
banks is vulnerable to Remote Code Execution (RCE) in versions 1.4.0 - 2.4.2.
Upgrade the banks library to the patch version.
Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.
Free. No credit card required.

I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant
ISO 42001Compliant© All Intel data is openly available and commercially licensed.