目标达成 感谢每一位支持者 — 我们达成了 100% 目标!

目标: 1000 元 · 已筹: 1336

100%

CVE-2026-71492— Banks DirectoryPromptRegistry.set() 路径穿越致任意文件写入

一分钟漏洞结论

影响对象
masci banks
利用判断
尚无明确在野利用证据,仍需结合暴露面评估
建议动作
优先检查厂商安全公告和参考链接中的修复版本;无法立即升级时,限制受影响服务暴露并加强监测。

Banks 使用一种简单的模板语言来生成有意义的 LLM(大型语言模型)提示词。在 2.4.5 版本之前,位于 中的 方法会将攻击者可控的 和 值直接插值到一个路径中,且未进行规范化或边界检查。攻击者可以通过使用类似 的相对路径遍历构造,或使用绝对路径来绕过或丢弃配置的注册表根目录;同时,若设置 ,则允许覆盖现有的目标文件。恶意构造的 会被持久化存储在 中,并在后续通过 方法重新加载,使得该路径仍可访问注册表根目录之外的位置。因此,若应用程序将请求数据直接传入这些字段,攻击者即可利用此漏洞,以应用程序进程可写的任意

CVSS 6.0 · Medium EPSS 0.32% · P25

影响版本矩阵 1

厂商产品 版本范围状态
masci banks < 2.4.5 affected
获取后续新漏洞提醒 登录后订阅

一、 漏洞 CVE-2026-71492 基础信息

漏洞信息

对漏洞内容有疑问?看看神龙的深度分析是否有帮助!
查看神龙十问 ↗

尽管我们使用了先进的大模型技术,但其输出仍可能包含不准确或过时的信息。神龙努力确保数据的准确性,但请您根据实际情况进行核实和判断。

Vulnerability Title
Banks: Path traversal in `DirectoryPromptRegistry.set()` allows arbitrary file write outside the registry root
来源: CVE Program / CVE List V5
Vulnerability Description
Banks generates meaningful LLM prompts using a simple template language. Prior to version 2.4.5, DirectoryPromptRegistry.set() in src/banks/registries/directory.py interpolates attacker-controlled Prompt.name and Prompt.version values into a Path without canonicalization or containment validation. Relative traversal such as ../victim/foo and an absolute Prompt.name can escape or discard the configured registry root, while overwrite=True permits replacement of existing target files. The poisoned name is persisted in index.json and reconstructed by _load(), allowing the out-of-root path to survive later registry loads. An application that forwards request data into these fields can therefore write Prompt.raw bytes to attacker-chosen paths writable by the application process. This issue is fixed in version 2.4.5.
来源: CVE Program / CVE List V5
CVSS Information
CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N
来源: CVE Program / CVE List V5
Vulnerability Type
对路径名的限制不恰当(路径遍历)
来源: CVE Program / CVE List V5

受影响产品

厂商 产品 影响版本 CPE 订阅
masci banks < 2.4.5 -

二、漏洞 CVE-2026-71492 的公开POC

# POC 描述 源链接 神龙链接
AI 生成 POC 高级

未找到公开 POC。

登录以生成 AI POC

三、漏洞 CVE-2026-71492 的情报信息

登录查看更多情报信息。

CVE-2026-71492 补丁与修复 (2)

CVE-2026-71492 厂商安全公告 (1)

CVE-2026-71492 概念验证 (1)

IV. Related Vulnerabilities

V. Comments for CVE-2026-71492

暂无评论


发表评论