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.

Testo originale del record CVE (in inglese).

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.0 precedenti alla 3.19.* → aggiornare alla 3.19.16 o successiva.
  • GitHub Enterprise Server: vulnerabili le versioni dalla 3.20.0 precedenti alla 3.20.* → aggiornare alla 3.20.12 o successiva.
  • GitHub Enterprise Server: vulnerabili le versioni dalla 3.21.0 precedenti alla 3.21.* → aggiornare alla 3.21.10 o successiva.
  • GitHub Enterprise Server: vulnerabili le versioni dalla 3.22.0 precedenti alla 3.22.* → aggiornare alla 3.22.5 o 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

  1. Individuare tutti gli asset con il prodotto interessato (inventario, scanner di vulnerabilità, CMDB).
  2. Confrontare la versione installata con quelle indicate sopra.
  3. Applicare l'aggiornamento in un ambiente di test, poi in produzione; riavviare i servizi se richiesto.
  4. Ripetere la scansione per confermare la correzione.

Configurazioni interessate

VendorProdottoVersioni vulnerabiliCorretta 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