CVE-2026-103620Missing authorization in GitHub Enterprise Server allowed repository writers to replace…
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.
What to do
None of the Linux distributions or Windows releases we track list an affected package for this CVE. Check the vendor-reported products below.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
What the vendor says
As published in the CVE record by GitHub_P, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- GitHub Enterprise Server: affected: 3.18.0 to before 3.18.*, 3.19.0 to before 3.19.*, 3.20.0 to before 3.20.*, 3.21.0 to before 3.21.*, 3.22.0 to before 3.22.*; fixed in
3.18.16,3.19.13,3.20.9,3.21.7,3.22.2
Vendor advisories:
- https://docs.github.com/en/enterprise-server@3.18/admin/release-notes#3.18.16 (release-notes)
- https://docs.github.com/en/enterprise-server@3.19/admin/release-notes#3.19.13 (release-notes)
- https://docs.github.com/en/enterprise-server@3.20/admin/release-notes#3.20.9 (release-notes)
- https://docs.github.com/en/enterprise-server@3.21/admin/release-notes#3.21.7 (release-notes)
- https://docs.github.com/en/enterprise-server@3.22/admin/release-notes#3.22.2 (release-notes)
References
- 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
- https://docs.github.com/en/enterprise-server@3.22/admin/release-notes#3.22.2
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.