CVE-2021-22861
published 2021-03-03CVE-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…
PriorityP339medium6.5CVSS 3.1
AVNACLPRLUINSUCNIHAN
EPSS
0.92%
55.8th percentile
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.
Affected
8 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| github | github | >= 2.21.0 < 2.21.15 | 2.21.15 |
| github | github | >= 2.22.0 < 2.22.7 | 2.22.7 |
| github | github | >= 2.4.21 < 2.20.24 | 2.20.24 |
| github | github | >= 3.0.0 < 3.0.1 | 3.0.1 |
| github | github_enterprise_server | >= 2.20 < 2.20.24 | 2.20.24 |
| github | github_enterprise_server | >= 2.21 < 2.21.15 | 2.21.15 |
| github | github_enterprise_server | >= 2.22 < 2.22.7 | 2.22.7 |
| github | github_enterprise_server | >= 3.0 < 3.0.1 | 3.0.1 |
CVSS provenance
nvdv3.16.5MEDIUMCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N
nvdv2.04.0MEDIUMAV:N/AC:L/Au:S/C:N/I:P/A:N
Stop checking back — get the weekly exploitation signal.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
No detection rules found.
No public exploits indexed.
https://docs.github.com/en/enterprise-server%402.20/admin/release-notes#2.20.24https://docs.github.com/en/enterprise-server%402.21/admin/release-notes#2.21.15https://docs.github.com/en/enterprise-server%402.22/admin/release-notes#2.22.7https://docs.github.com/en/enterprise-server%403.0/admin/release-notes#3.0.1https://docs.github.com/en/enterprise-server%402.20/admin/release-notes#2.20.24https://docs.github.com/en/enterprise-server%402.21/admin/release-notes#2.21.15https://docs.github.com/en/enterprise-server%402.22/admin/release-notes#2.22.7https://docs.github.com/en/enterprise-server%403.0/admin/release-notes#3.0.1
2021-03-03
Published