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

目标: 1000 元 · 已筹: 1359 元

100%

CVE-2026-54162— Caddy 日志终端转义序列注入漏洞

一分钟漏洞结论

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

Ember 是一个支持 FrankenPHP 的 Caddy 服务器实时终端仪表盘。在 1.4.2 版本之前,交互式 TUI(文本用户界面)的行格式化程序会将 Caddy 访问日志字段(尤其是请求 URI)传递给 渲染辅助函数,且未对终端转义序列或控制序列进行中和处理。未认证的远程客户端可以在普通 HTTP 请求的目标(request target)中插入 ANSI、OSC 或 CSI 控制字节。Caddy 会对这些字节进行 JSON 转义,而 函数会将其解码回原始控制序列,随后格式化程序将这些序列拼接至 的输出中

CVSS 4.7 · Medium
获取后续新漏洞提醒 登录后订阅

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

漏洞信息

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

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

Vulnerability Title
Ember: Unneutralised terminal escape/control sequences from Caddy logs injected into the operator's TUI
来源: CVE Program / CVE List V5
Vulnerability Description
Ember is a real-time terminal dashboard for Caddy servers with FrankenPHP support. Prior to 1.4.2, interactive TUI row formatters pass Caddy access-log fields, particularly the request URI, through the `fitCellLeft` render helper without neutralizing terminal escape or control sequences. An unauthenticated remote client can place ANSI, OSC, or CSI control bytes in an ordinary HTTP request target. Caddy JSON-escapes those bytes, `ParseLogLine` decodes them back into raw controls, and the formatters concatenate them into `View()` output reaching `os.Stdout`. When the operator views the default `Logs` tab, the terminal interprets these sequences, allowing monitoring-dashboard spoofing, clipboard hijacking through `OSC 52`, and window-title spoofing through `OSC 0/2`. This works even with a loopback-only log listener because the input arrives through normal Caddy access logs. `Certificates` and `Routes` share secondary unneutralized render sinks. The `--json`, `--once`, and daemon `--expose` modes are unaffected because they do not render an interactive terminal. Consequences depend on the terminal emulator and usually require further operator action to escalate; this is not general-purpose remote code execution. This issue is fixed in version 1.4.2.
来源: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:N/I:L/A:N
来源: CVE Program / CVE List V5
Vulnerability Type
转义、元或控制序列转义处理不恰当
来源: CVE Program / CVE List V5

受影响产品

厂商 产品 影响版本 CPE 订阅
alexandre-daubois ember < 1.4.2 -

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

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

未找到公开 POC。

登录以生成 AI POC

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

请登录查看更多情报信息。

CVE-2026-54162 其他参考 (3)

IV. Related Vulnerabilities