> CVE-2022-23521 [CRITICAL]

« BACK_TO_HOME
PUBLISHED
2023-01-17 23:15
MODIFIED
2024-11-21 06:48
CVSS_SCORE V3
9.8
EPSS (Prob. Exploit)
56.33%
Top 0.9%
⚡ EPSS ÉLEVÉ (56.3%)
DATA SOURCES:
NVD 🔗 2025-10-18 CVE PROJECT 🔗 2026-01-19 FIRST EPSS 🔗 2026-11-15 OSV 🔗 2026-07-26

> DESCRIPTION

Git is distributed revision control system. gitattributes are a mechanism to allow defining attributes for paths. These attributes can be defined by adding a `.gitattributes` file to the repository, which contains a set of file patterns and the attributes that should be set for paths matching this pattern. When parsing gitattributes, multiple integer overflows can occur when there is a huge number of path patterns, a huge number of attributes for a single pattern, or when the declared attribute names are huge. These overflows can be triggered via a crafted `.gitattributes` file that may be part of the commit history. Git silently splits lines longer than 2KB when parsing gitattributes from a file, but not when parsing them from the index. Consequentially, the failure mode depends on whether the file exists in the working tree, the index or both. This integer overflow can result in arbitrary heap reads and writes, which may result in remote code execution. The problem has been patched in the versions published on 2023-01-17, going back to v2.30.7. Users are advised to upgrade. There are no known workarounds for this issue.

> AFFECTED_PRODUCTS

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
>= 2.38.0 <= 2.38.2
Git-Scm - Git
Version: 2.39.0

> CVSS V3 METRICS

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

> MÉTRIQUES CVSS DÉTAILLÉES

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/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
Low (L)
Peu de conditions requises pour exploiter
PR (Privilèges Requis)
Privileges Required
None (N)
Aucune authentification requise
UI (Interaction Utilisateur)
User Interaction
None (N)
Aucune interaction utilisateur nécessaire
S (Périmètre)
Scope
Unchanged (U)
Impact reste dans le périmètre 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)

gitattributes parsing integer overflow in git

AFFECTED PACKAGES:
Unknown / Unknown
418 versions affected
ALIASES:
GHSA-c738-c5qq-xg89

> HISTORIQUE DES MODIFICATIONS

Première apparition
17/01/2023 23:15
Source: NVD
📊 ENRICHISSEMENT 18/10/2025 14:37
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