CVE-2026-107716: CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in masci banks
Description
CVE-2026-107716 is a path traversal vulnerability in masci banks prior to version 2.5.1. The DirectoryPromptRegistry component does not properly restrict symbolic links for certain prompt files, allowing an attacker with influence over the prompt directory to read or overwrite files outside the intended directory. This issue is fixed in version 2.5.1.
CVSS v4.0
Score 7.3high
Affected software
masci
banks
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
Technical Analysis
The vulnerability involves improper limitation of a pathname to a restricted directory (CWE-22) in the DirectoryPromptRegistry of masci banks. Before version 2.5.1, the registry does not reject symbolic links for index.json or .jinja prompt files. If an attacker can influence the prompt directory or its extracted contents, methods such as _scan() and get() can follow symbolic links outside the registry root to disclose files, while set(), _save(), and _load() can read or overwrite files outside the intended directory. This allows unauthorized file disclosure and modification. The vulnerability requires attacker control over the registry directory or its contents and is resolved in version 2.5.1.
Potential Impact
An attacker with limited privileges and influence over the prompt directory can exploit this vulnerability to read or overwrite files outside the intended directory via symbolic links. This can lead to unauthorized disclosure of sensitive files and potential modification of files, impacting confidentiality and integrity. The CVSS 4.0 score is 7.3 (high severity), reflecting the potential for significant impact with low attack complexity and no user interaction required.
Mitigation Recommendations
Upgrade to masci banks version 2.5.1 or later, where this vulnerability is fixed. No additional mitigation is required once the official fix is applied.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-10-08T17:21:52.975Z
- Cvss Version
- 4.0
- State
- PUBLISHED
Threat ID: 6ac80fe22cdf04f65639c877
Added to database: 10/08/2026, 21:49:22 UTC
Last enriched: 10/08/2026, 22:04:59 UTC
Last updated: 10/08/2026, 22:28:21 UTC
Views: 5
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.
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.