CVE-2021-22867
mediumpriority · track · 26EPSS 0.012 · 67 %ileEUUSEPSS · scored 2026-10-27
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.
cvss
Technical severity, 0–10. One row per scoring source.
base score 0–10 · higher = more severe · hover a vector to decode
weaknesses
The CWE weakness classes this flaw belongs to.
affected products (6)
Products and version ranges known to be affected.
also known as (3)
Other names and identifiers for this entity.
sources
Which sources assert this record, and when.
references (11)
External citations — patches, advisories, analysis.
- https://docs.github.com/en/enterprise-server@2.22/admin/release-notes#2.22.17cnnvd
- https://docs.github.com/en/enterprise-server@3.0/admin/release-notes#3.0.11cnnvd
- https://docs.github.com/en/enterprise-server@3.1Patchcnnvd
- https://docs.github.com/en/enterprise-server@3.1/admin/release-notes#3.1.3cnnvd
- https://nvd.nist.gov/vuln/detail/CVE-2021-22867cnnvd
- https://docs.github.com/en/enterprise-server%402.22/admin/release-notes#2.22.17enisa_euvd
- https://docs.github.com/en/enterprise-server%403.0/admin/release-notes#3.0.11enisa_euvd
- https://docs.github.com/en/enterprise-server%403.1/admin/release-notes#3.1.3enisa_euvd
Attackers weaponise vulnerabilities like this against internet-exposed services. See what is exposed on your perimeter with a free passive scan.
Free scan