# CVE-2021-22863: Improper access control in GitHub Enterprise Server leading to unauthorized changes to maintainer permissions on pull requests

- Severity: High 8.1 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/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.01%, higher than 64% of CVEs (2026-12-01)
- Published: 2021-03-03T03:25:23.000Z
- Modified: 2026-06-17T03:37:54.170Z
- Weaknesses: CWE-285
- Assigned by: GitHub_P

## Description

An improper access control vulnerability was identified in the GitHub Enterprise Server GraphQL API that allowed authenticated users of the instance to modify the maintainer collaboration permission of a pull request without proper authorization. By exploiting this vulnerability, an attacker would be able to gain access to head branches of pull requests opened on repositories of which they are a maintainer. Forking is disabled by default for organization owned private repositories and would prevent this vulnerability. Additionally, branch protections such as required pull request reviews or status checks would prevent unauthorized commits from being merged without further review or validation. This vulnerability affected all versions of GitHub Enterprise Server since 2.12.22 and was fixed in versions 2.20.24, 2.21.15, 2.22.7 and 3.0.1. This vulnerability was reported via the GitHub Bug Bounty program.

(As written by CVE List.)

## Affected

- GitHub GitHub Enterprise Server: from 2.20 before 2.20.24; from 2.21 before 2.21.15; from 2.22 before 2.22.7; from 3.0 before 3.0.1
- github github: from 2.12.22 before 2.20.24; from 2.21.0 before 2.21.15; from 2.22.0 before 2.22.7; from 3.0.0 before 3.0.1

## Every score

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

## References

- <https://docs.github.com/en/enterprise-server%402.20/admin/release-notes#2.20.24>
- <https://docs.github.com/en/enterprise-server%402.21/admin/release-notes#2.21.15>
- <https://docs.github.com/en/enterprise-server%402.22/admin/release-notes#2.22.7>
- <https://docs.github.com/en/enterprise-server%403.0/admin/release-notes#3.0.1>

## Sources

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

---

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