CVE-2021-22865
publishedImproper access control in GitHub Enterprise Server leading to unauthorized read access to private repository metadata
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| GitHub | — | GitHub Enterprise Server3.0 to < 3.0.4 · 2.22 to < 2.22.10 · 2.21 to < 2.21.18 | Affected | Not stated | GitHub_P |
Description
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
No normalized assessments.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| GitHub | GitHub Enterprise Server | 3.0 to < 3.0.4 (affected · custom)2.22 to < 2.22.10 (affected · custom)2.21 to < 2.21.18 (affected · custom) | GitHub_P · cna |
Weaknesses
1- CWE-285 CWE-285: Improper Authorization
References
3Provider assertions
2GitHub_P · cna
Improper access control in GitHub Enterprise Server leading to unauthorized read access to private repository metadata
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 61023d6ea20c4ce616985f49ba1b7b8679c56fe41baf2310224f85018218974a
- Ingested
- 23 Sep 2026, 07:52:45 UTC
- Source record
- Official CVE record