Banks: Unsafe importlib.import_module of attacker-controlled Tool.import_path
Affects banksSource GCVE Database
Not known to be exploited · CVSS 7.5 High : upgrade to 2.4.3 soon.
Data as of 5 Nov 2026, 18:49 UTC
- Patch
- Available – fixed in 2.4.3
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:HExploitation evidence
Disclosed: evidence found.
CVE published 30 Jul 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 5 Nov 2026.
What to do
Upgrade banks to 2.4.3.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| PyPIbanks | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
A fix is available in banks version 2.4.3. Users should upgrade to version 2.4.3 or later to remediate this vulnerability. The vendor advisory confirms the fix in 2.4.3. No other mitigations are indicated as the vulnerability stems from unsafe import resolution that is corrected by the patch.
Description
The banks library versions prior to 2.4.3 contain a remote code execution vulnerability due to unsafe use of importlib.import_module and getattr on attacker-controlled import_path values in Tool JSON objects parsed from template bodies. This allows an attacker who can influence prompt content to execute arbitrary Python code in the hosting process. The vulnerability is distinct from a prior sandboxing fix and remains exploitable in version 2.4.2. A fix is available in version 2.4.3.
References
- github.com/masci/banks/security/advisories/GHSA-64vx-6h2c-rjh7 (opens in a new tab)
- nvd.nist.gov/vuln/detail/CVE-2026-61536 (opens in a new tab)
- github.com/masci/banks/pull/75 (opens in a new tab)
- github.com/masci/banks/commit/e443f112b80a20ac24438afe4eb8f8a746a8396d (opens in a new tab)
- github.com/masci/banks (opens in a new tab)
- github.com/masci/banks/releases/tag/v2.4.3 (opens in a new tab)