CVE-2021-22870: github enterprise_server Relative Path Traversal
Vulnerability summary
CVE-2021-22870 is a medium (CVSS 6.5) Relative Path Traversal vulnerability in github enterprise_server. EPSS estimates a 1.13% chance of exploitation in the next 30 days, higher than 65.9% of scored vulnerabilities.
Timeline
- 10-11-2021PublishedVulnerability first disclosed.
- 03-08-2024Last modifiedVulnerability information updated.
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 metrics
2 scores · 1 source · 2 versionsEPSS trend
Probability
1.13%
Chance of exploitation in the next 30 days
Percentile
66%
Versus all other CVEs
30-day change
0.00 pp
From 1.13% on 19-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root cause- CWE-23Relative Path TraversalThe product uses external input to construct a pathname that should be within a restricted directory, but it does not properly neutralize sequences such as ".." that can resolve to a location that is outside of that directory.
- CWE-22Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')The product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory.
Affected systems
Github2 products
- enterprise_server< 3.0.19 | ≥ 3.1.0, < 3.1.11 | ≥ 3.2.0, < 3.2.3
- github enterprise server≥ 3.0, < 3.0.19 | ≥ 3.1, < 3.1.11 | ≥ 3.2, < 3.2.3
1 vendor · 2 products
References
3 links- docs.github.com/en/enterprise-server%403.0/admin/release-notesX Refsource MISC
- docs.github.com/en/enterprise-server%403.1/admin/release-notesX Refsource MISC
- docs.github.com/en/enterprise-server%403.2/admin/release-notesX Refsource MISC