CVE-2021-22865: github enterprise_server Improper Authorization
Vulnerability summary
CVE-2021-22865 is a medium (CVSS 6.5) Improper Authorization vulnerability in github enterprise_server. EPSS estimates a 1.32% chance of exploitation in the next 30 days, higher than 70.3% of scored vulnerabilities.
Timeline
- 02-04-2021PublishedVulnerability first disclosed.
- 03-08-2024Last modifiedVulnerability information updated.
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.
CVSS metrics
2 scores · 1 source · 2 versionsEPSS trend
Probability
1.32%
Chance of exploitation in the next 30 days
Percentile
70%
Versus all other CVEs
30-day change
0.00 pp
From 1.32% on 19-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Github2 products
- enterprise_server< 2.21.18 | ≥ 2.22.0, < 2.22.10 | ≥ 3.0.0, < 3.0.4
- github enterprise server≥ 3.0, < 3.0.4 | ≥ 2.22, < 2.22.10 | ≥ 2.21, < 2.21.18
1 vendor · 2 products
References
3 links- docs.github.com/en/enterprise-server%403.0/admin/release-notesX Refsource MISC
- docs.github.com/en/enterprise-server%402.22/admin/release-notesX Refsource MISC
- docs.github.com/en/enterprise-server%402.21/admin/release-notesX Refsource MISC