Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessObtain authenticated GHES account with any repo read access
-
DeliveryIdentify target private repository on the same instance
-
ExploitCraft cross-repository comparison range request to Copilot diff summary endpoint
-
ExecutionSubmit request without possessing target repository permissions
-
ImpactReceive full unauthorized source code diff of private repository
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V8 - Authorization Authorization checks on every request
MITRE ATT&CK
1 technique across 1 tactic: Privilege Escalation The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires a valid authenticated user account on the specific GitHub Enterprise Server instance - unauthenticated remote attackers cannot exploit this vulnerability. The authenticated account must hold read access to at least one repository on the instance, which serves as the comparison base in the crafted request; no access to the target private repository is needed or enforced. The Copilot pull request description feature must be enabled on the instance for the vulnerable endpoint to be reachable. Exploitation is therefore limited to internal threat actors - employees, contractors, or holders of compromised accounts - with any existing legitimate repository access. External attackers without an account on the instance are fully excluded. This vulnerability does not affect GitHub.com. |
| Impact | The CVSS 4.0 score of 6.0 (AV:N/AC:L/AT:P/PR:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N) accurately captures the threat profile: network-reachable, low complexity once the endpoint behavior is known, but gated behind a specific attack requirement (AT:P) - the attacker must already possess an authenticated account with read access to at least one repository on the instance. The confidentiality impact is rated High (VC:H) because full source code diffs of arbitrary private repositories are exposed, which can include proprietary logic, embedded credentials, or sensitive configuration. Integrity and availability are not affected. No CISA KEV listing exists and no public proof-of-concept exploit has been identified, meaning widespread opportunistic exploitation is not confirmed. The insider threat and compromised-account scenarios represent the most realistic risk vectors - external unauthenticated attackers cannot exploit this. EPSS data was not provided, so a quantified exploitation probability cannot be stated. Despite the High confidentiality impact, the AT:P gating condition meaningfully reduces the exposed attack surface compared to an unauthenticated, no-prerequisites vulnerability. |
| Exploit ScenarioDerived | A developer contractor on a GitHub Enterprise Server instance holds read access to a single project repository for their engagement. Aware of the Copilot diff summary endpoint behavior, they craft an API request specifying a cross-repository comparison range that targets a sensitive internal repository containing proprietary source code they have no authorized access to. The endpoint returns the full diff of the target repository without performing any authorization check, exposing the private codebase. No public exploit code is known, but the technique is straightforward for any technically capable authenticated user once the endpoint behavior is understood. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jun 30, 2026
Unauthorized source code disclosure in GitHub Enterprise Server exposes private repository contents to any authenticated user on the instance, regardless of their actual repository permissions. The Copilot pull request description diff summary endpoint accepted cross-repository comparison ranges and rendered the resulting diff without verifying the requesting user held read access to the target repository - a missing authorization flaw (CWE-862) allowing lateral access to arbitrary private repositories. No active exploitation has been confirmed (not in CISA KEV), the issue was responsibly disclosed via GitHub's Bug Bounty program, and patches are available across four release branches.
RemediationAI
The primary remediation is to upgrade GitHub Enterprise Server to a patched release: 3.17.17, 3.18.11, 3.19.8, or 3.20.4, as documented in GitHub's official release notes linked in the references above. As a compensating control for organizations that cannot patch immediately, administrators should consider disabling the Copilot pull request description feature at the instance or organization level to eliminate exposure of the vulnerable endpoint; the trade-off is loss of AI-assisted PR description generation for all users. Additionally, auditing and restricting which accounts hold any repository access on the instance reduces the exploitable population - removing dormant, contractor, or untrusted accounts that no longer require access directly shrinks the attack surface. These controls do not remediate the root flaw and should be treated as temporary measures pending the patch upgrade.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
GitHub Enterprise Server (GHES) is a self-hosted deployment of GitHub's platform for enterprise environments, distinct from GitHub.com. The vulnerability is rooted in the Copilot-powered pull request description feature, which invokes a diff summary endpoint to generate AI-assisted PR descriptions. This endpoint accepts a cross-repository comparison range parameter - allowing a caller to specify a source and target repository for the diff - but only enforced authorization checks on the source (base) repository. The target repository authorization was entirely absent, a textbook CWE-862 (Missing Authorization) failure where a security-sensitive function executes without verifying the caller's permission on the accessed resource. CPE string cpe:2.3:a:github:enterprise_server:*:*:*:*:*:*:*:* confirms the scope is limited to self-hosted GHES instances; the CVSS 4.0 AT:P metric reflects that exploitation depends on the attacker already holding a valid authenticated session with at least one repository's read access.
Know when Github gets its next vulnerability
- 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
CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N
Network-reachable endpoint requires low-privilege authenticated session (PR:L); no scope change as both vulnerable component and impacted data reside within the same GHES instance; high confidentiality loss, no integrity or availability impact.
Primary rating from Vendor (GitHub_P).
CVSS VectorVendor: GitHub_P
DescriptionCVE.org
A missing authorization vulnerability was identified in GitHub Enterprise Server that allowed an authenticated user to read source code from private repositories they did not have access to. The Copilot pull request description diff summary endpoint accepted a cross-repository comparison range and rendered the resulting diff without verifying that the requesting user was authorized to view the target repository. Exploitation required an authenticated account on the instance with read access to at least one repository to use as the comparison base. This vulnerability affected all versions of GitHub Enterprise Server prior to 3.21 and was fixed in versions 3.17.17, 3.18.11, 3.19.8, and 3.20.4. This vulnerability was reported via the GitHub Bug Bounty program.
Threat Intelligence Overview
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.
Supply chain vulnerability in Eclipse Theia GitHub Actions workflow. The preview.yml workflow uses pull_request_target w
Supply chain attack vector in OpenLIT GitHub Actions workflows. The pull_request_target trigger with checkout enables ma
Eigent multi-agent workflow CI pipeline (ci.yml) uses pull_request_target with checkout of untrusted PR code, enabling a
An unsafe reflection vulnerability was identified in GitHub Enterprise Server that could lead to reflection injection. R
cmark-gfm is GitHub's extended version of the C reference implementation of CommonMark. Rated critical severity (CVSS 9.
An improper verification of cryptographic signature vulnerability was identified in GitHub Enterprise Server that allowe
Unauthenticated infrastructure overwrite in Hoppscotch API development ecosystem before 2026.2.0. Attackers can overwrit
A exposure of sensitive information vulnerability exists in Jenkins GitHub Plugin 1.29.1 and earlier in GitHubTokenCrede
OneUptime versions prior to 10.0.19 allow unauthenticated attackers to hijack GitHub App integrations across projects by
PolarLearn versions 0-PRERELEASE-15 and earlier lack proper state parameter validation in OAuth 2.0 authentication, enab
Path traversal in esm.sh CDN prior to version 0.0.0-20260116051925-c62ab83c589e allows unauthenticated remote attackers
actions/artifact is the GitHub ToolKit for developing GitHub Actions. Rated high severity (CVSS 7.5), this vulnerability
EUVD-2026-40408
GHSA-42pg-j2h8-h5fw
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB