Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate as write-access collaborator
-
ExploitCall GraphQL to delete default branch
-
ExecutionAttacker-controlled branch promoted to default
-
ImpactClones and API serve unreviewed malicious content
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 | Requires an authenticated repository collaborator with write access (PR:L). The repository must be configured to require pull-request review but must NOT restrict branch deletion - this exact configuration state is the AT:P attack requirement; repos that restrict branch deletion are not exploitable. Exploitation is performed remotely via the GraphQL API against supported GitHub Enterprise Server 3.18-3.22 instances prior to the fix releases. Limiting factors: the attacker must already hold write access (no unauthenticated or read-only path), the specific review-without-deletion-restriction configuration must exist, and impact is confined to default-branch integrity (no data disclosure or denial of service). |
| Impact | This is a genuine but bounded integrity issue rather than a top-tier emergency. The CVSS 4.0 base score of 6.0 (Medium) is driven by VI:H with VC:N and VA:N - the flaw lets an attacker corrupt the integrity of a repository's default branch but cannot read data or cause outages. Several signals agree it is not a mass-exploitation threat: PR:L requires an authenticated collaborator who already has write access, AT:P indicates a specific configuration prerequisite must be met, and the issue was found and reported privately through the GitHub Bug Bounty program rather than discovered in attacks. No EPSS score, CISA KEV listing, or public POC is present in the provided data, so there is no public exploit identified at time of analysis and no evidence of active exploitation. The real risk is contextual: in environments that rely on pull-request review as a merge-protection control but have not also restricted branch deletion, a semi-trusted insider (or a compromised collaborator account) can bypass that review gate and poison what new clones and default-branch API calls receive - a supply-chain-style integrity concern that matters most for organizations with many low-trust write collaborators. For tightly controlled repos with few trusted maintainers, real-world risk is low. |
| Exploit ScenarioDerived | A repository collaborator with only write access (e.g., an outside contributor or a compromised low-privilege account) targets a repo that requires pull-request review but does not restrict branch deletion. Using the GraphQL API over the network, they delete the protected default branch and have their own attacker-controlled branch promoted to default, so fresh clones and default-branch API requests silently serve their unreviewed code, bypassing the review requirement. No public exploit code is identified in the available data. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Oct 06, 2026
Repository collaborators with write access on self-hosted GitHub Enterprise Server 3.18 through 3.22 can delete a repository's current default branch through the GraphQL API and have an attacker-controlled branch become the new default, so that fresh clones and default-branch API requests receive unreviewed content. Exploitation is authenticated (a write-access collaborator is required, per CVSS PR:L) and additionally depends on the repository being configured to require pull-request review while not restricting branch deletion; repositories that restrict branch deletion are not exploitable. Impact is bounded to default-branch integrity with no confidentiality or availability loss, and no public exploit identified at time of analysis.
RemediationAI
Vendor-released patch: upgrade to 3.18.16, 3.19.13, 3.20.9, 3.21.7, or 3.22.2 on the matching release series, following the vendor release notes at https://docs.github.com/en/enterprise-server@3.18/admin/release-notes#3.18.16, https://docs.github.com/en/enterprise-server@3.19/admin/release-notes#3.19.13, https://docs.github.com/en/enterprise-server@3.20/admin/release-notes#3.20.9, https://docs.github.com/en/enterprise-server@3.21/admin/release-notes#3.21.7, and https://docs.github.com/en/enterprise-server@3.22/admin/release-notes#3.22.2; because GitHub Enterprise Server is self-hosted there is no automatic cloud-side fix, so the upgrade must be applied by the instance administrator. If an immediate upgrade is not possible, the most direct compensating control is to enable branch-deletion restrictions (branch protection rules or the repository policy that limits who may delete branches) on repositories that require pull-request review, since the independent assessment confirms repositories that restrict branch deletion are not exploitable; the trade-off is that legitimate branch cleanup then requires a maintainer or admin action rather than any write-access user. Additional interim measures include temporarily reducing write access grants to the minimum necessary, particularly on repositories whose default branch content is consumed by build or deployment pipelines, with the trade-off of slowing normal contribution flow, and restricting or monitoring GraphQL API usage for branch-deletion and default-branch mutations. Because the flaw allows an attacker-controlled default branch to persist, remediation should also verify the currently configured default branch on sensitive repositories and rename or restore it, and review audit log entries for unexpected default-branch changes made before the fix was applied.
Affected VersionsENISA
Affects your stack
Find out whether the stacks and servers you run are on an affected version.
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The root cause is CWE-862 (Missing Authorization): the GraphQL API path that deletes a branch and/or reassigns the default branch failed to enforce the authorization boundary that should prevent a write-access repository collaborator from removing the default branch. In GitHub's permission model, write access permits pushing to branches but should not permit removing or replacing the default branch, an operation that effectively controls what every clone and default-branch API consumer receives. The vulnerability matters because of how default branches are consumed rather than how they are stored: once an attacker-controlled branch becomes default, the required pull-request review control is bypassed because tooling and clients pull the attacker's content directly, making this an integrity bypass rather than a simple permission quirk. The CVSS 4.0 vector (CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:N/VI:H/VA:N, base 6.0) records the attack requirement AT:P as the repository configuration state (review required, branch deletion unrestricted) and the independent CVSS 3.1 assessment (AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N) agrees that only integrity is affected and no user interaction is needed. No CPE strings were supplied with this record, so affected builds are identified from the vendor description and the linked release notes rather than from CPE matching.
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:N/VI:H/VA:N/SC:N/SI:N/SA:N
Network GraphQL API (AV:N) usable by an authenticated write collaborator (PR:L), no user interaction; only integrity of default-branch content is affected (I:H, C:N/A:N), scope unchanged.
Primary rating from Vendor (github).
CVSS VectorVendor: github
Lifecycle Timeline
2DescriptionCVE.org
A missing authorization vulnerability was identified in GitHub Enterprise Server that allowed a repository collaborator with write access to delete the current default branch through the GraphQL API and cause an attacker-controlled branch to become the new default. In repositories that required pull-request review but did not restrict branch deletion, this bypassed the review requirement and caused fresh clones and default-branch API requests to use attacker-controlled content. This vulnerability affected supported GitHub Enterprise Server releases in the 3.18, 3.19, 3.20, 3.21, and 3.22 series and was fixed in versions 3.18.16, 3.19.13, 3.20.9, 3.21.7, and 3.22.2. 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-93666
GHSA-mj9w-xm4p-h2mp
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB