Banks: Path traversal in `DirectoryPromptRegistry.set()` allows arbitrary file write outside the registry root
Key facts
- Attack vector
- Network
- Privileges required
- Low
- User interaction
- None
- Attack complexity
- Low
- Attack requirements
- Present
- Impact type
- —
- Confidentiality · integrity · availability
- None · High · None
- Fix status
- Partial Red Hat: 4 without a fix
Attack profile from CVSS 4.0 · CNA. Fix status from CNA, GitHub and Red Hat.
Summary
Banks generates meaningful LLM prompts using a simple template language. Prior to version 2.4.5, DirectoryPromptRegistry.set() in src/banks/registries/directory.py interpolates attacker-controlled Prompt.name and Prompt.version values into a Path without canonicalization or containment validation. Relative traversal such as ../victim/foo and an absolute Prompt.name can escape or discard the configured registry root, while overwrite=True permits replacement of existing target files. The poisoned name is persisted in index.json and reconstructed by _load(), allowing the out-of-root path to survive later registry loads. An application that forwards request data into these fields can therefore write Prompt.raw bytes to attacker-chosen paths writable by the application process. This issue is fixed in version 2.4.5.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| masci | banks | before 2.4.5 | 2.4.5 | Patch available | CNA |
| — | banks (PyPI) | before 2.4.5 | 2.4.5 | Patch available | GHSA-x8wg-4xgc-vr54 |
- banks Vendormasci Affected before 2.4.5 Fixed in 2.4.5 Patch available CNA
- banks (PyPI) Vendor— Affected before 2.4.5 Fixed in 2.4.5 Patch available GHSA-x8wg-4xgc-vr54
Remediation
- Fix · CNA banks (masci) Fixed in 2.4.5
- Fix · GHSA-x8wg-4xgc-vr54 banks (PyPI) Fixed in 2.4.5 Advisory →
Vendor assessments
Red Hat
Red Hat rating: Moderate. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Exploit Intelligence | Affected | No fix planned: Out of support scope |
| Lightspeed Core | Affected | No fix yet: Fix deferred |
| OpenShift Lightspeed | Affected | No fix yet: Fix deferred |
| Red Hat Ansible Automation Platform 2 | Affected | No fix planned: Out of support scope |
Not affected: 2 products
- Exploit Intelligence
- OpenShift Lightspeed
Timeline
- 2026-10-02 Threatist record created from CVE-2026-71492
- 2026-10-03 Alias added: GHSA-x8wg-4xgc-vr54
References
More masci vulnerabilities
- TI-2026-44773 Banks: Arbitrary File Read via Path Traversal in Media Filters (image/audio/video/document) CVSS 3.1HIGH 7.5
- TI-2026-69696 Banks parses untrusted prompt input as privileged chat messages CVSS 3.1MEDIUM 6.5
- TI-2026-44099 Banks: Unsafe importlib.import_module of attacker-controlled Tool.import_path in CompletionExtension allows RCE CVSS 3.1HIGH 7.5
- TI-2026-32188 Banks: Critical Remote Code Execution (RCE) via Jinja2 SSTI CVSS 3.1HIGH 7.5
- TI-2026-69682 Symlink traversal in Banks DirectoryPromptRegistry CVSS 4.0HIGH 7.3
Sources
- CVE-2026-71492 · CVE Program
- CVE-2026-71492 · NVD
- FIRST EPSS
- GHSA-x8wg-4xgc-vr54 · GitHub Advisory Database · CC BY 4.0
- CVE-2026-71492 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences