字号·· | 护眼
漏洞档案 · 高危

cgit 目录遍历(CVE-2018-14912)

CVE-2018-14912 别名:GHSA-46C3-XC8J-9QG7
CVSS 7.5 / 3.0 EPSS 92.0% CISA KEV 在野利用 公开 PoC · 1 Nuclei 模板
综合风险82/ 100
CVSS7.5高危
EPSS92.0%30 天利用概率
机构收录时间2018-08-04更新 2026-12-01

研判简报

概述

cgit 的 cgit_clone_objects() 存在目录遍历漏洞;当配置项 enable-http-clone=1 未关闭时,攻击者可通过构造 path=../ 请求访问预期目录之外的文件。该漏洞可被用于文件与目录发现、读取本地数据,公开利用代码已能读取指定文件。暴露 cgit HTTP 服务、尤其是启用 HTTP 克隆接口的运维与安全团队应优先排查。

严重性

官方记录为 high,CVSS 3.0 评分 7.5,综合风险分 82.4/100;CWE-22。攻击面是可通过 HTTP 请求触发的 cgit 克隆对象路径处理。

利用状态

核查日期:2026-11-26。CISA KEV 已收录(2023-11-26),CISA SSVC 标注 exploitation=active;EPSS 30 天利用概率 92.0%,百分位 99.9%。已有公开 Nuclei 模板(http/cves/2018/CVE-2018-14912.yaml)、Exploit-DB 公开利用及 Metasploit 模块。勒索关联:材料未给出。KEV 要求动作已给出,但期限未给。参考材料模块内引用 EDB 45148,官方记录链接为 Exploit-DB 45195,存在编号出入,以官方记录为准。

受影响产品

cgit_project:cgit <1.2.1;记录同时列出 debian:debian_linux:8.0、9.0。涉及 cgit_clone_objects() 组件,部署形态为启用 enable-http-clone=1 的 cgit Web 服务;参考材料称该选项默认为 1。

修复版本

官方修复版本为 cgit 1.2.1。Debian 相关公告包括 DSA-4263 与 LTS 公告;具体 Debian 包修复版本材料未给出。参考材料标题写作“cgit 1.2.1”,但其正文与官方记录均指向 cgit <1.2.1,修复版为 1.2.1。

缓解措施

不能立即升级时,应将 enable-http-clone 关闭(设为 0),以移除该漏洞的可达条件;同时限制 cgit 服务的网络暴露范围,仅允许可信来源访问。若无法修复或缓解,KEV 建议按厂商说明处置,或停止使用该产品;厂商具体缓解说明材料未给出。

响应步骤

  1. 盘点所有 cgit 实例及版本,确认是否存在 <1.2.1 的部署。
  2. 检查配置中 enable-http-clone 是否开启,优先关闭并记录变更。
  3. 升级至 cgit 1.2.1,或采用 Debian DSA-4263/LTS 公告提供的修复包。
  4. 排查访问日志中 /objects/ 配合 path=../ 的可疑请求及异常文件读取迹象。
  5. 对暂不能修复的实例实施网络隔离和访问控制,并纳入 KEV 跟踪直至完成处置。

参考来源

  1. https://dashboard.shadowserver.org/statistics/honeypot/vulnerability/map/?host_type=src&vulnerability=cve-2018-14912kev
  2. https://vulncheck.com/kev/cve-2018-14912advisory,vulncheck_kev
  3. https://www.exploit-db.com/exploits/45195exploit,exploitdb
  4. https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2018/CVE-2018-14912.yamlexploit,nuclei
  5. https://github.com/rapid7/metasploit-framework/tree/master/modules/auxiliary_scanner/http/cgit_traversalexploit,metasploit
  6. https://lists.debian.org/debian-lts-announce/2018/08/msg00005.htmlmailing-list,x_refsource_MLIST,mailing-list,x_refsource_MLIST,x_transferred,Thir
  7. https://www.exploit-db.com/exploits/45195/exploit,x_refsource_EXPLOIT-DB,exploit,x_refsource_EXPLOIT-DB,x_transferred,Expl
  8. https://www.debian.org/security/2018/dsa-4263vendor-advisory,x_refsource_DEBIAN,vendor-advisory,x_refsource_DEBIAN,x_transfer
  9. https://bugs.chromium.org/p/project-zero/issues/detail?id=1627x_refsource_MISC,x_refsource_MISC,x_transferred,Exploit,Issue Tracking,Third Par
  10. https://lists.zx2c4.com/pipermail/cgit/2018-August/004176.htmlx_refsource_MISC,x_refsource_MISC,x_transferred,Vendor Advisory,advisory,euvd
  11. https://euvd.enisa.europa.eu/vulnerability/EUVD-2018-6794advisory,euvd