CVE-2021-22865
Improper access control in GitHub Enterprise Server leading to unauthorized read access to private repository metadata
Severity Score
Exploit Likelihood
Affected Versions
Public Exploits
0Exploited in Wild
-Decision
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.
CVSS Scores
SSVC
- Decision:-
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
References (3)
URL | Tag | Source |
---|---|---|
https://docs.github.com/en/enterprise-server%402.21/admin/release-notes#2.21.18 | X_refsource_misc | |
https://docs.github.com/en/enterprise-server%402.22/admin/release-notes#2.22.10 | X_refsource_misc | |
https://docs.github.com/en/enterprise-server%403.0/admin/release-notes#3.0.4 | X_refsource_misc |
URL | Date | SRC |
---|
URL | Date | SRC |
---|
URL | Date | SRC |
---|
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
|