CVE-2021-22864
Unsafe configuration options in GitHub Pages leading to remote code execution on GitHub Enterprise Server
Severity Score
Exploit Likelihood
Affected Versions
Public Exploits
0Exploited in Wild
-Decision
Descriptions
A remote code execution vulnerability was identified in GitHub Enterprise Server that could be exploited when building a GitHub Pages site. User-controlled configuration options used by GitHub Pages were not sufficiently restricted and made it possible to override environment variables leading to code execution on the GitHub Enterprise Server instance. To exploit this vulnerability, an attacker would need permission to create and build a GitHub Pages site on the GitHub Enterprise Server instance. This vulnerability affected all versions of GitHub Enterprise Server prior to 3.0.3 and was fixed in 3.0.3, 2.22.9, and 2.21.17. This vulnerability was reported via the GitHub Bug Bounty program.
Se identificó una vulnerabilidad de ejecución de código remota en el servidor de GitHub Enterprise que podría explotarse al crear un sitio de páginas de GitHub. Las opciones de configuración controladas por el usuario que usaban las páginas de GitHub no estaban lo suficientemente restringidas y permitían anular las variables de entorno lo que conllevaría a una ejecución de código en la instancia del servidor de GitHub Enterprise. Para explotar esta vulnerabilidad, un atacante necesitaría permiso para crear y construir un sitio de páginas de GitHub en la instancia del servidor de GitHub Enterprise. Esta vulnerabilidad afectó a todas las versiones de GitHub Enterprise Server anteriores a 3.0.3 y se corrigió en versiones 3.0.3, 2.22.9 y 2.21.17. Esta vulnerabilidad se reportó por medio del programa GitHub Bug Bounty
CVSS Scores
SSVC
- Decision:-
Timeline
- 2021-01-06 CVE Reserved
- 2021-03-23 CVE Published
- 2023-12-07 EPSS Updated
- 2024-08-03 CVE Updated
- ---------- Exploited in Wild
- ---------- KEV Due Date
- ---------- First Exploit
CWE
- CWE-77: Improper Neutralization of Special Elements used in a Command ('Command Injection')
CAPEC
References (3)
URL | Tag | Source |
---|---|---|
https://docs.github.com/en/enterprise-server%402.21/admin/release-notes#2.21.17 | X_refsource_misc | |
https://docs.github.com/en/enterprise-server%402.22/admin/release-notes#2.22.9 | X_refsource_misc | |
https://docs.github.com/en/enterprise-server%403.0/admin/release-notes#3.0.3 | 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.0 < 2.21.17 Search vendor "Github" for product "Enterprise Server" and version " >= 2.21.0 < 2.21.17" | - |
Affected
| ||||||
Github Search vendor "Github" | Enterprise Server Search vendor "Github" for product "Enterprise Server" | >= 2.22.0 < 2.22.9 Search vendor "Github" for product "Enterprise Server" and version " >= 2.22.0 < 2.22.9" | - |
Affected
| ||||||
Github Search vendor "Github" | Enterprise Server Search vendor "Github" for product "Enterprise Server" | >= 3.0.0 < 3.0.3 Search vendor "Github" for product "Enterprise Server" and version " >= 3.0.0 < 3.0.3" | - |
Affected
|