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.
Published 2021-03-03 04:15:13
Updated 2022-10-25 13:09:28
View at NVD,   CVE.org
Vulnerability category: BypassGain privilege

Products affected by CVE-2021-22861

  • Github » Github » Enterprise Edition
    Versions from including (>=) 2.21.0 and before (<) 2.21.15
    cpe:2.3:a:github:github:*:*:*:*:enterprise:*:*:*
  • Github » Github » Enterprise Edition
    Versions from including (>=) 2.22.0 and before (<) 2.22.7
    cpe:2.3:a:github:github:*:*:*:*:enterprise:*:*:*
  • Github » Github
    Versions from including (>=) 3.0.0 and before (<) 3.0.1
    cpe:2.3:a:github:github:*:*:*:*:*:*:*:*
  • Github » Github » Enterprise Edition
    Versions from including (>=) 2.4.21 and before (<) 2.20.24
    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

Jump to
This web site uses cookies for managing your session, storing preferences, website analytics and additional purposes described in our privacy policy.
By using this web site you are agreeing to CVEdetails.com terms of use!