CVE-2021-22861: github Improper Authorization
Vulnerability summary
CVE-2021-22861 is a medium (CVSS 6.5) Improper Authorization vulnerability in github. EPSS estimates a 0.95% chance of exploitation in the next 30 days, higher than 60.6% of scored vulnerabilities.
Timeline
- 03-03-2021PublishedVulnerability first disclosed.
- 03-08-2024Last modifiedVulnerability information updated.
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.
CVSS metrics
2 scores · 1 source · 2 versionsEPSS trend
Probability
0.95%
Chance of exploitation in the next 30 days
Percentile
61%
Versus all other CVEs
30-day change
+0.03 pp
From 0.92% on 19-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Github2 products
- github≥ 2.4.21, < 2.20.24 | ≥ 2.21.0, < 2.21.15 | ≥ 2.22.0, < 2.22.7 | ≥ 3.0.0, < 3.0.1
- github enterprise server≥ 2.20, < 2.20.24 | ≥ 2.21, < 2.21.15 | ≥ 2.22, < 2.22.7 | ≥ 3.0, < 3.0.1
1 vendor · 2 products
References
4 links- docs.github.com/en/enterprise-server%402.20/admin/release-notesX Refsource MISC
- docs.github.com/en/enterprise-server%402.21/admin/release-notesX Refsource MISC
- docs.github.com/en/enterprise-server%402.22/admin/release-notesX Refsource MISC
- docs.github.com/en/enterprise-server%403.0/admin/release-notesX Refsource MISC