CVE-2026-107716 Banks: Symlink traversal and arbitrary file disclosure/overwrite in DirectoryPromptRegistry
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: no · technical impact: partial
- Technology
- Red Hat
Description
Banks generates meaningful LLM prompts using a simple template language. Prior to 2.5.1, Banks DirectoryPromptRegistry does not reject symbolic links for index.json or discovered and existing .jinja prompt files. In an application where untrusted users can influence a prompt directory, DirectoryPromptRegistry._scan() and DirectoryPromptRegistry.get() can follow a link outside the registry root and disclose a file, while DirectoryPromptRegistry.set(), DirectoryPromptRegistry._save(), and DirectoryPromptRegistry._load() can read or overwrite an external link target. The issue requires attacker influence over the registry directory or its extracted contents. This issue is fixed in version 2.5.1.
Upgrade path
8 packages: 1 fixed, 6 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| redhat/exploit-intelligence/vulnerability-analysis-rhel9(Red Hat exploit_intelligence 0) | All versions | No fix listed | No fix yet |
| 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 |
| redhat/openshift-lightspeed/lightspeed-service-api-rhel9(Red Hat openshift_lightspeed 1) | All versions | No fix listed | No fix yet |
| pypi banks(PyPI) | < 2.5.1; <= 2.5.0; = 0.0.1; = 0.0.2 +35 more | 2.5.1 | Fixed |
| masci banks | = < 2.5.1 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| pypi banks(PyPI) | < 2.5.1 | 2.5.1 |
| 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 21 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 |
| pypi banks(PyPI) | = 2.4.5 | No fix listed |
| pypi banks(PyPI) | = 2.5.0 | No fix listed |
| masci banks | = < 2.5.1 | No fix listed |
| redhat/exploit-intelligence/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/lightspeed-service-api-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 |
| pypi banks(PyPI) | <= 2.5.0 | No fix listed |
References
- https://github.com/masci/banks/security/advisories/GHSA-556j-vv39-8rqv vendor-advisory
- https://github.com/masci/banks/pull/79 patch
- https://github.com/masci/banks/commit/23ed13e50b4e217693fa5f9c30943fac8a41582f patch
- github.com product
- https://github.com/masci/banks/releases/tag/v2.5.1
- pypi.org product
- github.com vendor-advisory
- nvd.nist.gov vendor-advisory
- Red Hat CVE page mitigation vendor-advisory
- Red Hat Bugzilla 2548687 issue-tracking
- www.cve.org
- ENISA EUVD EUVD-2026-95340 third-party-advisory