CVE-2021-22861

MediumCVSS 6.5/10Last modified Jun 17, 2026

Description

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.

Metrics

CVSS 3.1 6.5/10CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N

Weakness enumeration

Affected software

No affected versions have been published.

Timeline

Published
Mar 3, 2021
Last modified
Jun 17, 2026
NVD status
Modified

Related CVEs from 2021

CVE-2021-228626.5An improper access control vulnerability was identified in GitHub Enterprise Server that allowed an authenticated user with the ability to fCVE-2021-228638.1An improper access control vulnerability was identified in the GitHub Enterprise Server GraphQL API that allowed authenticated users of the CVE-2021-228648.8A remote code execution vulnerability was identified in GitHub Enterprise Server that could be exploited when building a GitHub Pages site. CVE-2021-228656.5An improper access control vulnerability was identified in GitHub Enterprise Server that allowed access tokens generated from a GitHub App'sCVE-2021-228668.8A UI misrepresentation vulnerability was identified in GitHub Enterprise Server that allowed more permissions to be granted during a GitHub CVE-2021-228676.5A path traversal vulnerability was identified in GitHub Enterprise Server that could be exploited when building a GitHub Pages site. User-coCVE-2021-228684.3A path traversal vulnerability was identified in GitHub Enterprise Server that could be exploited when building a GitHub Pages site. User-coCVE-2021-228699.8An improper access control vulnerability in GitHub Enterprise Server allowed a workflow job to execute in a self-hosted runner group it shouCVE-2021-22877.1Vulnerability in the Oracle VM VirtualBox product of Oracle Virtualization (component: Core). The supported version that is affected is PrioCVE-2021-228706.5A path traversal vulnerability was identified in GitHub Pages builds on GitHub Enterprise Server that could allow an attacker to read systemCVE-2021-228714.8Revive Adserver before 5.1.0 permits any user with a manager account to store possibly malicious content in the URL website property, which CVE-2021-228726.1Revive Adserver before 5.1.0 is vulnerable to a reflected cross-site scripting (XSS) vulnerability via the publicly accessible afr.php deliv
CVE-2021-22861: Medium severity, CVSS 6.5 | Vulnix