CVE-2025-11578
JSON

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 packageVersionsReported by
GitHub Enterprise Serverfrom 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.1CVE List
github enterprise_serverfrom 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.2NVD

All scores

GitHub_P7.5high CVSS:4.0CVSS:4.0/AV:N/AC:H/AT:P/PR:H/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
NVD7.2high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H

Classification

CWE-59

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

Sources

SourceRecordLicence
CVE ListCVE-2025-11578 changed 2025-12-02CVE Terms of Use
NVDCVE-2025-11578 changed 2026-10-07Public domain