8.8high
Unsafe configuration options in GitHub Pages leading to remote code execution on GitHub Enterprise Server
- Severity
- 8.8high CVSS:3.1 by NVD
- Exploit likelihood
- 2.55% (higher than 85% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_P
Description
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| GitHub GitHub Enterprise Server | from 2.21 before 2.21.17, from 2.22 before 2.22.9, from 3.0 before 3.0.3 | CVE List |
| github enterprise_server | from 2.21.0 before 2.21.17, from 2.22.0 before 2.22.9, from 3.0.0 before 3.0.3 | NVD |
All scores
| NVD | 8.8high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| NVD | 6.5medium CVSS:2.0 | AV:N/AC:L/Au:S/C:P/I:P/A:P |
Classification
What each source says
CVE List
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.
NVD (es)
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
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2021-22864 changed 2024-08-03 | CVE Terms of Use |
| NVD | CVE-2021-22864 changed 2026-06-17 | Public domain |