# CVE-2021-41599: Improper control flow in GitHub Enterprise Server hosted Pages leads to remote code execution

- Severity: High 8.8 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- 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): 2.22%, higher than 83% of CVEs (2026-12-02)
- Published: 2022-02-17T23:35:12.000Z
- Modified: 2026-06-17T04:08:42.977Z
- Weaknesses: CWE-77
- Assigned by: GitHub_P

## Description

A remote code execution vulnerability was identified in GitHub Enterprise Server that could be exploited when building a GitHub Pages site. 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.21, 3.1.13, 3.2.5. 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.21; from 3.1 before 3.1.13; from 3.2 before 3.2.5
- github enterprise_server: from 3.0.0 before 3.0.21; from 3.1.0 before 3.1.13; from 3.2.0 before 3.2.5

## Every score

- NVD: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:2.0 6.5 Medium `AV:N/AC:L/Au:S/C:P/I:P/A:P`

## References

- <https://docs.github.com/en/enterprise-server%403.0/admin/release-notes#3.0.21>
- <https://docs.github.com/en/enterprise-server%403.1/admin/release-notes#3.1.13>
- <https://docs.github.com/en/enterprise-server%403.2/admin/release-notes#3.2.5>

## Sources

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

---

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