7.5high
Pre-Receive Hook Path Collision Vulnerability in GitHub Enterprise Server Allowing Privilege Escalation
- Severity
- 7.5high CVSS:4.0 by GitHub_P
- Exploit likelihood
- 0.71% (higher than 54% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_P
Description
A privilege escalation vulnerability was identified in GitHub Enterprise Server that allowed an authenticated Enterprise admin to gain root SSH access to the appliance by exploiting a symlink escape in pre-receive hook environments. By crafting a malicious repository and environment, an attacker could replace system binaries during hook cleanup and execute a payload that adds their own SSH key to the root user’s authorized keys—thereby granting themselves root SSH access to the server. To exploit this vulnerability, the attacker needed to have enterprise admin privileges. This vulnerability affected all versions of GitHub Enterprise Server prior to 3.19, and was fixed in versions 3.14.20, 3.15.15, 3.16.11, 3.17.8, 3.18.2. This vulnerability was reported via the GitHub Bug Bounty program.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| GitHub Enterprise Server | from 3.14 up to 3.14.19, from 3.15 up to 3.15.14, from 3.16 up to 3.16.10, from 3.17 up to 3.17.7, from 3.18 up to 3.18.1 | CVE List |
| github enterprise_server | from 3.14.0 before 3.14.20, from 3.15.0 before 3.15.15, from 3.16.0 before 3.16.11, from 3.17.0 before 3.17.8, from 3.18.0 before 3.18.2 | NVD |
All scores
| GitHub_P | 7.5high CVSS:4.0 | CVSS:4.0/AV:N/AC:H/AT:P/PR:H/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N |
| NVD | 7.2high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.
What each source says
CVE List
A privilege escalation vulnerability was identified in GitHub Enterprise Server that allowed an authenticated Enterprise admin to gain root SSH access to the appliance by exploiting a symlink escape in pre-receive hook environments. By crafting a malicious repository and environment, an attacker could replace system binaries during hook cleanup and execute a payload that adds their own SSH key to the root user’s authorized keys—thereby granting themselves root SSH access to the server. To exploit this vulnerability, the attacker needed to have enterprise admin privileges. This vulnerability affected all versions of GitHub Enterprise Server prior to 3.19, and was fixed in versions 3.14.20, 3.15.15, 3.16.11, 3.17.8, 3.18.2. This vulnerability was reported via the GitHub Bug Bounty program.
NVD (es)
Una vulnerabilidad de escalada de privilegios fue identificada en GitHub Enterprise Server que permitía a un administrador de Enterprise autenticado obtener acceso SSH de root al dispositivo explotando un escape de symlink en entornos de hooks de pre-recepción. Al crear un repositorio y entorno maliciosos, un atacante podía reemplazar binarios del sistema durante la limpieza del hook y ejecutar una carga útil que añade su propia clave SSH a las claves autorizadas del usuario root, otorgándose así acceso SSH de root al servidor. Para explotar esta vulnerabilidad, el atacante necesitaba tener privilegios de administrador de Enterprise. Esta vulnerabilidad afectaba a todas las versiones de GitHub Enterprise Server anteriores a la 3.19, y fue corregida en las versiones 3.14.20, 3.15.15, 3.16.11, 3.17.8, 3.18.2. Esta vulnerabilidad fue reportada a través del programa GitHub Bug Bounty.
References
| https://docs.github.com/en/enterprise-server@3.14/admin/release-notes#3.14.20 | release-notes, vendor-advisory | |
| https://docs.github.com/en/enterprise-server@3.15/admin/release-notes#3.15.15 | release-notes, vendor-advisory | |
| https://docs.github.com/en/enterprise-server@3.16/admin/release-notes#3.16.11 | release-notes, vendor-advisory | |
| https://docs.github.com/en/enterprise-server@3.17/admin/release-notes#3.17.8 | release-notes, vendor-advisory | |
| https://docs.github.com/en/enterprise-server@3.18/admin/release-notes#3.18.2 | release-notes, vendor-advisory | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2025-11578 changed 2025-12-02 | CVE Terms of Use |
| NVD | CVE-2025-11578 changed 2026-10-07 | Public domain |