Medium severity · published Apr 2, 2021
CVE-2021-22865
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…
6.5
CVSS
1.4%
EPSS
No
On KEV
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 vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N
Attack vector
Network
Complexity
Low
Privileges
None
User interaction
Required
Confidentiality
High
Integrity
None
Availability
None
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)1.4% · higher than 72% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
ES
Enterprise Server · Github
before 2.21.18; 2.22.0 before 2.22.10; 3.0.0 before 3.0.4 · source: NVD
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2021-22865
CVE.org
https://www.cve.org/CVERecord?id=CVE-2021-22865
docs.github.com
https://docs.github.com/en/enterprise-server%402.21/admin/release-notes#2.21.18
docs.github.com
https://docs.github.com/en/enterprise-server%402.22/admin/release-notes#2.22.10
docs.github.com
https://docs.github.com/en/enterprise-server%403.0/admin/release-notes#3.0.4
More from Enterprise Server
9.8
CVE-2026-77987
GitHub Enterprise Server notebook viewer vulnerable to Server-side request forgery
9.8
CVE-2026-8034
Server-side request forgery vulnerability in GitHub Enterprise Server notebook viewer via URL parser confusion
9.8
CVE-2024-6800
An XML signature wrapping vulnerability was present in GitHub Enterprise Server (GHES) when using SAML authentication with specific identity providers utilizing publicly exposed…
9.8
CVE-2024-4985
An authentication bypass vulnerability was present in the GitHub Enterprise Server (GHES) when utilizing SAML single sign-on authentication with the optional encrypted assertions…
9.8
CVE-2024-0200
Unsafe Reflection in Github Enterprise Server leading to Command Injection
