CVE-2026-62663
JSON

7.5high

Banks: Arbitrary File Read via Path Traversal in Media Filters (image/audio/video/document)

Severity
7.5high CVSS:3.1 by GitHub_M
Exploit likelihood
0.40% (higher than 36% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M

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.

Affected

Product or packageVersionsReported by
masci banks< 2.4.4CVE List

Classification

CWE-22

SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial.

What each source says

CVE List

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.

NVD (es)

Banks genera prompts significativos para LLM usando un lenguaje de plantilla simple. En versiones anteriores a la 2.4.4, los cuatro filtros de medios (imagen, audio, video, documento) en banks aceptan entrada de usuario no confiable como rutas de archivo a través de Path(value) y las pasan directamente a open(file_path, “rb”) sin ninguna sanitización de ruta, canonicalización o restricción de directorio. Un atacante que controla las variables de plantilla pasadas a un Prompt de banks puede usar salto de ruta (.. / ) para leer archivos arbitrarios accesibles al proceso de Python -incluyendo archivos .env, claves SSH, credenciales de la nube, código fuente, /etc/p4ssd y /etc/sha4dow- con el contenido devuelto codificado en base64 en la salida del prompt renderizado, haciendo que la exfiltración sea trivial. Esto es particularmente peligroso para aplicaciones que usan banks para procesar variables de plantilla proporcionadas por el usuario antes de enviar prompts a un LLM. Este problema ha sido solucionado en la versión 2.4.4.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-62663 changed 2026-07-30CVE Terms of Use
NVDCVE-2026-62663 changed 2026-10-23Public domain