> CVE-2022-41903 [CRITICAL]

« BACK_TO_HOME
PUBLISHED
2023-01-17 23:15
MODIFIED
2024-11-21 07:24
CVSS_SCORE V3
9.8
EPSS (Prob. Exploit)
44.27%
Top 1.2%
⚡ EPSS ÉLEVÉ (44.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. `git log` can display commits in an arbitrary format using its `--format` specifiers. This functionality is also exposed to `git archive` via the `export-subst` gitattribute. When processing the padding operators, there is a integer overflow in `pretty.c::format_and_pad_commit()` where a `size_t` is stored improperly as an `int`, and then added as an offset to a `memcpy()`. This overflow can be triggered directly by a user running a command which invokes the commit formatting machinery (e.g., `git log --format=...`). It may also be triggered indirectly through git archive via the export-subst mechanism, which expands format specifiers inside of files within the repository during a git archive. This integer overflow can result in arbitrary heap writes, which may result in arbitrary 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. Users who are unable to upgrade should disable `git archive` in untrusted repositories. If you expose git archive via `git daemon`, disable it by running `git config --global daemon.uploadArch false`.

> 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)

Integer overflow in `git archive`, `git log --format` leading to RCE in git

AFFECTED PACKAGES:
Unknown / Unknown
418 versions affected
ALIASES:
GHSA-475x-2q3q-hvwq

> 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