Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2026-62663: CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in masci banks

0
High
VulnerabilityCVE-2026-62663cvecve-2026-62663cwe-22
Published: 07/30/2026 (07/30/2026, 16:16:34 UTC)
Source: CVE Database V5
Vendor/Project: masci
Product: 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

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
None
Availability
None
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

Affected software

GitHub Actionsmore threats →ai
masci/banks
pkg:github/masci/banks
Affected versions
<2.4.4

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 07/30/2026, 17:09:42 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses