Descrizione
Git is a fast, scalable, distributed revision control system with an unusually rich command set that provides both high-level operations and full access to internals. Prior to 2.50.2, 2.51.3, 2.52.1, 2.53.1, 2.54.1, 2.55.1, and 2.56.1, an attacker-controlled repository hosted by the attacker rather than on a normal forge site can exploit git clone --recurse-submodules by causing Git to overwrite a submodule gitfile with a symbolic link. The symbolic link can point to a directory containing attacker-controlled Git configuration or hooks, allowing those hooks or configuration to execute code on the cloning user's system. The issue requires the recursive-submodule option, and users should avoid cloning repositories from untrusted sources. This issue is fixed in versions 2.50.2, 2.51.3, 2.52.1, 2.53.1, 2.54.1, 2.55.1, and 2.56.1.
Come correggere
Priorità: Media — correggere nel prossimo ciclo di patch. Motivazione: CVSS 8.0, EPSS 0.7% (percentile 54).
Versioni da aggiornare
- git git: vulnerabile la versione
< 2.50.2→ installare l'ultima release supportata dal vendor. - git git: vulnerabile la versione
>= 2.51.0, < 2.51.3→ installare l'ultima release supportata dal vendor. - git git: vulnerabile la versione
>= 2.52.0, < 2.52.1→ installare l'ultima release supportata dal vendor. - git git: vulnerabile la versione
>= 2.53.0, < 2.53.1→ installare l'ultima release supportata dal vendor. - git git: vulnerabile la versione
>= 2.54.0, < 2.54.1→ installare l'ultima release supportata dal vendor. - git git: vulnerabile la versione
>= 2.55.0, < 2.55.1→ installare l'ultima release supportata dal vendor. - git git: vulnerabile la versione
>= 2.56.0, < 2.56.1→ installare l'ultima release supportata dal vendor.
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 |
|---|---|---|---|
| git | git | < 2.50.2 | — |
| git | git | >= 2.51.0, < 2.51.3 | — |
| git | git | >= 2.52.0, < 2.52.1 | — |
| git | git | >= 2.53.0, < 2.53.1 | — |
| git | git | >= 2.54.0, < 2.54.1 | — |
| git | git | >= 2.55.0, < 2.55.1 | — |
| git | git | >= 2.56.0, < 2.56.1 | — |
Riferimenti
- Riferimentohttps://github.com/git/git/commit/29411cf59fd417d8fce1be40ab2911e3e0885f26
- Riferimentohttps://github.com/git/git/security/advisories/GHSA-vp2w-7xxj-jvxr
- Riferimentohttps://gitlab.com/git-scm/git/-/blob/v2.50.2/Documentation/RelNotes/2.50.2.adoc
- Riferimentohttps://gitlab.com/git-scm/git/-/blob/v2.51.3/Documentation/RelNotes/2.51.3.adoc
- Riferimentohttps://gitlab.com/git-scm/git/-/blob/v2.52.1/Documentation/RelNotes/2.52.1.adoc
- Riferimentohttps://gitlab.com/git-scm/git/-/blob/v2.53.1/Documentation/RelNotes/2.53.1.adoc
- Riferimentohttps://gitlab.com/git-scm/git/-/blob/v2.54.1/Documentation/RelNotes/2.54.1.adoc
- Riferimentohttps://gitlab.com/git-scm/git/-/blob/v2.55.1/Documentation/RelNotes/2.55.1.adoc
- Riferimentohttps://gitlab.com/git-scm/git/-/blob/v2.56.1/Documentation/RelNotes/2.56.1.adoc