CVE-2021-22867
publishedUnsafe configuration options in GitHub Pages leading to path traversal on GitHub Enterprise Server
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| GitHub | — | GitHub Enterprise Server2.22 to < 2.22.17 · 3.0 to < 3.0.11 · 3.1 to < 3.1.3 | Affected | Not stated | GitHub_P |
Description
A path traversal 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 read files 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.1.3 and was fixed in 3.1.3, 3.0.11, and 2.22.17. This vulnerability was reported via the GitHub Bug Bounty program.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
No normalized assessments.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| GitHub | GitHub Enterprise Server | 2.22 to < 2.22.17 (affected · custom)3.0 to < 3.0.11 (affected · custom)3.1 to < 3.1.3 (affected · custom) | GitHub_P · cna |
Weaknesses
1- CWE-77 CWE-77: Command Injection - Generic
References
3Provider assertions
2GitHub_P · cna
Unsafe configuration options in GitHub Pages leading to path traversal on GitHub Enterprise Server
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 5eca4533d729b3e1e8fc7ef582a8a58cf4e2f815052f2bce4372fca535cbb3c8
- Ingested
- 23 Sep 2026, 07:52:45 UTC
- Source record
- Official CVE record