# CVE-2021-22870: Path traversal in GitHub Enterprise Server hosted Pages leads to unauthorized file read access

- Severity: Medium 6.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/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): 1.10%, higher than 66% of CVEs (2026-12-01)
- Published: 2021-11-10T01:55:11.000Z
- Modified: 2026-06-17T03:37:55.003Z
- Weaknesses: CWE-22, CWE-23
- Assigned by: GitHub_P

## 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.

(As written by CVE List.)

## Affected

- GitHub GitHub Enterprise Server: from 3.0 before 3.0.19; from 3.1 before 3.1.11; from 3.2 before 3.2.3
- github enterprise_server: before 3.0.19; from 3.1.0 before 3.1.11; from 3.2.0 before 3.2.3

## Every score

- NVD: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/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.19>
- <https://docs.github.com/en/enterprise-server%403.1/admin/release-notes#3.1.11>
- <https://docs.github.com/en/enterprise-server%403.2/admin/release-notes#3.2.3>

## Sources

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

---

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