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

- Severity: High 7.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.40%, higher than 36% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-07-30T16:16:34.159Z
- Modified: 2026-10-23T22:10:00.160Z
- Weaknesses: CWE-22
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- 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.

(As written by CVE List.)

## Affected

- masci banks: < 2.4.4

## References

- <https://github.com/masci/banks/security/advisories/GHSA-98rr-gvc9-3cjh> (exploit)

## Sources

- CVE List: [CVE-2026-62663](https://www.cve.org/CVERecord?id=CVE-2026-62663), CVE Terms of Use, modified 2026-07-30
- NVD: [CVE-2026-62663](https://nvd.nist.gov/vuln/detail/CVE-2026-62663), Public domain, modified 2026-10-23

---

Page: https://cve.day/CVE-2026-62663 · Whole record: https://cve.day/CVE-2026-62663.json · Rebuilt by cve.day 2026-11-25T22:59:30.646Z
