Medium severity · published Sep 24, 2021
CVE-2021-22868
A path traversal vulnerability was identified in GitHub Enterprise Server that could be exploited when building a GitHub Pages site
4.3
CVSS
0.9%
EPSS
No
On KEV
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.8 and was fixed in 3.1.8, 3.0.16, and 2.22.22. This vulnerability was reported via the GitHub Bug Bounty program. This is the result of an incomplete fix for CVE-2021-22867.
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N
Attack vector
Network
Complexity
Low
Privileges
Low
User interaction
None
Confidentiality
Low
Integrity
None
Availability
None
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)0.9% · higher than 60% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
ES
Enterprise Server · Github
before 2.22.22; 3.0.0 before 3.0.16; 3.1.0 before 3.1.8 · source: NVD
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2021-22868
CVE.org
https://www.cve.org/CVERecord?id=CVE-2021-22868
docs.github.com
https://docs.github.com/en/enterprise-server%402.22/admin/release-notes#2.22.22
docs.github.com
https://docs.github.com/en/enterprise-server%403.0/admin/release-notes#3.0.16
docs.github.com
https://docs.github.com/en/enterprise-server%403.1/admin/release-notes#3.1.8
More from Enterprise Server
9.8
CVE-2026-77987
GitHub Enterprise Server notebook viewer vulnerable to Server-side request forgery
9.8
CVE-2026-8034
Server-side request forgery vulnerability in GitHub Enterprise Server notebook viewer via URL parser confusion
9.8
CVE-2024-6800
An XML signature wrapping vulnerability was present in GitHub Enterprise Server (GHES) when using SAML authentication with specific identity providers utilizing publicly exposed…
9.8
CVE-2024-4985
An authentication bypass vulnerability was present in the GitHub Enterprise Server (GHES) when utilizing SAML single sign-on authentication with the optional encrypted assertions…
9.8
CVE-2024-0200
An unsafe reflection vulnerability was identified in GitHub Enterprise Server that could lead to reflection injection
