What’s Vulnerable › Vulnerabilities
CVE-2022-46256: Path traversal in GitHub Enterprise Server leading to remote code execution in GitHub Pages
- Severity: high (CVSS 8.8 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 2.1% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2022-12-14 · updated 2026-06-17
- Weakness: CWE-22
Description
A path traversal vulnerability was identified in GitHub Enterprise Server that allowed remote code execution when building a GitHub Pages site. To exploit this vulnerability, an attacker would need permission to create and build a GitHub Pages site on the instance. This vulnerability was fixed in versions 3.3.17, 3.4.12, 3.5.9, 3.6.5 and 3.7.2. This vulnerability was reported via the GitHub Bug Bounty program.
Affected products
- GitHub Enterprise Server: before 3.3.17; from 3.4.0 before 3.4.12; from 3.5.0 before 3.5.9; from 3.6.0 before 3.6.5; from 3.7.0 before 3.7.2 — fixed in 3.3.17, 3.4.12, 3.5.9, 3.6.5, 3.7.2
How to fix
Upgrade to a fixed version: GitHub Enterprise Server 3.3.17, 3.4.12, 3.5.9, 3.6.5. Check the vendor advisory for mitigations.
References
- https://docs.github.com/en/enterprise-server%403.3/admin/release-notes#3.3.17
- https://docs.github.com/en/enterprise-server%403.4/admin/release-notes#3.4.12
- https://docs.github.com/en/enterprise-server%403.5/admin/release-notes#3.5.9
- https://docs.github.com/en/enterprise-server%403.6/admin/release-notes#3.6.5
- https://docs.github.com/en/enterprise-server%403.7/admin/release-notes#3.7.2
- https://docs.github.com/en/enterprise-server%403.3/admin/release-notes#3.3.17
- https://docs.github.com/en/enterprise-server%403.4/admin/release-notes#3.4.12
- https://docs.github.com/en/enterprise-server%403.5/admin/release-notes#3.5.9
- https://docs.github.com/en/enterprise-server%403.6/admin/release-notes#3.6.5
- https://docs.github.com/en/enterprise-server%403.7/admin/release-notes#3.7.2
Get alerted when CVE-2022-46256 or the next vulnerability affects your stack