CVE-2021-22861
CVE-2021-22861 — Improper access control in GitHub Enterprise Server leading to unauthorized write access to forkable repositories
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 Updated Sources: cvelistV5, GitHub_P
Triage
Is it exploited, how likely is exploitation, what does it touch, and how severe do the scoring sources call it.
Exploitation
Unreported
no source claims exploitation
EPSS
<1%
chance of exploitation in 30 days
CVSS base
Unscored
no source published a base score
Affected scope
The catalog records vendors and products as separate lists, not pairs, so which product belongs to which vendor is not something this page can say.
Vendors (1)
Products (1)
Weakness & attack patterns
- CWE-285
Attack patterns reported against this CVE. The ATT&CK techniques below are inferred from its weakness class.
- T1574.010Hijack Execution Flow: ServicesFile Permissions Weakness
- T1083File and Directory Discovery
- T1562.003Impair Defenses: Impair Command History Logging
References
4 on the record
- docs.github.com/en/enterprise-server%402.20/admin/release-notes#2.20.24
x_refsource_MISC
- docs.github.com/en/enterprise-server%402.21/admin/release-notes#2.21.15
x_refsource_MISC
- docs.github.com/en/enterprise-server%402.22/admin/release-notes#2.22.7
x_refsource_MISC
- docs.github.com/en/enterprise-server%403.0/admin/release-notes#3.0.1
x_refsource_MISC
Related CVEs
Same product first, then the same weakness or threat actor.
- CVE-2021-28799 QNAP NAS Improper Authorization VulnerabilityCVSS 9.8 · CISA KEV
- CVE-2026-58704 Google Pixel Improper Authorization VulnerabilityCVSS 8.0 · CISA KEV
- CVE-2018-13382 Fortinet FortiOS and FortiProxy Improper AuthorizationCVSS 7.5 · CISA KEV
- CVE-2026-137043 TOTOLINK N350RT cstecgi.cgi setLanguageCfg authorizationCVSS 10.0
- CVE-2026-16346 DataStage on Cloud Pak for Data has several vulnerabilitiesCVSS 9.9
- CVE-2026-126261 A improper authorization vulnerability in Fortinet FortiManager 8.0.0, FortiManager 7.6.0 through 7.6.7, FortiManager 7.4.0 through 7.4.5…CVSS 9.8
Elsewhere on this site
Not in any source we poll
Listed rather than left blank: an empty field and an unmeasured one look identical on screen, and only one is a reason to look elsewhere.
- No confirmed IOCs, IP addresses, domains, file hashes, or malware artifacts supplied.
- No organization-specific asset inventory, compensating-control status, or patch deployment evidence supplied.
- No exploit packet captures, log samples, or incident case IDs supplied.