CVE-2026-62663: CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in masci banks
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.
AI Analysis
Technical Summary
The masci banks product versions before 2.4.4 contain a path traversal vulnerability (CWE-22) in all four media filters (image, audio, video, document). These filters accept user-controlled template variables as file paths and open them without any path sanitization or directory restriction. An attacker can exploit this by using '../' sequences to access arbitrary files readable by the Python process. The contents of these files are returned base64-encoded in the rendered prompt output, facilitating easy exfiltration. This vulnerability is particularly critical for applications that process user-provided template variables before sending prompts to large language models (LLMs). The vulnerability is fixed in version 2.4.4.
Potential Impact
An unauthenticated attacker can read arbitrary files on the system running masci banks by exploiting the path traversal flaw. This can lead to disclosure of sensitive information such as environment variables, SSH private keys, cloud credentials, source code, and critical system files like /etc/passwd and /etc/shadow. The confidentiality impact is high, but there is no direct impact on integrity or availability. The vulnerability enables trivial exfiltration of sensitive data via the application’s prompt output.
Mitigation Recommendations
Upgrade to masci banks version 2.4.4 or later, where this path traversal vulnerability has been fixed. There is no indication of any temporary or alternative mitigations. Patch status is confirmed by the vendor advisory stating the fix in 2.4.4.
CVE-2026-62663: CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in masci banks
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.
CVSS v3.1
Score 7.5high
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The masci banks product versions before 2.4.4 contain a path traversal vulnerability (CWE-22) in all four media filters (image, audio, video, document). These filters accept user-controlled template variables as file paths and open them without any path sanitization or directory restriction. An attacker can exploit this by using '../' sequences to access arbitrary files readable by the Python process. The contents of these files are returned base64-encoded in the rendered prompt output, facilitating easy exfiltration. This vulnerability is particularly critical for applications that process user-provided template variables before sending prompts to large language models (LLMs). The vulnerability is fixed in version 2.4.4.
Potential Impact
An unauthenticated attacker can read arbitrary files on the system running masci banks by exploiting the path traversal flaw. This can lead to disclosure of sensitive information such as environment variables, SSH private keys, cloud credentials, source code, and critical system files like /etc/passwd and /etc/shadow. The confidentiality impact is high, but there is no direct impact on integrity or availability. The vulnerability enables trivial exfiltration of sensitive data via the application’s prompt output.
Mitigation Recommendations
Upgrade to masci banks version 2.4.4 or later, where this path traversal vulnerability has been fixed. There is no indication of any temporary or alternative mitigations. Patch status is confirmed by the vendor advisory stating the fix in 2.4.4.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-07-14T20:22:04.394Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a6b81699c2644c7f860ea6b
Added to database: 07/30/2026, 16:52:57 UTC
Last enriched: 07/30/2026, 17:09:42 UTC
Last updated: 07/30/2026, 21:27:16 UTC
Views: 6
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.