6.0
MEDIUM CVSS 4.0
CVE-2026-71492
Banks: Path traversal in `DirectoryPromptRegistry.set()` allows arbitrary file write outside the registry root
Description

Banks generates meaningful LLM prompts using a simple template language. Prior to version 2.4.5, DirectoryPromptRegistry.set() in src/banks/registries/directory.py interpolates attacker-controlled Prompt.name and Prompt.version values into a Path without canonicalization or containment validation. Relative traversal such as ../victim/foo and an absolute Prompt.name can escape or discard the configured registry root, while overwrite=True permits replacement of existing target files. The poisoned name is persisted in index.json and reconstructed by _load(), allowing the out-of-root path to survive later registry loads. An application that forwards request data into these fields can therefore write Prompt.raw bytes to attacker-chosen paths writable by the application process. This issue is fixed in version 2.4.5.

INFO

Published Date :

Aug. 20, 2026, 5:19 p.m.

Last Modified :

Oct. 18, 2026, 8:10 p.m.

Remotely Exploit :

Yes !
Affected Products

The following products are affected by CVE-2026-71492 vulnerability. Even if cvefeed.io is aware of the exact versions of the products that are affected, the information is not represented in the table below.

No affected product recoded yet

CVSS Scores
The Common Vulnerability Scoring System is a standardized framework for assessing the severity of vulnerabilities in software and systems. We collect and displays CVSS scores from various sources for each CVE.
Score Version Severity Vector Exploitability Score Impact Score Source
CVSS 134c704f-9b21-4f2e-91b3-4a467353bcc0
CVSS 4.0 MEDIUM [email protected]
Solution
Update Banks to version 2.4.5 or later to fix path traversal vulnerabilities.
  • Update Banks to version 2.4.5 or later.
  • Apply vendor patches if available.
  • Validate and sanitize user inputs for prompt names.
References to Advisories, Solutions, and Tools
CWE - Common Weakness Enumeration

While CVE identifies specific instances of vulnerabilities, CWE categorizes the common flaws or weaknesses that can lead to vulnerabilities. CVE-2026-71492 is associated with the following CWEs:

We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).

Results are limited to the first 15 repositories due to potential performance issues.

The following list is the news that have been mention CVE-2026-71492 vulnerability anywhere in the article.

The following table lists the changes that have been made to the CVE-2026-71492 vulnerability over time.

Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.

  • CVE Translated by [email protected]

    Oct. 18, 2026

    Action Type Old Value New Value
    Added Translation Title: banks de masci, Description: Banks genera prompts de LLM significativos utilizando un lenguaje de plantilla simple. Antes de la versión 2.4.5, DirectoryPromptRegistry.set() en src/banks/registries/directory.py interpola valores de Prompt.name y Prompt.version controlados por el atacante en una ruta sin canonicalización ni validación de contención. La traversión relativa, como ../victim/foo, y un Prompt.name absoluto pueden escapar o descartar la raíz del registro configurada, mientras que overwrite=True permite el reemplazo de archivos de destino existentes. El nombre envenenado se persiste en index.json y es reconstruido por _load(), permitiendo que la ruta fuera de la raíz sobreviva a cargas posteriores del registro. Una aplicación que reenvía datos de solicitud a estos campos puede, por lo tanto, escribir bytes de Prompt.raw en rutas elegidas por el atacante que sean escribibles por el proceso de la aplicación. Este problema está solucionado en la versión 2.4.5.
  • New CVE Received by [email protected]

    Aug. 20, 2026

    Action Type Old Value New Value
    Added Affected [{'vendor': 'masci', 'product': 'banks', 'versions': [{'status': 'affected', 'version': '< 2.4.5'}]}]
    Added Description Banks generates meaningful LLM prompts using a simple template language. Prior to version 2.4.5, DirectoryPromptRegistry.set() in src/banks/registries/directory.py interpolates attacker-controlled Prompt.name and Prompt.version values into a Path without canonicalization or containment validation. Relative traversal such as ../victim/foo and an absolute Prompt.name can escape or discard the configured registry root, while overwrite=True permits replacement of existing target files. The poisoned name is persisted in index.json and reconstructed by _load(), allowing the out-of-root path to survive later registry loads. An application that forwards request data into these fields can therefore write Prompt.raw bytes to attacker-chosen paths writable by the application process. This issue is fixed in version 2.4.5.
    Added CVSS V4.0 AV:N/AC:L/AT:P/PR:L/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
    Added CWE CWE-22
    Added Reference https://github.com/masci/banks/commit/a215f6d779966945c56e0af5abed1ae5916fd9d3
    Added Reference https://github.com/masci/banks/pull/77
    Added Reference https://github.com/masci/banks/releases/tag/v2.4.5
    Added Reference https://github.com/masci/banks/security/advisories/GHSA-x8wg-4xgc-vr54
  • CVE Modified by 134c704f-9b21-4f2e-91b3-4a467353bcc0

    Aug. 20, 2026

    Action Type Old Value New Value
    Added Reference https://github.com/masci/banks/security/advisories/GHSA-x8wg-4xgc-vr54
    Added SSVC {'id': 'CVE-2026-71492', 'role': 'CISA Coordinator', 'options': [{'exploitation': 'poc'}, {'automatable': 'no'}, {'technicalImpact': 'partial'}], 'version': '2.0.3', 'timestamp': '2026-08-20T17:10:39.955134Z'}
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.