CVE-2021-22863
An improper access control vulnerability was identified in the GitHub Enterprise Server GraphQL API that allowed authenticated users of the instance to modify the maintainer collaboration permission of a pull request without proper authorization. By exploiting this vulnerability, an attacker would be able to gain access to head branches of pull requests opened on repositories of which they are a maintainer. Forking is disabled by default for organization owned private repositories and would prevent this vulnerability.
Leer descripción completaMostrar menos
Additionally, 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.12.22 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
- Versión: 3.1
- Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N
- Puntuación base: 8.1
Probabilidad de explotación (EPSS)
- Probabilidad de explotación en los próximos 30 días: 1.00%
- Percentil entre todas las CVEs puntuadas: 62
- Fecha de la puntuación: 6/10/2026
EPSS (Exploit Prediction Scoring System, de FIRST) estima la probabilidad de que una vulnerabilidad sea explotada en 30 días. Complementa a CVSS (impacto) y a CISA KEV (explotación confirmada).
Tecnologías afectadas (1)
CWE
- CWE-285
- NVD-CWE-Other
Referencias
- https://docs.github.com/en/enterprise-server%402.20/admin/release-notes#2.20.24
- https://docs.github.com/en/enterprise-server%402.21/admin/release-notes#2.21.15
- https://docs.github.com/en/enterprise-server%402.22/admin/release-notes#2.22.7
- https://docs.github.com/en/enterprise-server%403.0/admin/release-notes#3.0.1
- https://docs.github.com/en/enterprise-server%402.20/admin/release-notes#2.20.24
- https://docs.github.com/en/enterprise-server%402.21/admin/release-notes#2.21.15
- https://docs.github.com/en/enterprise-server%402.22/admin/release-notes#2.22.7
- https://docs.github.com/en/enterprise-server%403.0/admin/release-notes#3.0.1
JSON original (NVD)
Mostrar
{
"id": "CVE-2021-22863",
"cveTags": [],
"metrics": {
"cvssMetricV2": [
{
"type": "Primary",
"source": "nvd@nist.gov",
"cvssData": {
"version": "2.0",
"baseScore": 5.5,
"accessVector": "NETWORK",
"vectorString": "AV:N/AC:L/Au:S/C:P/I:P/A:N",
"authentication": "SINGLE",
"integrityImpact": "PARTIAL",
"accessComplexity": "LOW",
"availabilityImpact": "NONE",
"confidentialityImpact": "PARTIAL"
},
"acInsufInfo": false,
"impactScore": 4.9,
"baseSeverity": "MEDIUM",
"obtainAllPrivilege": false,
"exploitabilityScore": 8,
"obtainUserPrivilege": false,
"obtainOtherPrivilege": false,
"userInteractionRequired": false
}
],
"cvssMetricV31": [
{
"type": "Primary",
"source": "nvd@nist.gov",
"cvssData": {
"scope": "UNCHANGED",
"version": "3.1",
"baseScore": 8.1,
"attackVector": "NETWORK",
"baseSeverity": "HIGH",
"vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N",
"integrityImpact": "HIGH",
"userInteraction": "NONE",
"attackComplexity": "LOW",
"availabilityImpact": "NONE",
"privilegesRequired": "LOW",
"confidentialityImpact": "HIGH"
},
"impactScore": 5.2,
"exploitabilityScore": 2.8
}
]
},
"affected": [
{
"source": "product-cna@github.com",
"affectedData": [
{
"vendor": "GitHub",
"product": "GitHub Enterprise Server",
"versions": [
{
"status": "affected",
"version": "2.20",
"lessThan": "2.20.24",
"versionType": "custom"
},
{
"status": "affected",
"version": "2.21",
"lessThan": "2.21.15",
"versionType": "custom"
},
{
"status": "affected",
"version": "2.22",
"lessThan": "2.22.7",
"versionType": "custom"
},
{
"status": "affected",
"version": "3.0",
"lessThan": "3.0.1",
"versionType": "custom"
}
]
}
]
}
],
"published": "2021-03-03T04:15:13.240",
"references": [
{
"url": "https://docs.github.com/en/enterprise-server%402.20/admin/release-notes#2.20.24",
"source": "product-cna@github.com"
},
{
"url": "https://docs.github.com/en/enterprise-server%402.21/admin/release-notes#2.21.15",
"source": "product-cna@github.com"
},
{
"url": "https://docs.github.com/en/enterprise-server%402.22/admin/release-notes#2.22.7",
"source": "product-cna@github.com"
},
{
"url": "https://docs.github.com/en/enterprise-server%403.0/admin/release-notes#3.0.1",
"source": "product-cna@github.com"
},
{
"url": "https://docs.github.com/en/enterprise-server%402.20/admin/release-notes#2.20.24",
"source": "af854a3a-2127-422b-91ae-364da2661108"
},
{
"url": "https://docs.github.com/en/enterprise-server%402.21/admin/release-notes#2.21.15",
"source": "af854a3a-2127-422b-91ae-364da2661108"
},
{
"url": "https://docs.github.com/en/enterprise-server%402.22/admin/release-notes#2.22.7",
"source": "af854a3a-2127-422b-91ae-364da2661108"
},
{
"url": "https://docs.github.com/en/enterprise-server%403.0/admin/release-notes#3.0.1",
"source": "af854a3a-2127-422b-91ae-364da2661108"
}
],
"vulnStatus": "Modified",
"weaknesses": [
{
"type": "Secondary",
"source": "product-cna@github.com",
"description": [
{
"lang": "en",
"value": "CWE-285"
}
]
},
{
"type": "Primary",
"source": "nvd@nist.gov",
"description": [
{
"lang": "en",
"value": "NVD-CWE-Other"
}
]
}
],
"descriptions": [
{
"lang": "en",
"value": "An improper access control vulnerability was identified in the GitHub Enterprise Server GraphQL API that allowed authenticated users of the instance to modify the maintainer collaboration permission of a pull request without proper authorization. By exploiting this vulnerability, an attacker would be able to gain access to head branches of pull requests opened on repositories of which they are a maintainer. Forking is disabled by default for organization owned private repositories and would prevent this vulnerability. Additionally, 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.12.22 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."
},
{
"lang": "es",
"value": "Se identificó una vulnerabilidad de control de acceso inadecuada en la API GraphQL de GitHub Enterprise Server que permitía a los usuarios autenticados de la instancia modificar el permiso de colaboración del mantenedor de un pull request sin la autorización adecuada. Al explotar esta vulnerabilidad, un atacante podría obtener acceso a las ramas principales de los pull requests abiertos en los repositorios de los que es mantenedor. La bifurcación está deshabilitada por defecto para los repositorios privados propiedad de la organización y evitaría esta vulnerabilidad. Además, las protecciones de las ramas, como las revisiones requeridas de las solicitudes de extracción o las comprobaciones de estado, impedirían que los commits no autorizados se fusionaran sin más revisión o validación. Esta vulnerabilidad afectaba a todas las versiones de GitHub Enterprise Server desde la versión 2.12.22 y fue corregida en las versiones 2.20.24, 2.21.15, 2.22.7 y 3.0.1. Esta vulnerabilidad fue reportada a través del programa GitHub Bug Bounty"
}
],
"lastModified": "2026-06-17T03:37:54.170",
"configurations": [
{
"nodes": [
{
"negate": false,
"cpeMatch": [
{
"criteria": "cpe:2.3:a:github:github:*:*:*:*:enterprise:*:*:*",
"vulnerable": true,
"matchCriteriaId": "672A9206-E6DA-4137-8AB2-A047F700902A",
"versionEndExcluding": "2.20.24",
"versionStartIncluding": "2.12.22"
},
{
"criteria": "cpe:2.3:a:github:github:*:*:*:*:enterprise:*:*:*",
"vulnerable": true,
"matchCriteriaId": "33F7B688-318D-452D-A804-49984D527FDA",
"versionEndExcluding": "2.21.15",
"versionStartIncluding": "2.21.0"
},
{
"criteria": "cpe:2.3:a:github:github:*:*:*:*:enterprise:*:*:*",
"vulnerable": true,
"matchCriteriaId": "5333B472-BF06-4427-9344-72CD5B2429CD",
"versionEndExcluding": "2.22.7",
"versionStartIncluding": "2.22.0"
},
{
"criteria": "cpe:2.3:a:github:github:*:*:*:*:*:*:*:*",
"vulnerable": true,
"matchCriteriaId": "6929FFB5-AC83-412F-A6FF-0593F64A0688",
"versionEndExcluding": "3.0.1",
"versionStartIncluding": "3.0.0"
}
],
"operator": "OR"
}
]
}
],
"sourceIdentifier": "product-cna@github.com"
}