Skip to main content

identrail EUVDEUVD-2026-112081

| CVE-2026-59185 HIGH
Authorization Bypass Through User-Controlled Key (CWE-639)
2026-09-09 https://github.com/identrail/identrail GHSA-cp3j-m783-3ph5
8.5
CVSS 3.1 · Vendor: https://github.com/identrail/identrail
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Recon
    Authenticate as legitimate identrail tenant
  2. Delivery
    initiate own GitHub connect flow, receive valid state token
  3. Exploit
    obtain victim org's installation_id from redirect URL or enumeration
  4. Install
    submit completion request with own state + victim installation_id
  5. C2
    server validates state, skips installation_id ownership check
  6. Execute
    server mints GitHub token for victim installation
  7. Impact
    read victim's private repositories and persist cross-tenant connection

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V8 - Authorization Object-level authorization, IDOR prevention
Exploitation Conditions

Attacker must hold any valid identrail tenant account (PR:L). The attacker must know or enumerate a victim organization's GitHub App installation ID, which is not a meaningful barrier since installation IDs appear in post-install redirect URLs, GitHub webhook payloads, and are sequential integers observable in org settings. The victim organization must have identrail's GitHub App installed on their GitHub account. No special configuration, feature flag, or elevated privilege is required on the default code path. Exploitation is limited to identrail's own customer base-the attacker must be an identrail tenant and the victim must also be an identrail customer with a connected GitHub App. Environments running identrail without the GitHub App connector configured are unaffected.

Impact

The CVSS 8.5 vector AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:L/A:N is well-calibrated for this vulnerability. PR:L is accurate-any valid identrail tenant account suffices, and the attacker uses their own legitimately-issued state token. AC:L is correct: installation IDs are publicly observable and the exploit requires no special conditions beyond holding an identrail account. S:C (scope change) correctly captures that the primary impact is unauthorized access to a resource-the victim's GitHub installation-outside the attacker's authorization boundary. C:H reflects full read access to the victim org's private repository inventory and metadata; I:L reflects that the persisted connection also enables posture scans against victim repos, representing a secondary integrity impact. No EPSS data was provided. No KEV listing exists and no public exploit code has been identified, meaning exploitation requires a motivated adversary with an identrail account, which limits opportunistic mass exploitation but does not reduce targeted risk to zero given the low attack complexity once an attacker understands the flow.

Exploit ScenarioDerived

An attacker who holds a legitimate identrail account calls StartGitHubConnection for their own workspace to obtain a valid state token. They then call the completion endpoint with their own state but substitute a victim organization's installation_id-obtained from webhook payloads, post-install redirect URLs, or enumeration of sequential integers. The server validates the state (which passes) and skips any ownership check on installation_id, mints a GitHub App token for the victim's installation, and persists the cross-tenant connection under the attacker's workspace, granting ongoing read access to the victim's private repository inventory and enabling further posture scans.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.3% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Sep 10, 2026

Cross-tenant IDOR in identrail's GitHub App connection-completion endpoint allows any authenticated tenant to hijack another customer's GitHub App installation and read their organization's private repositories. The flaw exists at POST /v1/workspaces/:workspace_id/projects/:project_id/github/connect/complete, where the client-supplied installation_id is accepted and persisted with no ownership verification-despite the co-located state token being rigorously bound to {TenantID, WorkspaceID, ProjectID}. Fixed in v1.0.2; no public exploit code or CISA KEV listing identified at time of analysis.

RemediationAI

Upgrade to identrail v1.0.2, available at https://github.com/identrail/identrail/releases/tag/v1.0.2. The fix (commit 835e405) adds an OAuth code exchange step: the GitHub App must have 'Request user authorization (OAuth) during installation' enabled, configured via IDENTRAIL_GITHUB_APP_OAUTH_CLIENT_ID and IDENTRAIL_GITHUB_APP_OAUTH_CLIENT_SECRET. The server now exchanges the OAuth code GitHub returns on the post-install redirect to obtain a user token, then verifies the supplied installation_id is accessible to that authenticated GitHub user before binding it to the workspace. Connection completion fails closed (HTTP 403) if the OAuth credentials are not configured. The attacker-controlled X-GitHub-Installation-ID header fallback has been removed entirely. For self-hosted deployments that cannot immediately upgrade, a partial compensating control is to restrict network access to the /v1/workspaces/*/projects/*/github/connect/complete endpoint to trusted tenant IPs only, though this does not eliminate the IDOR for multi-tenant deployments and upgrading remains the authoritative fix.

Affected VersionsENISA

identrail < 1.0.2

Affected Packages

go github.com/identrail/identrail fix: 1.0.2
euvd identrail fix: 1.0.2

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 2 packages in go, euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

