CVE-2021-22864
A remote code execution vulnerability was identified in GitHub Enterprise Server that could be exploited when building a GitHub Pages site. User-controlled configuration options used by GitHub Pages were not sufficiently restricted and made it possible to override environment variables leading to code execution on the GitHub Enterprise Server instance. To exploit this vulnerability, an attacker would need permission to create and build a GitHub Pages site on the GitHub Enterprise Server instance. This vulnerability affected all versions of GitHub Enterprise Server prior to 3.0.3 and was fixed in 3.0.3, 2.22.9, and 2.21.17. 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:H
- Puntuación base: 8.8
Probabilidad de explotación (EPSS)
- Probabilidad de explotación en los próximos 30 días: 2.46%
- Percentil entre todas las CVEs puntuadas: 84
- 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-77
- NVD-CWE-noinfo
Referencias
- https://docs.github.com/en/enterprise-server%402.21/admin/release-notes#2.21.17
- https://docs.github.com/en/enterprise-server%402.22/admin/release-notes#2.22.9
- https://docs.github.com/en/enterprise-server%403.0/admin/release-notes#3.0.3
- https://docs.github.com/en/enterprise-server%402.21/admin/release-notes#2.21.17
- https://docs.github.com/en/enterprise-server%402.22/admin/release-notes#2.22.9
- https://docs.github.com/en/enterprise-server%403.0/admin/release-notes#3.0.3
JSON original (NVD)
Mostrar
{
"id": "CVE-2021-22864",
"cveTags": [],
"metrics": {
"cvssMetricV2": [
{
"type": "Primary",
"source": "nvd@nist.gov",
"cvssData": {
"version": "2.0",
"baseScore": 6.5,
"accessVector": "NETWORK",
"vectorString": "AV:N/AC:L/Au:S/C:P/I:P/A:P",
"authentication": "SINGLE",
"integrityImpact": "PARTIAL",
"accessComplexity": "LOW",
"availabilityImpact": "PARTIAL",
"confidentialityImpact": "PARTIAL"
},
"acInsufInfo": false,
"impactScore": 6.4,
"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.8,
"attackVector": "NETWORK",
"baseSeverity": "HIGH",
"vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
"integrityImpact": "HIGH",
"userInteraction": "NONE",
"attackComplexity": "LOW",
"availabilityImpact": "HIGH",
"privilegesRequired": "LOW",
"confidentialityImpact": "HIGH"
},
"impactScore": 5.9,
"exploitabilityScore": 2.8
}
]
},
"affected": [
{
"source": "product-cna@github.com",
"affectedData": [
{
"vendor": "GitHub",
"product": "GitHub Enterprise Server",
"versions": [
{
"status": "affected",
"version": "2.21",
"lessThan": "2.21.17",
"versionType": "custom"
},
{
"status": "affected",
"version": "2.22",
"lessThan": "2.22.9",
"versionType": "custom"
},
{
"status": "affected",
"version": "3.0",
"lessThan": "3.0.3",
"versionType": "custom"
}
]
}
]
}
],
"published": "2021-03-23T22:15:12.423",
"references": [
{
"url": "https://docs.github.com/en/enterprise-server%402.21/admin/release-notes#2.21.17",
"source": "product-cna@github.com"
},
{
"url": "https://docs.github.com/en/enterprise-server%402.22/admin/release-notes#2.22.9",
"source": "product-cna@github.com"
},
{
"url": "https://docs.github.com/en/enterprise-server%403.0/admin/release-notes#3.0.3",
"source": "product-cna@github.com"
},
{
"url": "https://docs.github.com/en/enterprise-server%402.21/admin/release-notes#2.21.17",
"source": "af854a3a-2127-422b-91ae-364da2661108"
},
{
"url": "https://docs.github.com/en/enterprise-server%402.22/admin/release-notes#2.22.9",
"source": "af854a3a-2127-422b-91ae-364da2661108"
},
{
"url": "https://docs.github.com/en/enterprise-server%403.0/admin/release-notes#3.0.3",
"source": "af854a3a-2127-422b-91ae-364da2661108"
}
],
"vulnStatus": "Modified",
"weaknesses": [
{
"type": "Secondary",
"source": "product-cna@github.com",
"description": [
{
"lang": "en",
"value": "CWE-77"
}
]
},
{
"type": "Primary",
"source": "nvd@nist.gov",
"description": [
{
"lang": "en",
"value": "NVD-CWE-noinfo"
}
]
}
],
"descriptions": [
{
"lang": "en",
"value": "A remote code execution vulnerability was identified in GitHub Enterprise Server that could be exploited when building a GitHub Pages site. User-controlled configuration options used by GitHub Pages were not sufficiently restricted and made it possible to override environment variables leading to code execution on the GitHub Enterprise Server instance. To exploit this vulnerability, an attacker would need permission to create and build a GitHub Pages site on the GitHub Enterprise Server instance. This vulnerability affected all versions of GitHub Enterprise Server prior to 3.0.3 and was fixed in 3.0.3, 2.22.9, and 2.21.17. This vulnerability was reported via the GitHub Bug Bounty program."
},
{
"lang": "es",
"value": "Se identificó una vulnerabilidad de ejecución de código remota en el servidor de GitHub Enterprise que podría explotarse al crear un sitio de páginas de GitHub. Las opciones de configuración controladas por el usuario que usaban las páginas de GitHub no estaban lo suficientemente restringidas y permitían anular las variables de entorno lo que conllevaría a una ejecución de código en la instancia del servidor de GitHub Enterprise. Para explotar esta vulnerabilidad, un atacante necesitaría permiso para crear y construir un sitio de páginas de GitHub en la instancia del servidor de GitHub Enterprise. Esta vulnerabilidad afectó a todas las versiones de GitHub Enterprise Server anteriores a 3.0.3 y se corrigió en versiones 3.0.3, 2.22.9 y 2.21.17. Esta vulnerabilidad se reportó por medio del programa GitHub Bug Bounty"
}
],
"lastModified": "2026-06-17T03:37:54.293",
"configurations": [
{
"nodes": [
{
"negate": false,
"cpeMatch": [
{
"criteria": "cpe:2.3:a:github:enterprise_server:*:*:*:*:*:*:*:*",
"vulnerable": true,
"matchCriteriaId": "1D306E32-D4C5-48C9-8408-2BD41D9F532D",
"versionEndExcluding": "2.21.17",
"versionStartIncluding": "2.21.0"
},
{
"criteria": "cpe:2.3:a:github:enterprise_server:*:*:*:*:*:*:*:*",
"vulnerable": true,
"matchCriteriaId": "EDB27F5B-D998-4C70-9087-EA3F4574B84D",
"versionEndExcluding": "2.22.9",
"versionStartIncluding": "2.22.0"
},
{
"criteria": "cpe:2.3:a:github:enterprise_server:*:*:*:*:*:*:*:*",
"vulnerable": true,
"matchCriteriaId": "F5B66596-7997-45C3-A56C-F1CEA2D1BAE8",
"versionEndExcluding": "3.0.3",
"versionStartIncluding": "3.0.0"
}
],
"operator": "OR"
}
]
}
],
"sourceIdentifier": "product-cna@github.com"
}