用 Go 编写的快速、并发、非侵入式暴露审计工具,针对 GitLab CE/EE 未认证 RCE(CVE-2026-110264,CVSS 10.0)。仅供防御性使用。
针对 GitLab CE/EE 未认证远程代码执行(RCE) 严重漏洞(CVE-2026-110264,发布于 2026 年 10 月)的防御性审计与非侵入式暴露检测工具。
使用 Go 开发,专注于安全态势评估、资产清点与快速边界验证,面向系统管理员及 Blue Team / DevSecOps 团队。
| 指标 | 详情 |
|---|---|
| 标识符 | CVE-2026-110264 |
| 严重性 | 严重 — CVSS 10.0(最高) |
| 攻击向量 | 网络 / 未认证(AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H) |
| 缺陷类型 | 正则表达式编译器中的整数溢出(Integer Overflow) |
| 影响 | 以 GitLab 服务权限执行任意远程代码 |
| 发布日期 | 2026 年 10 月 21–22 日 |
该缺陷存在于 GitLab 内部用于验证和处理用户输入及仓库元数据的正则表达式编译与解析逻辑中。解析器内部内存管理中的整数溢出使未认证攻击者能够触发可利用条件,从而导致在底层服务器上执行任意命令。
影响范围巨大,因为受影响的逻辑已在 GitLab 代码库中存在十余年(7.0 及以后版本)。
| GitLab 分支 | 受影响版本 | 最低修复版本 |
|---|---|---|
| 19.5 | 19.5.0 | 19.5.1 |
| 19.4 | 19.4.0 至 19.4.2 | 19.4.3 |
| 19.3 | 19.3.0 至 19.3.5 | 19.3.6 |
| 19.2 | 19.2.0 至 19.2.8 | 19.2.9 |
| 19.1 | 19.1.0 至 19.1.8 | 19.1.9 |
| 19.0 | 19.0.0 至 19.0.9 | 19.0.10 |
| 18.11 | 18.11.0 至 18.11.12 | 18.11.13 |
| 7.0 至 18.10 | 所有中间版本 | 升级至 18.11.13 或迁移至 19.5.1+ |
/api/v4/version),兼容私有令牌(-token)。/help 中暴露的文档元数据与版本信息。/users/sign_in 中的 DOM 签名、meta 标签与哈希。GitLab-Workhorse、X-Gitlab-Meta、会话 cookie)。-o results.json)。-csv results.csv),用于安全资产清点。需要 Go 1.22+:
# Clonar o ingresar al directorio del proyecto
cd go-gitlab-cve-2026-110264-scanner
# Compilar mediante Makefile
make build
# O compilar directamente con Go
go build -ldflags="-s -w" -o go-gitlab-cve-2026-110264-scanner ./cmd/go-gitlab-cve-2026-110264-scanner
./go-gitlab-cve-2026-110264-scanner -u https://gitlab.miempresa.com
./go-gitlab-cve-2026-110264-scanner -l objetivos.txt -c 20 -o reporte.json -csv reporte.csv
./go-gitlab-cve-2026-110264-scanner -u https://gitlab.interno.net -token glpat-xxxxxxxxxxxx
./go-gitlab-cve-2026-110264-scanner -u https://gitlab.empresa.com -silent -o salida.json
| 标志 | 描述 | 默认值 |
|---|---|---|
-u, --url | 要审计的单个目标的 URL 或域名 | "" |
-l, --list | 包含目标列表的文本文件(支持 URL、域名和 CIDR) | "" |
-c | 并发工作线程(goroutines)数量 | 10 |
-t | HTTP 请求的超时时间(秒) | 10 |
-token | 用于审计 API 受限实例的 GitLab PRIVATE-TOKEN | "" |
-o | JSON 格式输出文件的路径 | "" |
-csv | CSV 格式输出文件的路径 | "" |
-no-color | 禁用终端中的 ANSI 颜色 | false |
-silent | 抑制横幅和信息性消息 | false |
-fallback-http | 如果初始 HTTPS 握手失败,则尝试 HTTP 连接 | true |
-version | 显示审计器版本和 CVE 详情 | false |
{
"summary": {
"total": 1,
"vulnerable": 1,
"patched": 0,
"potentially_exposed": 0,
"not_gitlab": 0,
"errors": 0
},
"results": [
{
"target": "https://gitlab.empresa.com",
"host": "gitlab.empresa.com",
"port": "443",
"is_alive": true,
"cdn": {
"detected": false
},
"detection": {
"is_gitlab": true,
"evidence": [
"GitLab specific HTTP response headers",
"Valid response from /api/v4/version"
],
"version_found": true,
"raw_version": "18.11.12-ee",
"detection_method": "REST API (/api/v4/version)",
"assessment": {
"status": "VULNERABLE",
"cve": "CVE-2026-110264",
"cvss": 10.0,
"detected_version": "18.11.12 (EE)",
"edition": "EE",
"recommended_patch": "18.11.13",
"notes": "Branch 18.11 is vulnerable prior to 18.11.13"
}
},
"duration_ms": 142
}
]
}
如果扫描器识别出你的实例处于 VULNERABLE 或 POTENTIALLY_EXPOSED 状态:
18.11.13、19.0.10、19.1.9、19.2.9、19.3.6、19.4.3 或 19.5.1)。本工具专为防御性目的、教育目的以及在自有或经授权的基础设施上进行预防性安全审计而创建。它不执行主动利用,也不存储凭据。作者不对第三方可能对本工具的不当使用承担责任。
本项目依据 MIT 许可证分发。更多信息请参阅 LICENSE 文件。