Improper access control in GitHub Enterprise Server leading to unauthorized read access to private repository metadata
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- Required
- Attack complexity
- Low
- Impact type
- Security bypass
- Confidentiality · integrity · availability
- High · None · None
- Fix status
- Fixed
Attack profile from CVSS 3.1 · NVD. Fix status from CNA. Impact type from CWE-285.
Summary
An improper access control vulnerability was identified in GitHub Enterprise Server that allowed access tokens generated from a GitHub App's web authentication flow to read private repository metadata via the REST API without having been granted the appropriate permissions. To exploit this vulnerability, an attacker would need to create a GitHub App on the instance and have a user authorize the application through the web authentication flow. The private repository metadata returned would be limited to repositories owned by the user the token identifies. This vulnerability affected all versions of GitHub Enterprise Server prior to 3.0.4 and was fixed in versions 3.0.4, 2.22.10, 2.21.18. This vulnerability was reported via the GitHub Bug Bounty program.
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| GitHub | GitHub Enterprise Server | 3.0 to before 3.0.4; 2.22 to before 2.22.10; 2.21 to before 2.21.18 | 3.0.4, 2.22.10, 2.21.18 | Patch available | CNA |
- GitHub Enterprise Server VendorGitHub Affected 3.0 to before 3.0.4; 2.22 to before 2.22.10; 2.21 to before 2.21.18 Fixed in 3.0.4, 2.22.10, 2.21.18 Patch available CNA
CPE configurations NVD · 1
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:github:enterprise_server:*:*:*:*:*:*:*:* | before 2.21.18; 2.22.0 to before 2.22.10; 3.0.0 to before 3.0.4 | Vulnerable | GitHub |
- cpe:2.3:a:github:enterprise_server:*:*:*:*:*:*:*:* Versions before 2.21.18; 2.22.0 to before 2.22.10; 3.0.0 to before 3.0.4 Vulnerable ·GitHub
Remediation
- Fix · CNA GitHub Enterprise Server (GitHub) Fixed in 3.0.4, 2.22.10, 2.21.18
Timeline
- 2026-10-02 Threatist record created from CVE-2021-22865
- 2026-10-03 Alias added: GHSA-735f-v862-xcr3
References
More GitHub Enterprise Server vulnerabilities
- TI-2024-04632 An authentication bypass vulnerability was present in the GitHub Enterprise Server (GHES)… CVSS 4.0CRITICAL 10.0
- TI-2024-00181 Unsafe Reflection in Github Enterprise Server leading to Command Injection CVSS 3.1CRITICAL 9.8
- TI-2024-00466 Privilege Escalation by Code Injection in the Management Console in GitHub Enterprise Server CVSS 3.1HIGH 8.8
- TI-2026-03340 Remote code execution via git push option injection in GitHub Enterprise Server CVSS 4.0HIGH 8.7
- TI-2024-08804 Improper signature verification in GitHub Enterprise Server CVSS 4.0CRITICAL 9.5
- TI-2026-08177 Server-side request forgery in GitHub Enterprise Server CVSS 4.0CRITICAL 9.2
Sources
- CVE-2021-22865 · CVE Program
- CVE-2021-22865 · NVD
- FIRST EPSS
- GHSA-735f-v862-xcr3 · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences