PT-2021-15236 · Github · Github Enterprise Server
Teddy Katz
·
Published
2021-03-03
·
Updated
2022-10-25
·
CVE-2021-22863
CVSS v3.1
8.1
High
| Vector | AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N |
Name of the Vulnerable Software and Affected Versions
GitHub Enterprise Server versions 2.12.22 through 2.20.23
GitHub Enterprise Server versions 2.21.0 through 2.21.14
GitHub Enterprise Server versions 2.22.0 through 2.22.6
GitHub Enterprise Server versions 3.0.0
Description
An improper access control issue was identified in the GitHub Enterprise Server GraphQL API, allowing authenticated users to modify the maintainer collaboration permission of a pull request without proper authorization. This could enable an attacker to gain access to head branches of pull requests opened on repositories of which they are a maintainer. However, forking is disabled by default for organization-owned private repositories, which would prevent this issue. Additionally, branch protections such as required pull request reviews or status checks would prevent unauthorized commits from being merged without further review or validation.
Recommendations
For GitHub Enterprise Server versions 2.12.22 through 2.20.23, update to version 2.20.24 or later.
For GitHub Enterprise Server versions 2.21.0 through 2.21.14, update to version 2.21.15 or later.
For GitHub Enterprise Server versions 2.22.0 through 2.22.6, update to version 2.22.7 or later.
For GitHub Enterprise Server versions 3.0.0, update to version 3.0.1 or later.
Fix
Improper Authorization
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Github Enterprise Server