CVE-2021-22865
JSON

6.5medium

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

Severity
6.5medium CVSS:3.1 by NVD
Exploit likelihood
1.36% (higher than 72% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
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.

Affected

Product or packageVersionsReported by
GitHub GitHub Enterprise Serverfrom 3.0 before 3.0.4, from 2.22 before 2.22.10, from 2.21 before 2.21.18CVE List
github enterprise_serverbefore 2.21.18, from 2.22.0 before 2.22.10, from 3.0.0 before 3.0.4NVD

All scores

NVD6.5medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N
NVD4.3medium CVSS:2.0AV:N/AC:M/Au:N/C:P/I:N/A:N

Classification

What each source says

CVE List

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.

NVD (es)

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.

References

Sources

SourceRecordLicence
CVE ListCVE-2021-22865 changed 2024-08-03CVE Terms of Use
NVDCVE-2021-22865 changed 2026-06-17Public domain