> CVE-2022-39260 [HIGH]

« BACK_TO_HOME
PUBLISHED
2022-10-19 12:15
MODIFIED
2024-11-21 07:17
CVSS_SCORE V3
8.5
EPSS (Prob. Exploit)
3.99%
Top 9.4%
DATA SOURCES:
NVD 🔗 2025-10-18 CVE PROJECT 🔗 2026-01-19 FIRST EPSS 🔗 2026-11-08 OSV 🔗 2026-11-15

> DESCRIPTION

Git is an open source, scalable, distributed revision control system. `git shell` is a restricted login shell that can be used to implement Git's push/pull functionality via SSH. In versions prior to 2.30.6, 2.31.5, 2.32.4, 2.33.5, 2.34.5, 2.35.5, 2.36.3, and 2.37.4, the function that splits the command arguments into an array improperly uses an `int` to represent the number of entries in the array, allowing a malicious actor to intentionally overflow the return value, leading to arbitrary heap writes. Because the resulting array is then passed to `execv()`, it is possible to leverage this attack to gain remote code execution on a victim machine. Note that a victim must first allow access to `git shell` as a login shell in order to be vulnerable to this attack. This problem is patched in versions 2.30.6, 2.31.5, 2.32.4, 2.33.5, 2.34.5, 2.35.5, 2.36.3, and 2.37.4 and users are advised to upgrade to the latest version. Disabling `git shell` access via remote logins is a viable short-term workaround.

> AFFECTED_PRODUCTS

Debian - Debian Linux
Version: 10.0
Fedoraproject - Fedora
Version: 35
Fedoraproject - Fedora
Version: 36
Fedoraproject - Fedora
Version: 37
Apple - Xcode
< 14.1
Git-Scm - Git
< 2.30.6
Git-Scm - Git
>= 2.31.0 < 2.31.5
Git-Scm - Git
>= 2.32.0 < 2.32.4
Git-Scm - Git
>= 2.33.0 < 2.33.5
Git-Scm - Git
>= 2.34.0 < 2.34.5
Git-Scm - Git
>= 2.35.0 < 2.35.5
Git-Scm - Git
>= 2.36.0 < 2.36.3
Git-Scm - Git
>= 2.37.0 < 2.37.4
Git-Scm - Git
Version: 2.38.0

> CVSS V3 METRICS

CVSS_VECTOR
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H

> MÉTRIQUES CVSS DÉTAILLÉES

CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H
Métrique Valeur Interprétation
AV (Vecteur d'Attaque)
Attack Vector
Network (N)
Exploit possible à distance via réseau (HTTP, API, etc.)
AC (Complexité d'Attaque)
Attack Complexity
High (H)
Conditions spécifiques doivent être réunies pour exploiter
PR (Privilèges Requis)
Privileges Required
Low (L)
Authentifié avec compte utilisateur basique
UI (Interaction Utilisateur)
User Interaction
None (N)
Aucune interaction utilisateur nécessaire
S (Périmètre)
Scope
Changed (C)
Impact s'étend au-delà du composant compromis
C (Impact Confidentialité)
Confidentiality Impact
High (H)
Divulgation totale d'informations
I (Impact Intégrité)
Integrity Impact
High (H)
Modification totale des données possible
A (Impact Disponibilité)
Availability Impact
High (H)
Interruption totale du service possible

> RÉSUMÉ DES IMPACTS

Confidentialité
High
Divulgation totale d'informations
Intégrité
High
Modification totale des données possible
Disponibilité
High
Interruption totale du service possible

> OSV (GOOGLE OPEN SOURCE VULNERABILITIES)

Git vulnerable to Remote Code Execution via Heap overflow in `git shell`

AFFECTED PACKAGES:
Unknown / Unknown
407 versions affected
ALIASES:
GHSA-rjr6-wcq6-83p6

> HISTORIQUE DES MODIFICATIONS

Première apparition
19/10/2022 12:15
Source: NVD
📊 ENRICHISSEMENT 18/10/2025 14:35
CVEPROJECT
Champ modifié: CVE Project
Ancienne valeur:
Non
Nouvelle valeur:
Oui
Total des modifications: 1 Dernière mise à jour: 1 year ago
« BACK_TO_HOME