# CVE-2021-22868: Unsafe configuration options in GitHub Pages leading to path traversal on GitHub Enterprise Server

- Severity: Medium 4.3 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.93%, higher than 61% of CVEs (2026-12-01)
- Published: 2021-09-24T17:50:16.000Z
- Modified: 2026-06-17T03:37:54.773Z
- Weaknesses: CWE-22, CWE-77
- Assigned by: 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.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.

(As written by CVE List.)

## Affected

- GitHub GitHub Enterprise Server: from 2.22 before 2.22.22; from 3.0 before 3.0.16; from 3.1 before 3.1.8
- github enterprise_server: before 2.22.22; from 3.0.0 before 3.0.16; from 3.1.0 before 3.1.8

## Every score

- NVD: CVSS:3.1 4.3 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N`
- NVD: CVSS:2.0 4.0 Medium `AV:N/AC:L/Au:S/C:P/I:N/A:N`

## References

- <https://docs.github.com/en/enterprise-server%403.0/admin/release-notes#3.0.16>
- <https://docs.github.com/en/enterprise-server%403.1/admin/release-notes#3.1.8>
- <https://docs.github.com/en/enterprise-server%402.22/admin/release-notes#2.22.22>

## Sources

- CVE List: [CVE-2021-22868](https://www.cve.org/CVERecord?id=CVE-2021-22868), CVE Terms of Use, modified 2024-08-03
- NVD: [CVE-2021-22868](https://nvd.nist.gov/vuln/detail/CVE-2021-22868), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-22868 · Whole record: https://cve.day/CVE-2021-22868.json · Rebuilt by cve.day 2026-11-25T22:58:04.151Z
