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

目标: 1000 元 · 已筹: 1336

100%

CVE-2026-72847— broot终端树视图未净化文件名导致转义序列注入漏洞

一分钟漏洞结论

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

以下是对该漏洞描述信息的翻译: broot 在其交互式树状视图(tree view)中,严格按照从文件系统读取的内容渲染每个文件和目录的名称。这些名称通过调用 中的 以及 中的 函数进行转换,且代码中任何位置均未对控制字符进行过滤。尽管 的 字段的文档注释指出某些字符可能已被剥离,但实际上并无此类处理。因此,任何拥有创建文件权限的本地用户均可在文件名中嵌入转义序列,当其他用户浏览该目录时,该序列将未经修改地作为 broot 自身样式代码的一部分被输出至终端。 一项报告的概念验证(PoC)使用了 OSC 52 剪贴板

CVSS 4.6 · Medium EPSS 0.10% · P1

影响版本矩阵 1

厂商产品 版本范围状态
Canop broot ≤ 1.58.0 affected
获取后续新漏洞提醒 登录后订阅

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

漏洞信息

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

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

Vulnerability Title
broot Terminal Escape Sequence Injection via Unsanitized File and Directory Names in the Tree View
来源: CVE Program / CVE List V5
Vulnerability Description
broot renders each file and directory name in its interactive tree view exactly as read from the filesystem. Names are converted with a plain to_string_lossy() call in src/tree_build/builder.rs and in TreeLine::unprune in src/tree/tree_line.rs, and no control-character filtering exists anywhere in the code, even though the doc comment on the TreeLine name field states that some characters may have been stripped. Any local user who can create a file can therefore place an escape sequence in its name and have it written unmodified to the terminal of anyone who browses that directory, between broot's own styling codes. A reported proof of concept used an OSC 52 clipboard-write sequence and captured the raw bytes broot wrote to its pty, confirming the sequence reaches the terminal unstripped. What an injected OSC or CSI sequence can then do depends on the terminal emulator in use. Browsing a directory is broot's primary function and carries no expectation that the content is trusted.
来源: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
来源: CVE Program / CVE List V5
Vulnerability Type
转义、元或控制序列转义处理不恰当
来源: CVE Program / CVE List V5

受影响产品

厂商 产品 影响版本 CPE 订阅
Canop broot 0 ~ 1.58.0 -

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

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

未找到公开 POC。

登录以生成 AI POC

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

登录查看更多情报信息。

CVE-2026-72847 补丁与修复 (3)

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

CVE-2026-72847 公开利用代码 (1)

IV. Related Vulnerabilities

V. Comments for CVE-2026-72847

暂无评论


发表评论