CVEvulnerability
CVE-2021-22864
8.8 HIGH
Official page ↗
- Status
- Modified
- Published
- 2021-03-23
- Last modified
- 2026-06-17
- Assigner
- [email protected]
- CVSS 3.1 ([email protected])
- 8.8 HIGH — CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- CVSS 2.0 ([email protected])
- 6.5 MEDIUM — AV:N/AC:L/Au:S/C:P/I:P/A:P
- Weaknesses
- CWE-77
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 configurations
• github enterprise server (>= 2.21.0 < 2.21.17)
• github enterprise server (>= 2.22.0 < 2.22.9)
• github enterprise server (>= 3.0.0 < 3.0.3)
Related
Weakness · CWE (1)
- CWE-77 Improper Neutralization of Special Elements used in a Command weakness
References
- https://docs.github.com/en/enterprise-server%402.21/admin/release-notes#2.21.17 docs.github.com
- https://docs.github.com/en/enterprise-server%402.22/admin/release-notes#2.22.9 docs.github.com
- https://docs.github.com/en/enterprise-server%403.0/admin/release-notes#3.0.3 docs.github.com
- https://docs.github.com/en/enterprise-server%402.21/admin/release-notes#2.21.17 docs.github.com
- https://docs.github.com/en/enterprise-server%402.22/admin/release-notes#2.22.9 docs.github.com
- https://docs.github.com/en/enterprise-server%403.0/admin/release-notes#3.0.3 docs.github.com