Medium severity · published Nov 10, 2021
CVE-2021-22870
A path traversal vulnerability was identified in GitHub Pages builds on GitHub Enterprise Server that could allow an attacker to read system files
6.5
CVSS
1.1%
EPSS
No
On KEV
Description
A path traversal vulnerability was identified in GitHub Pages builds on GitHub Enterprise Server that could allow an attacker to read system files. 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.3 and was fixed in versions 3.0.19, 3.1.11, and 3.2.3. This vulnerability was reported via the GitHub Bug Bounty program.
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
Attack vector
Network
Complexity
Low
Privileges
Low
User interaction
None
Confidentiality
High
Integrity
None
Availability
None
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)1.1% · higher than 66% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
ES
Enterprise Server · Github
before 3.0.19; 3.1.0 before 3.1.11; 3.2.0 before 3.2.3 · source: NVD
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2021-22870
CVE.org
https://www.cve.org/CVERecord?id=CVE-2021-22870
docs.github.com
https://docs.github.com/en/enterprise-server%403.0/admin/release-notes#3.0.19
docs.github.com
https://docs.github.com/en/enterprise-server%403.1/admin/release-notes#3.1.11
docs.github.com
https://docs.github.com/en/enterprise-server%403.2/admin/release-notes#3.2.3
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
Unsafe Reflection in Github Enterprise Server leading to Command Injection
