Read the docs
TI-2021-05725 Aliases CVE-2021-22864GHSA-mj25-3c4g-wx5r

Unsafe configuration options in GitHub Pages leading to remote code execution on GitHub Enterprise Server

Priority MEDIUM 43CWE-77Published · Updated

Key facts

Attack vector
Network
Privileges required
Low
User interaction
None
Attack complexity
Low
Impact type
Code execution
Confidentiality · integrity · availability
High · High · High
Fix status
Fixed

Attack profile from CVSS 3.1 · NVD. Fix status from CNA. Impact type from CWE-77.

Summary

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.

Why it matters now

EPSS 0.02553 85th percentileScored 2026-11-07
Fix Fixed GitHub Enterprise Server (GitHub): 2.21.17, 2.22.9, 3.0.3

SSVC decision points

Not available: CISA has not published SSVC decision points for this record.

Affected products

VendorProductAffected versionsFixed inStatusSource
GitHubGitHub Enterprise Server2.21 to before 2.21.17; 2.22 to before 2.22.9; 3.0 to before 3.0.32.21.17, 2.22.9, 3.0.3Patch availableCNA
  • GitHub Enterprise Server VendorGitHub Affected 2.21 to before 2.21.17; 2.22 to before 2.22.9; 3.0 to before 3.0.3 Fixed in 2.21.17, 2.22.9, 3.0.3 Patch available CNA

CPE configurations NVD · 1

CPEVersionsRoleVendor
cpe:2.3:a:github:enterprise_server:*:*:*:*:*:*:*:*2.21.0 to before 2.21.17; 2.22.0 to before 2.22.9; 3.0.0 to before 3.0.3VulnerableGitHub
  • cpe:2.3:a:github:enterprise_server:*:*:*:*:*:*:*:* Versions 2.21.0 to before 2.21.17; 2.22.0 to before 2.22.9; 3.0.0 to before 3.0.3 Vulnerable ·GitHub

Remediation

  • Fix · CNA GitHub Enterprise Server (GitHub) Fixed in 2.21.17, 2.22.9, 3.0.3

Timeline

  1. 2026-10-02 Threatist record created from CVE-2021-22864
  2. 2026-10-03 Alias added: GHSA-mj25-3c4g-wx5r

References

  • TI-2024-04632 An authentication bypass vulnerability was present in the GitHub Enterprise Server (GHES)… CVSS 4.0CRITICAL 10.0
  • TI-2024-00181 Unsafe Reflection in Github Enterprise Server leading to Command Injection CVSS 3.1CRITICAL 9.8
  • TI-2024-00466 Privilege Escalation by Code Injection in the Management Console in GitHub Enterprise Server CVSS 3.1HIGH 8.8
  • TI-2026-03340 Remote code execution via git push option injection in GitHub Enterprise Server CVSS 4.0HIGH 8.7
  • TI-2024-08804 Improper signature verification in GitHub Enterprise Server CVSS 4.0CRITICAL 9.5
  • TI-2026-08177 Server-side request forgery in GitHub Enterprise Server CVSS 4.0CRITICAL 9.2
See all 125 →

Sources