CVE & CISA-KEV Catalog

CVE-2021-22861

MEDIUM
6.5
CVSS v3
NVD

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.

How to fix

Remediation Available
githubNVD
Affected:>= 2.22.0, < 2.22.7Fixed in:2.22.7CVE-2021-22861derived from NVD
Affected:>= 3.0.0, < 3.0.1Fixed in:3.0.1CVE-2021-22861derived from NVD

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

Attack VectorNetwork
Attack ComplexityLow
Privileges RequiredLow
User InteractionNone
ScopeUnchanged

Impact

ConfidentialityNone
IntegrityHigh
AvailabilityNone

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N

Exploit Intelligence

0.92%probability of exploitation in 30 days
56thpercentile

Moderate risk: more likely to be exploited than 56% of all known CVEs.

References

Related Vulnerabilities

Other CWE-285 vulnerabilities, ordered by exploit likelihood. View all

CVESeverityCVSSEPSSExploitedFix
CVE-2025-29927Critical9.1100%-Fix
CVE-2021-28799Critical10.078%KEV + RansomFix
CVE-2023-32707High8.874%-Fix
CVE-2023-48241High7.573%-Fix
CVE-2023-22480High7.367%-Fix
CVE-2022-3229Critical9.866%--
Embed a live status badge for CVE-2021-22861
CVE-2021-22861 severity badge

Markdown

[![CVE-2021-22861](https://tridentstack.com/cve/badge/CVE-2021-22861.svg)](https://tridentstack.com/cve/CVE-2021-22861)

HTML

<a href="https://tridentstack.com/cve/CVE-2021-22861"><img src="https://tridentstack.com/cve/badge/CVE-2021-22861.svg" alt="CVE-2021-22861"></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.

Start free

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.