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.
Overview
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
- 3/3/2021
- Last modified
- 6/17/2026
- CVE assigner
- Not available
- NVD analysis
- Not available
Exploitation
No CISA KEV flag in the saved record
An absent KEV flag does not establish that exploitation has never occurred. Verify current intelligence before prioritizing work.
EPSS predictions and CISA SSVC assessments are not imported here. Review additional intelligence on Cloudflare
Affected products
Affected-version rules published in the advisory. Conditions and uncertain comparisons require verification.
| Vendor / product | Affected versions | Platform / conditions | Evidence |
|---|---|---|---|
github github | ≥ 2.4.21, < 2.20.24 | Verify advisory The advisory has platform, edition, hardware, or configuration conditions not verified by software inventory. | Source |
github github | ≥ 2.21.0, < 2.21.15 | Verify advisory The advisory has platform, edition, hardware, or configuration conditions not verified by software inventory. | Source |
github github | ≥ 2.22.0, < 2.22.7 | Verify advisory The advisory has platform, edition, hardware, or configuration conditions not verified by software inventory. | Source |
github github | ≥ 3.0.0, < 3.0.1 | Verify advisory | Source |
GitHub Enterprise Server GitHub | ≥ 2.20, < 2.20.24 | Verify advisory | Source |
GitHub Enterprise Server GitHub | ≥ 2.21, < 2.21.15 | Verify advisory | Source |
GitHub Enterprise Server GitHub | ≥ 2.22, < 2.22.7 | Verify advisory | Source |
GitHub Enterprise Server GitHub | ≥ 3.0, < 3.0.1 | Verify advisory | Source |
Recommended actions
Verify the product, installed version, platform, and advisory prerequisites on each system. Apply the vendor's applicable fixed release or mitigation. An affected-range boundary alone is not a universal update recommendation.
Vendor advisory links
Derived from non-aggregator references because the source record has no vendor tags. Verify the advisory before acting on it.
Severity
CVSS describes technical impact. It is separate from exploitation evidence.
Published headline score: 6.5. Score version, vector, and attribution are not available in this record. Additional score details appear when the source record is next refreshed.
Sources & references
Sources: Official CVE List, NVD and cve.now (summaries CC BY 4.0). Uses NVD data; not endorsed by NVD.