


Perceptive Security
SOC/SIEM Consultancy

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 b…
Published:
30 juli 2026 om 00:00:00
Alert date:
30 juli 2026 om 22:07:35
Source:
nvd.nist.gov
Supply Chain & Dependencies, Data Breach & Exfiltration, Emerging Technologies
CVE-2026-62663 is a path traversal vulnerability in the 'banks' Python library, which generates LLM prompts using a template language. In versions prior to 2.4.4, all four media filters (image, audio, video, document) accept untrusted user input as file paths and pass them directly to open() without any sanitization or directory restrictions. An attacker who controls template variables can use ../ sequences to read arbitrary files accessible to the Python process, including .env files, SSH keys, cloud credentials, /etc/passwd, and /etc/shadow. The exfiltrated file contents are returned base64-encoded in the rendered prompt output, making data exfiltration trivial. This is especially dangerous in applications that process user-provided template variables before sending prompts to an LLM. The vulnerability has been patched in version 2.4.4.
Technical details
Mitigation steps:
Affected products:
banks Python library (versions prior to 2.4.4)
Related links:
https://nvd.nist.gov/vuln/detail/CVE-2026-62663
https://github.com/masci/banks/security/advisories/GHSA-98rr-gvc9-3cjh
Related CVE's:
Related threat actors:
IOC's:
This article was created with the assistance of AI technology by Perceptive.
