CVE-2026-97229
GitLab Community Edition and Enterprise Edition Integer Overflow or Wraparound Vulnerability
GitLab · Community Edition and Enterprise Edition
列入日期: 2026-10-29美國聯邦機關修補期限: 2026-11-01
解析與對策(積穗 HMMA)
說明:「解析與對策」由積穗地端 AI(HMMA)依 CISA 公開原文自動生成,未加入 CISA 以外的資訊;受影響版本與修補方式請以廠商公告為準。
這個漏洞是什麼
GitLab Community Edition 與 Enterprise Edition 存在一個整數溢位(Integer Overflow)或繞過(Wraparound)漏洞,源於正規表示式(Regular Expression)編譯器(Onigmo)的處理邏輯不當。攻擊者可透過在 CI/CD 配置中注入特製的惡意正規表示式,觸發記憶損壞,進而執行任意程式碼。此漏洞在 2026 年 10 月已被收錄至 CISA KEV 清單,且已被確認有實際利用案例。
下列條件全部成立才會中
- GitLab 伺服器執行受影響的版本(19.2.0 至 19.4.1 之間)
- 攻擊者能透過 CI/CD 配置(如 .gitlab-ci.yml)提交或修改正規表示式
- 系統中使用的 Ruby 版本為 3.3.0 至 3.4.12 或 4.0.0 至 4.0.8 之間
修補版本
GitLab CE/EE 19.4.2(2026-10-12 發布)、19.3.5(2026-10-12 發布)、19.2.8(2026-10-12 發布)
對企業的風險
此漏洞屬於「遠端程式碼執行(RCE)」等級,攻擊者無需任何帳號許可權即可控制 GitLab 伺服器,導致企業原始碼、客戶資料、客戶個資與系統存取憑證外洩。由於已被納入 CISA KEV,代表此漏洞已在真實環境中被攻擊者利用,台灣企業若未在 2026-11-01 前完成修補,將面臨勒索軟體攻擊與資料外洩的直接威脅。
怎麼確認自己有沒有中
- 檢查 GitLab 版本:確認是否為 19.4.1、19.3.4、19.2.7 或更早版本
- 檢查 CI/CD 配置檔案:搜尋專案中是否存在使用者可自行編輯的 `.gitlab-ci.yml` 檔案
- 檢查 Ruby 版本:透過 `ruby -v` 指令確認執行環境的 Ruby 版本是否在受影響範圍內
誰需要處理
資訊安全部門(負責漏洞評估與修補)、IT 基礎設施團隊(負責系統升級)、DevOps 團隊(負責 CI/CD 環境管理)及資訊主管(負責風險決策)。
建議對策
- 立即升級至 GitLab CE/EE 19.4.2、19.3.5 或 19.2.8 版本,這是最根本的修補方式。
- 若無法立即升級,應暫停或限制 CI/CD 功能的使用,並停用任何允許使用者自定義正規表示式的功能。
- 針對無法升級的系統,應將 GitLab 服務置於防火牆或存取控制清單(ACL)後方,僅允許特定內部 IP 存取。
- 啟用並監控系統日誌,特別關注 CI/CD 執行日誌中出現的異常正規表示式錯誤或服務崩潰紀錄。
- 定期備份 GitLab 完整資料(含資料庫與 Git 儲存庫),確保在遭受攻擊後可快速恢復營運。
解析依據
解析時間: 2026-11-06 12:54 UTC · winners-zh-summary
CISA 官方原文
- 廠商
- GitLab
- 產品
- Community Edition and Enterprise Edition
- 漏洞名稱
- GitLab Community Edition and Enterprise Edition Integer Overflow or Wraparound Vulnerability
- CISA 描述
- GitLab Community Edition and Enterprise Edition contain a integer overflow or wraparound vulnerability that could allow an unauthenticated user to execute arbitrary code on the GitLab server via a specially crafted regular expression in a CI/CD configuration, due to insufficient regular expression validation.
- CISA 要求措施
- Apply mitigations in accordance with vendor instructions, ensuring compliance with CISA’s BOD 26-04 Prioritizing Security Updates Based on Risk (see URL in Notes) guidance and CISA’s “Forensics Triage Requirements” (see URL in Notes). Follow applicable BOD 26-04 guidance for cloud services or discontinue use of the product if mitigations are unavailable. Stakeholders are responsible for evaluating each asset's internet exposure and ensuring adherence to BOD 26-04 patching guidelines.
- CWE
- CWE-190
- 需鑑識分流
- Yes
官方參考連結
- CISA KEV Catalog
- NVD 漏洞資料
- https://www.ruby-lang.org/en/news/2026/10/23/regexp-fixes-for-gitlab-cves
- https://docs.gitlab.com/releases/patches/patch-release-gitlab-19-4-2-released/
- https://www.cisa.gov/news-events/directives/bod-26-04-prioritizing-security-updates-based-risk
- https://www.cisa.gov/news-events/directives/bod-26-04-implementation-guidance-prioritizing-security-updates-based-risk
