identrail CVE-2026-59185:跨租戶 GitHub 安裝繫結未驗證擁有權
CVE-2026-59185 - identrail: Cross-tenant GitHub installation binding without ownership verification
identrail 的機器身份安全平臺在 1.0.2 之前的版本,允許未經驗證的 GitHub 安裝 ID 被跨租戶使用,進而取得目標組織的私有儲存庫資訊。
此漏洞已於 2026-10-28 公佈,並在 1.0.2 版本中修復。
此 CVE 允許跨租戶存取私有 GitHub 資料,提醒使用者即時升級至 1.0.2 以防止資料外洩。
譯文尚未完整,完整內容請切換至原文。
identrail 是一個針對 AWS、GitHub/OIDC 與 Kubernetes 的機器身份安全平臺。在 1.0.2 之前,`internal/api/router.go` 中預設啟用的 `POST /v1/workspaces/:workspace_id/projects/:project_id/github/connect/complete` 端點會從請求主體或 `X-GitHub-Installation-ID` 標頭接受 `installation_id`,但不會檢查該安裝是否屬於呼叫者的工作區。`internal/api/github_connect.go` 中的 `CompleteGitHubConnection` 嚴格將 `state` 繫結到呼叫者的租戶、工作區與專案,但僅檢查安裝 ID 是否為正數,然後將其持久化為呼叫者的連線。`internal/connectors/github/repositories.go` 中的 `ListInstallationRepositories` 透過 `internal/connectors/github/app.go` 與 `POST /app/installations/{installationId}/access_tokens` 呼叫令牌建立,使用應用程式的 JWT。已驗證的租戶在啟動合法連線時,可以提供另一位客戶的非秘密安裝 ID,以讀取受害組織的私有倉庫清單、內容與元資料,或執行姿態掃描,只要 identrail 的 GitHub App 已安裝於該處。預設關閉的 V2 `CompleteGitHubConnector` 路徑同樣存在安裝所有權缺口,且在不重新檢查呼叫者範圍的情況下匹配待處理的 `state`。此問題已於 1.0.2 版本修復。
影響
受影響產品
以下產品受 CVE-2026-59185 漏洞影響。即使 cvefeed.io 已知受影響產品的確切版本,該資訊仍未在下表中呈現。
尚未記錄受影響產品
通用漏洞評分系統(Common Vulnerability Scoring System)是一套標準化框架,用於評估軟體與系統漏洞的嚴重程度。我們為每個 CVE 收集並顯示來自各來源的 CVSS 分數。
| 分數 | 版本 | 嚴重性 | 向量 | 可利用性分數 | 影響分數 | 來源 |
|---|---|---|---|---|---|---|
| CVSS 3.1 | 高 | github | ||||
| CVSS 3.1 | 高 | MITRE-CVE | ||||
| CVSS 3.1 | 高 | [email protected] |
驗證 GitHub 安裝 ID 是否屬於原始工作區,以防止跨租戶倉庫存取。
- 驗證安裝 ID 屬於啟動工作區。
- 將安裝 ID 繫結至啟動時的待處理狀態。
- 檢查安裝的帳號是否符合授權組織。
此處提供一份精選的外部連結清單,包含深入資訊、實用解決方案與相關工具,關於
CVE-2026-59185。
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2026-59185 is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification
(CAPEC)
儲存攻擊模式,這些模式是描述攻擊者利用 CVE-2026-59185 弱點所採用的常見屬性與方法。
我們掃描 GitHub 倉庫以偵測新的概念驗證漏洞。以下清單為已在 GitHub 釋出的公開漏洞與概念驗證集合(按最近更新排序)。
結果僅限前 15 個倉庫,因潛在的效能問題。
以下清單為在文章中提及 CVE-2026-59185 漏洞的新聞。
以下表格列出隨時間變化對 CVE-2026-59185 漏洞所做的更改。
漏洞歷史細節有助於瞭解漏洞的演變,並辨識可能影響漏洞嚴重性、可利用性或其他特徵的最新變更。
-
New CVE Received By [email protected]
十月. 28, 2026
Action Type Old Value New Value Added Description identrail is a machine identity security platform for AWS, GitHub/OIDC, and Kubernetes. Prior to 1.0.2, the default-on `POST /v1/workspaces/:workspace_id/projects/:project_id/github/connect/complete` endpoint in `internal/api/router.go` accepts `installation_id` from the request body or `X-GitHub-Installation-ID` header without verifying the installation belongs to the caller's workspace. `CompleteGitHubConnection` in `internal/api/github_connect.go` rigorously binds `state` to the caller's tenant, workspace, and project, but checks only that the installation ID is positive before persisting it as the caller's connection. `ListInstallationRepositories` in `internal/connectors/github/repositories.go` invokes token creation through `internal/connectors/github/app.go` and `POST /app/installations/{installationId}/access_tokens`, using the application's JWT. An authenticated tenant who starts a legitimate connection can supply another customer's non-secret installation ID to read the victim organization's private repository inventory, content, and metadata or drive posture scans, provided identrail's GitHub App is installed there. The default-off V2 `CompleteGitHubConnector` path shares the installation-ownership gap and additionally matches pending `state` without rechecking caller scope. This issue is fixed in version 1.0.2. Added CVSS V3.1 AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:L/A:N Added CWE CWE-639 Added CWE CWE-862 Added Affected New affected value received. <a href="https://github.com/CVEProject/cvelistV5/blob/main/cves/2026/59xxx/CVE-2026-59185.json">CVE-2026-59185</a> 已新增 參考 https://github.com/identrail/identrail/commit/835e40517509d6ef5405c27fbf14f579bedff0e7 已新增 參考 https://github.com/identrail/identrail/releases/tag/v1.0.2 已新增 參考 https://github.com/identrail/identrail/security/advisories/GHSA-cp3j-m783-3ph5
EPSS 是對未來 30 天內可能被利用的機率的每日估計。下圖顯示此漏洞的 EPSS 分數歷史。