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-71492: CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in masci banks

0
Medium
VulnerabilityCVE-2026-71492cvecve-2026-71492cwe-22
Published: 08/20/2026 (08/20/2026, 16:13:55 UTC)
Source: CVE Database V5
Vendor/Project: masci
Product: banks

Description

CVE-2026-71492 is a path traversal vulnerability in the masci banks product prior to version 2.4.5. The vulnerability arises because the DirectoryPromptRegistry.set() function interpolates attacker-controlled input into file paths without proper canonicalization or containment checks. This allows an attacker to write arbitrary files outside the intended directory, potentially overwriting existing files. The issue is fixed in version 2.4.5.

CVSS v4.0

Score 6.0medium

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
Present
Privileges Required
Low
User Interaction
None
Vuln. Confidentiality
None
Vuln. Integrity
High
Vuln. Availability
None
Subsq. Confidentiality
None
Subsq. Integrity
None
Subsq. Availability
None
CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N

Affected software

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

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: 08/20/2026, 16:37:35 UTC

Technical Analysis

In masci banks versions before 2.4.5, the DirectoryPromptRegistry.set() method in src/banks/registries/directory.py improperly handles Prompt.name and Prompt.version values by directly interpolating them into filesystem paths without validating or canonicalizing the path. This allows relative path traversal sequences (e.g., ../victim/foo) or absolute paths to escape the configured registry root directory. When overwrite=True is set, existing files can be replaced. The malicious path is persisted in index.json and reloaded later, allowing the out-of-root path to survive across registry loads. This vulnerability enables an attacker who can influence Prompt.name or Prompt.version to write arbitrary bytes to attacker-chosen writable paths on the filesystem accessible by the application process. The vulnerability is resolved in version 2.4.5.

Potential Impact

An attacker with the ability to control Prompt.name or Prompt.version can exploit this vulnerability to write arbitrary files to locations outside the intended directory. This could lead to overwriting critical files, potentially causing denial of service or enabling further attacks depending on the application context. The vulnerability requires some level of privileges (low privileges) and partial attacker interaction, and it does not require user interaction. The CVSS 4.0 score is 6.0 (medium severity).

Mitigation Recommendations

This vulnerability is fixed in masci banks version 2.4.5. Users should upgrade to version 2.4.5 or later to remediate this issue. No official patch link is provided in the advisory, but upgrading to the fixed version is the recommended action. Until upgrading, avoid forwarding untrusted input into Prompt.name or Prompt.version fields to mitigate exploitation risk.

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-08-06T19:56:23.725Z
Cvss Version
4.0
State
PUBLISHED
Remediation Level
null

Threat ID: 6a8729e3acd9273b49d93232

Added to database: 08/20/2026, 16:22:59 UTC

Last enriched: 08/20/2026, 16:37:35 UTC

Last updated: 08/20/2026, 16:58:41 UTC

Views: 5

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