Vulnerability Details : CVE-2021-22861
An improper access control vulnerability was identified in GitHub Enterprise Server that allowed authenticated users of the instance to gain write access to unauthorized repositories via specifically crafted pull requests and REST API requests. An attacker would need to be able to fork the targeted repository, a setting that is disabled by default for organization owned private repositories. 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.4.21 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.
Vulnerability category: BypassGain privilege
Products affected by CVE-2021-22861
- cpe:2.3:a:github:github:*:*:*:*:enterprise:*:*:*
- cpe:2.3:a:github:github:*:*:*:*:enterprise:*:*:*
- cpe:2.3:a:github:github:*:*:*:*:*:*:*:*
- cpe:2.3:a:github:github:*:*:*:*:enterprise:*:*:*
Exploit prediction scoring system (EPSS) score for CVE-2021-22861
0.15%
Probability of exploitation activity in the next 30 days
EPSS Score History
~ 51 %
Percentile, the proportion of vulnerabilities that are scored at or less
CVSS scores for CVE-2021-22861
Base Score | Base Severity | CVSS Vector | Exploitability Score | Impact Score | Score Source | First Seen |
---|---|---|---|---|---|---|
4.0
|
MEDIUM | AV:N/AC:L/Au:S/C:N/I:P/A:N |
8.0
|
2.9
|
NIST | |
6.5
|
MEDIUM | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N |
2.8
|
3.6
|
NIST |
CWE ids for CVE-2021-22861
-
The product does not perform or incorrectly performs an authorization check when an actor attempts to access a resource or perform an action.Assigned by: product-cna@github.com (Secondary)
References for CVE-2021-22861
-
https://docs.github.com/en/enterprise-server@2.22/admin/release-notes#2.22.7
Release notes - GitHub DocsRelease Notes;Vendor Advisory
-
https://docs.github.com/en/enterprise-server@3.0/admin/release-notes#3.0.1
Release notes - GitHub DocsRelease Notes;Vendor Advisory
-
https://docs.github.com/en/enterprise-server@2.21/admin/release-notes#2.21.15
Release notes - GitHub DocsRelease Notes;Vendor Advisory
-
https://docs.github.com/en/enterprise-server@2.20/admin/release-notes#2.20.24
Release notes - GitHub DocsRelease Notes;Vendor Advisory
Jump to