CVE-2026-62663 Details
Description
Banks generates meaningful LLM prompts using a simple template language. In versions prior to 2.4.4, all four media filters (image, audio, video, document) in banks accept untrusted user input as file paths via Path(value) and pass them directly to open(file_path, "rb") without any path sanitization, canonicalization, or directory restriction. An attacker who controls template variables passed to a banks Prompt can use path traversal (../) to read arbitrary files accessible to the Python process—including .env files, SSH keys, cloud credentials, source code, /etc/passwd, and /etc/shadow—with the content returned base64-encoded in the rendered prompt output, making exfiltration trivial. This is particularly dangerous for applications that use banks to process user-provided template variables before sending prompts to an LLM. This issue has been fixed in version 2.4.4.
A path traversal vulnerability has been identified in the Banks application, specifically in versions prior to 2.4.4. All four media filters—image, audio, video, and document—are affected. These filters accept untrusted user input as file paths and pass them directly to the file open function without any path sanitization, canonicalization, or directory restrictions. This vulnerability allows an attacker to read arbitrary files accessible to the Python process, including sensitive files such as environment variables, SSH keys, cloud credentials, source code, and system files like /etc/passwd and /etc/shadow. The exfiltrated file content is base64-encoded and embedded in the rendered prompt output, facilitating easy data extraction. This issue is particularly concerning for applications that use Banks to process user-generated template variables before interacting with a large language model (LLM).
Users can upgrade to Banks version 2.4.4 or later, where this vulnerability has been fixed.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Jul 30, 2026CISA-ADP
Assessed Jul 30, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/masci/banks/security/advisories/GHSA-98rr-gvc9-3cjh | CISA-ADP | AdvisoryExploitRemedyVendor |
| https://github.com/masci/banks/security/advisories/GHSA-98rr-gvc9-3cjh | [email protected] | AdvisoryExploitRemedyVendor |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-22 | Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| banks | <= 2.4.2 (semver) |
CPE
Remediation
| |
Change History
2 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jul 30, 2026 | CVE Modified | CISA-ADP |
| Jul 30, 2026 | New CVE Received | [email protected] |
Volerion