CVE-2026-71492 Banks: Path traversal in `DirectoryPromptRegistry.set()` allows arbitrary file write outside the registry root
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- Proof of concept public · automatable: no · technical impact: partial
- Technology
- Red Hat
Description
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.
Upgrade path
6 packages: 1 fixed, 4 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| redhat/lightspeed-core/rag-tool-cpu-rhel9(Red Hat lightspeed_core) | All versions | No fix listed | No fix yet |
| redhat/lightspeed-core/rag-tool-cuda-12.9-rhel9(Red Hat lightspeed_core) | All versions | No fix listed | No fix yet |
| redhat/openshift-lightspeed-tech-preview/lightspeed-rag-tool-rhel9(Red Hat openshift_lightspeed 1) | All versions | No fix listed | No fix yet |
| redhat/openshift-lightspeed/lightspeed-ocp-rag-rhel9(Red Hat openshift_lightspeed 1) | All versions | No fix listed | No fix yet |
| pypi banks(PyPI) | < 2.4.5; = 0.0.1; = 0.0.2; = 0.0.3 +32 more | 2.4.5 | Fixed |
| masci banks | = < 2.4.5 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| pypi banks(PyPI) | < 2.4.5 | 2.4.5 |
| pypi banks(PyPI) | = 0.0.1 | No fix listed |
| pypi banks(PyPI) | = 0.0.2 | No fix listed |
| pypi banks(PyPI) | = 0.0.3 | No fix listed |
| pypi banks(PyPI) | = 0.1.0 | No fix listed |
| pypi banks(PyPI) | = 0.1.1 | No fix listed |
| pypi banks(PyPI) | = 0.2.0 | No fix listed |
| pypi banks(PyPI) | = 0.3.0 | No fix listed |
| pypi banks(PyPI) | = 0.3.1 | No fix listed |
| pypi banks(PyPI) | = 0.4.1 | No fix listed |
| pypi banks(PyPI) | = 0.5.0 | No fix listed |
| pypi banks(PyPI) | = 0.6.0 | No fix listed |
| pypi banks(PyPI) | = 1.0.0 | No fix listed |
| pypi banks(PyPI) | = 1.1.0 | No fix listed |
| pypi banks(PyPI) | = 1.2.0 | No fix listed |
| pypi banks(PyPI) | = 1.2.1 | No fix listed |
| pypi banks(PyPI) | = 1.3.0 | No fix listed |
| pypi banks(PyPI) | = 1.4.0 | No fix listed |
| pypi banks(PyPI) | = 1.5.0 | No fix listed |
| pypi banks(PyPI) | = 1.6.0 | No fix listed |
| pypi banks(PyPI) | = 1.6.1 | No fix listed |
| pypi banks(PyPI) | = 1.7.0 | No fix listed |
| pypi banks(PyPI) | = 1.7.1 | No fix listed |
| pypi banks(PyPI) | = 1.8.0 | No fix listed |
| pypi banks(PyPI) | = 2.0.0 | No fix listed |
Show 18 more
| Product | Affected versions | Fixed in |
|---|---|---|
| pypi banks(PyPI) | = 2.1.0 | No fix listed |
| pypi banks(PyPI) | = 2.1.1 | No fix listed |
| pypi banks(PyPI) | = 2.1.2 | No fix listed |
| pypi banks(PyPI) | = 2.1.3 | No fix listed |
| pypi banks(PyPI) | = 2.2.0 | No fix listed |
| pypi banks(PyPI) | = 2.3.0 | No fix listed |
| pypi banks(PyPI) | = 2.4.0 | No fix listed |
| pypi banks(PyPI) | = 2.4.1 | No fix listed |
| pypi banks(PyPI) | = 2.4.2 | No fix listed |
| pypi banks(PyPI) | = 2.4.3 | No fix listed |
| pypi banks(PyPI) | = 2.4.4 | No fix listed |
| masci banks | = < 2.4.5 | No fix listed |
| redhat/exploit-intelligence-tech-preview/vulnerability-analysis-rhel9(Red Hat:exploit_intelligence:0) | All versions | No fix listed |
| redhat/lightspeed-core/rag-tool-cpu-rhel9(Red Hat:lightspeed_core) | All versions | No fix listed |
| redhat/lightspeed-core/rag-tool-cuda-12.9-rhel9(Red Hat:lightspeed_core) | All versions | No fix listed |
| redhat/openshift-lightspeed/lightspeed-ocp-rag-rhel9(Red Hat:openshift_lightspeed:1) | All versions | No fix listed |
| redhat/openshift-lightspeed-tech-preview/lightspeed-rag-tool-rhel9(Red Hat:openshift_lightspeed:1) | All versions | No fix listed |
| redhat/ansible-automation-platform-25/lightspeed-chatbot-rhel8(Red Hat:ansible_automation_platform:2) | All versions | No fix listed |
References
- https://github.com/masci/banks/security/advisories/GHSA-x8wg-4xgc-vr54 exploit vendor-advisory
- nvd.nist.gov third-party-advisory vendor-advisory
- https://github.com/masci/banks/pull/77 patch
- https://github.com/masci/banks/commit/a215f6d779966945c56e0af5abed1ae5916fd9d3 patch
- github.com product
- https://github.com/masci/banks/releases/tag/v2.4.5
- pypi.org product
- github.com vendor-advisory
- Red Hat CVE page mitigation vendor-advisory
- Red Hat Bugzilla 2520536 issue-tracking
- www.cve.org
- ENISA EUVD EUVD-2026-63414 third-party-advisory