Back to list

Banks: Unsafe importlib.import_module of attacker-controlled Tool.import_path in CompletionExtension allows RCE — GHSA-64VX-6H2C-RJH7

GitHub · GitHub · GHSA-64VX-6H2C-RJH7

ID
GHSA-64VX-6H2C-RJH7
Date
Source
GitHub
Vendor
GitHub
Threat
high
CVSS
7.5
EPSS
0.00377

Summary

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

Timeline

Published by source
2026-11-05

Risk context

  • Reported severity or threat level: high.
  • Reported CVSS score: 7.5 out of 10.
  • Reported EPSS value: 0.00377.
  • Review exposure for the affected product or family: pip: banks.

Product

pip: banks

What to do

General, cautious steps (verify details in the official source):

  • Prioritize patching or mitigation immediately (treat as actively risky).
  • Identify affected product versions in your inventory and verify whether you are impacted.
  • Apply vendor patches/updates or recommended mitigations as soon as available.
  • Read the official advisory for exact affected versions and remediation steps.

Official advisory

Evidence and provenance

Canonical advisory ID
GHSA-64VX-6H2C-RJH7
Source
GitHub
Vendor
GitHub
Published by source
2026-11-05
Last source activity
2026-11-05
Additional identifiers
CVE-2026-61536
Curated by
hlukh.ch

Related advisories and connections

These advisories are connected by shared CVE, product, vendor, source, or time signals.