// For flags

CVE-2021-22865

Improper access control in GitHub Enterprise Server leading to unauthorized read access to private repository metadata

Severity Score

6.5
*CVSS v3.1

Exploit Likelihood

*EPSS

Affected Versions

*CPE

Public Exploits

0
*Multiple Sources

Exploited in Wild

-
*KEV

Decision

-
*SSVC
Descriptions

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.

Se identificó una vulnerabilidad de control de acceso inapropiado en GitHub Enterprise Server que permitía que los tokens de acceso generados a partir del flujo de autenticación web de una aplicación GitHub leyeran metadatos del repositorio privado por medio de la API REST sin haber recibido los permisos apropiados. Para explotar esta vulnerabilidad, un atacante necesitaría crear una aplicación GitHub en la instancia y hacer que un usuario autorizara la aplicación mediante el flujo de autenticación web. Los metadatos del repositorio privado devueltos se limitarían a los repositorios propiedad del usuario que identifica el token. Esta vulnerabilidad afectó a todas las versiones de GitHub Enterprise Server anteriores a la 3.0.4 y fue corregido en versiones 3.0.4, 2.22.10, 2.21.18. Esta vulnerabilidad se reportó por medio del programa GitHub Bug Bounty.

*Credits: djcruz93
CVSS Scores
Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Unchanged
Confidentiality
High
Integrity
None
Availability
None
Attack Vector
Network
Attack Complexity
Medium
Authentication
None
Confidentiality
Partial
Integrity
None
Availability
None
* Common Vulnerability Scoring System
SSVC
  • Decision:-
Exploitation
-
Automatable
-
Tech. Impact
-
* Organization's Worst-case Scenario
Timeline
  • 2021-01-06 CVE Reserved
  • 2021-04-02 CVE Published
  • 2023-12-17 EPSS Updated
  • 2024-08-03 CVE Updated
  • ---------- Exploited in Wild
  • ---------- KEV Due Date
  • ---------- First Exploit
CWE
  • CWE-285: Improper Authorization
CAPEC
Affected Vendors, Products, and Versions
Vendor Product Version Other Status
Vendor Product Version Other Status <-- --> Vendor Product Version Other Status
Github
Search vendor "Github"
Enterprise Server
Search vendor "Github" for product "Enterprise Server"
< 2.21.18
Search vendor "Github" for product "Enterprise Server" and version " < 2.21.18"
-
Affected
Github
Search vendor "Github"
Enterprise Server
Search vendor "Github" for product "Enterprise Server"
>= 2.22.0 < 2.22.10
Search vendor "Github" for product "Enterprise Server" and version " >= 2.22.0 < 2.22.10"
-
Affected
Github
Search vendor "Github"
Enterprise Server
Search vendor "Github" for product "Enterprise Server"
>= 3.0.0 < 3.0.4
Search vendor "Github" for product "Enterprise Server" and version " >= 3.0.0 < 3.0.4"
-
Affected