identrail is a Go-based security posture management SaaS that integrates with GitHub via GitHub Apps. GitHub App installations are identified by numeric installation IDs assigned at install time; these IDs are non-secret and observable in post-install redirect URLs, webhook payloads, org settings pages, and are enumerable integers. identrail's server uses its own signed JWT to mint per-installation GitHub access tokens via POST /app/installations/{installationId}/access_tokens-a call that succeeds for any installation where identrail's GitHub App is installed, regardless of which tenant's workspace initiated the flow. CWE-639 (Authorization Bypass Through User-Controlled Key) applies precisely: the installation_id is a user-controlled integer that maps directly to a GitHub resource, and the server performs no binding check to verify the caller's workspace is authorized for that installation. The X-GitHub-Installation-ID HTTP header provided an additional attacker-controlled injection point alongside the JSON body field. The V2 code path (github_connect.go:447, feature-flagged off by default) shares the same gap and is additionally weaker, matching the pending connector by state value alone with no caller-scope re-check.

Know when the next one hits your stack

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (https://github.com/identrail/identrail) PRIMARY 8.5 HIGH
AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:L/A:N
vuln.today AI 8.5 HIGH

Network endpoint, no special conditions, requires authenticated tenant (PR:L), scope change to victim org repos (S:C), full read on private repos (C:H), secondary integrity impact via persisted connection (I:L).

3.1 AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:L/A:N
4.0 AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:N/SC:H/SI:L/SA:N
SUSE HIGH

Primary rating from Vendor (https://github.com/identrail/identrail).

CVSS VectorVendor: https://github.com/identrail/identrail

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Changed
Confidentiality
High
Integrity
Low
Availability
None

DescriptionCVE.org

Summary

identrail's GitHub App connection-completion endpoint binds a fully client-supplied installation_id to the caller's workspace without verifying that the installation belongs to, or was installed by, the workspace that initiated the connect flow. identrail then mints a GitHub App installation access token for the supplied installation_id using the app's own JWT, so an authenticated tenant can link any other identrail customer's GitHub App installation into their own workspace and read that victim organization's private repositories.

Affected code (default-on path, no feature flag)

  • Route: internal/api/router.go:3590 - POST /v1/workspaces/:workspace_id/projects/:project_id/github/connect/complete. installation_id is read from the JSON body or the attacker-controlled X-GitHub-Installation-ID header (router.go:3582-3588).
  • Service: internal/api/github_connect.go:781 CompleteGitHubConnection. The state token IS rigorously bound to the caller's scope (github_connect.go:818: if stateRecord.TenantID != scope.TenantID || stateRecord.WorkspaceID != project.WorkspaceID || stateRecord.ProjectID != project.ProjectID { ... }), but the only check on installation_id is request.InstallationID <= 0 (:794). The raw client value is persisted as the workspace's connection (:840).
  • Cross-tenant read primitive: internal/connectors/github/repositories.go:39 ListInstallationRepositories → internal/connectors/github/app.go:170 mints a token via POST /app/installations/{installationId}/access_tokens signed with the App JWT, succeeding for any installation where identrail's app is installed.

The feature-flagged V2 path CompleteGitHubConnector (github_connect.go:447, default off) shares the gap and is additionally weaker (matches pending connector by state value alone with no caller-scope re-check); a single fix should cover both.

Intent proof

The code binds state to {TenantID, WorkspaceID, ProjectID} and re-verifies it at completion (:818), demonstrating it understands binding is required. The asymmetry - state bound, installation_id unbound - is the missed check.

Exploitation

  1. Attacker is any authenticated identrail tenant; they call StartGitHubConnection for their own workspace and receive a state.
  2. Attacker calls the completion route with {state: <their state>, installation_id: V} where V is a victim org's identrail GitHub App installation id (installation ids are not secret - they appear in post-install redirect URLs, webhook payloads, the org's GitHub App settings, and are enumerable integers).
  3. CompleteGitHubConnection accepts (state matches attacker scope), ListInstallationRepositories(V) mints a token for V and lists the victim org's private repos, and the connection is persisted under the attacker's workspace.
  4. Attacker now reads the victim org's private repository inventory and can drive posture scans/repo reads via their own workspace.

Impact: cross-tenant disclosure of another customer organization's private GitHub repositories and metadata.

Remediation

Bind installation_id with the same rigor as state: capture it from GitHub's signed post-install redirect (setup_url/callback_url) and pin it to the pending state at start time, and/or after minting verify the installation's account matches the org the initiating workspace is authorized for.

Technical POC Analysis

CWE-639 (Authorization Bypass Through User-Controlled Key), with a secondary CWE-862.

Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.

Executive ViewAI

Why It Matters

An authorization flaw in identrail's GitHub App integration allows authenticated users to hijack other customers' GitHub application credentials and access their private repositories. Organizations relying on identrail for code repository management face exposure of proprietary source code and development secrets across tenant boundaries. Immediate patching is critical given the highly sensitive nature of repository data involved.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.3%
Top 75% exploitable
Prevalence
Rare
niche SaaS security posture tool, limited customer base
Threat Intel
1
1 source
Data Quality
5 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.3%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact
High

Priority Score

42
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +42
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Vendor StatusVendor

SUSE

Severity: Important

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy