CVE-2021-22866
HIGHDescription
A UI misrepresentation vulnerability was identified in GitHub Enterprise Server that allowed more permissions to be granted during a GitHub App's user-authorization web flow than was displayed to the user during approval. To exploit this vulnerability, an attacker would need to create a GitHub App on the instance and have a user authorize the application through the web authentication flow. All permissions being granted would properly be shown during the first authorization, but in certain circumstances, if the user revisits the authorization flow after the GitHub App has configured additional user-level permissions, those additional permissions may not be shown, leading to more permissions being granted than the user potentially intended. This vulnerability affected GitHub Enterprise Server 3.0.x prior to 3.0.7 and 2.22.x prior to 2.22.13. It was fixed in versions 3.0.7 and 2.22.13. This vulnerability was reported via the GitHub Bug Bounty program.
How to fix
TridentStack Control can deploy fixes like this automatically across your Windows, macOS, and Linux fleet. See how it works
Remediation is compiled from vendor and distribution security advisories. Always confirm against the linked source for your exact version and platform.
CVSS v3 Vector
Exploitability
Impact
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Exploit Intelligence
Moderate risk: more likely to be exploited than 61% of all known CVEs.
References
Related Vulnerabilities
Other CWE-451 vulnerabilities, ordered by exploit likelihood. View all
| CVE | Severity | CVSS | EPSS | Exploited | Fix |
|---|---|---|---|---|---|
| CVE-2024-38112 | High | 7.5 | 84% | KEV | Fix |
| CVE-2025-9491 | High | 7.8 | 69% | - | - |
| CVE-2024-43461 | High | 8.8 | 52% | KEV | Fix |
| CVE-2024-38197 | Medium | 6.5 | 16% | - | - |
| CVE-2024-49040 | High | 7.5 | 7.7% | - | Fix |
| CVE-2026-0907 | Critical | 9.8 | 7.7% | - | Fix |
Common questions
How do I fix CVE-2021-22866?
Upgrade enterprise server to 3.0.7 or later.
Is CVE-2021-22866 being actively exploited?
Not that we know of. CVE-2021-22866 is not in the CISA Known Exploited Vulnerabilities catalog. Its EPSS score of 1.0% is the estimated probability that it will be exploited in the next 30 days. That is higher than 61% of all scored CVEs.
How severe is CVE-2021-22866?
CVE-2021-22866 has a CVSS v3 base score of 8.8, rated high. CVSS rates the technical impact if the vulnerability is exploited, not how likely that is, so weigh it alongside the exploit-prediction score when you decide what to patch first.
What does CVE-2021-22866 affect?
Published advisories record a fix for enterprise server (NVD). Only products with a sourced advisory are listed, so treat this as what we can cite rather than a complete inventory.
Embed a live status badge for CVE-2021-22866
Markdown
[](https://tridentstack.com/cve/CVE-2021-22866)HTML
<a href="https://tridentstack.com/cve/CVE-2021-22866"><img src="https://tridentstack.com/cve/badge/CVE-2021-22866.svg" alt="CVE-2021-22866"></a>Find and fix vulnerabilities across your fleet
TridentStack Control continuously scans your Windows, macOS, and Linux fleet for known vulnerabilities, prioritizes them by severity and active exploitation, and patches them automatically.
This product uses NVD data but is not endorsed or certified by the NVD. EPSS scores courtesy of FIRST.org (https://www.first.org/epss). Source: CISA KEV Catalog. Data as of 2024-11-21.