Descrizione
An incorrect authorization vulnerability was identified in GitHub Enterprise Server that allowed an authenticated user whose numeric user ID matched an enterprise's numeric ID to manage that enterprise's GitHub Apps and generate private keys without enterprise membership. GitHub App ownership checks compared numeric IDs without checking the owner's account type. Exploitation required control of a session for the colliding user account and an enterprise-owned GitHub App. A generated private key could be used to authenticate as the App and access repositories where it was installed, within its granted permissions. On standard fresh installations, the documented collision involved the non-loginable built-in ghost account; the reported GHES reproduction used site administrator impersonation. This vulnerability affected supported GitHub Enterprise Server releases prior to 3.23 and was fixed in versions 3.19.16, 3.20.12, 3.21.10, and 3.22.5. This vulnerability was reported via the GitHub Bug Bounty program.
Come correggere
Priorità: Media — correggere nel prossimo ciclo di patch. Motivazione: CVSS 7.4, EPSS 0.4% (percentile 30).
Versioni da aggiornare
- GitHub Enterprise Server: vulnerabili le versioni dalla
3.19.0precedenti alla3.19.*→ aggiornare alla3.19.16o successiva. - GitHub Enterprise Server: vulnerabili le versioni dalla
3.20.0precedenti alla3.20.*→ aggiornare alla3.20.12o successiva. - GitHub Enterprise Server: vulnerabili le versioni dalla
3.21.0precedenti alla3.21.*→ aggiornare alla3.21.10o successiva. - GitHub Enterprise Server: vulnerabili le versioni dalla
3.22.0precedenti alla3.22.*→ aggiornare alla3.22.5o successiva.
Mitigazioni temporanee
Da applicare solo se non è possibile aggiornare subito:
- Ridurre l'esposizione del componente vulnerabile (segmentazione, accesso solo da reti fidate) finché la patch non è applicata.
Verifica
- Individuare tutti gli asset con il prodotto interessato (inventario, scanner di vulnerabilità, CMDB).
- Confrontare la versione installata con quelle indicate sopra.
- Applicare l'aggiornamento in un ambiente di test, poi in produzione; riavviare i servizi se richiesto.
- Ripetere la scansione per confermare la correzione.
Configurazioni interessate
| Vendor | Prodotto | Versioni vulnerabili | Corretta in |
|---|---|---|---|
| GitHub | Enterprise Server | ≥ 3.19.0 < 3.19.* | 3.19.16 |
| GitHub | Enterprise Server | ≥ 3.20.0 < 3.20.* | 3.20.12 |
| GitHub | Enterprise Server | ≥ 3.21.0 < 3.21.* | 3.21.10 |
| GitHub | Enterprise Server | ≥ 3.22.0 < 3.22.* | 3.22.5 |
Riferimenti
- Riferimentohttps://docs.github.com/en/enterprise-server@3.19/admin/release-notes#3.19.16
- Riferimentohttps://docs.github.com/en/enterprise-server@3.20/admin/release-notes#3.20.12
- Riferimentohttps://docs.github.com/en/enterprise-server@3.21/admin/release-notes#3.21.10
- Riferimentohttps://docs.github.com/en/enterprise-server@3.22/admin/release-notes#3.22.5