Skip to content
HighVulnerabilityLLM-specific

CVE-2026-62663: Banks media filters arbitrary file read via path traversal in template variables

Identifier
CVE-2026-62663
Published
Record updated
View JSON

Summary

In banks versions before 2.4.4, all four media filters (image, audio, video, document) pass untrusted template variables into Path(value) and open(file_path, "rb") without sanitization, canonicalization, or directory restriction. An attacker who controls template variables passed to a banks Prompt can use ../ path traversal to read arbitrary files the Python process can access, such as .env files, SSH keys, cloud credentials, and /etc/shadow, with contents returned base64-encoded in the rendered prompt output.

Mitigation

Fixed in 2.4.4.