Vulnérabilités / CVE-2026-42284

critique

CVE-2026-42284

GitPython: GitPython: Arbitrary code execution via improper validation of clone options

Publiée Modifiée CWE 88
Dans la Trivy database depuis au moins le 24 oct. 2026, 07:11 UTCLa date d'entrée avant ce build n'est pas enregistrée.

Sévérité par source

NVD9.8CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
GHSA8.1CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
Red Hat7.5CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H

Le label propre à Trivy est CRITICAL. Critique selon NVD. Plus basse selon GHSA (élevée), Red Hat (élevée), Ubuntu (moyenne).

Description

GitPython is a python library used to interact with Git repositories. Prior to version 3.1.47, _clone() validates multi_options as the original list, then executes shlex.split(" ".join(multi_options)). A string like "--branch main --config core.hooksPath=/x" passes validation (starts with --branch), but after split becomes ["--branch", "main", "--config", "core.hooksPath=/x"]. Git applies the config and executes attacker hooks during clone. This issue has been patched in version 3.1.47.

Paquets affectés et versions corrigées

SourcePaquetCorrigé en
alpine 3.23py3-gitpython3.1.49-r0
alpine 3.24py3-gitpython3.1.49-r0
alpine edgepy3-gitpython3.1.49-r0
chainguardawx, checkov, datahub-ingestion-fips et 4 autres24.6.1-r35 et 6 autres
debian 11python-gitpas de correctif indiqué
debian 12python-gitpas de correctif indiqué
debian 13python-gitpas de correctif indiqué
debian 14python-git3.1.50-1
echopython-git3.1.47
echo pip::Echo OSVgitpython3.1.47, 3.1.47
minimosmageai, py3-gitpython0.9.80-r0 et 1 autres
pip::GitHub Security Advisory pipgitpython3.1.47
Afficher les 37 entrées de 22 sources
SourcePaquetCorrigé en
alpine 3.23py3-gitpython3.1.49-r0
alpine 3.24py3-gitpython3.1.49-r0
alpine edgepy3-gitpython3.1.49-r0
chainguardawx24.6.1-r35
chainguardcheckov3.2.525-r0
chainguarddatahub-ingestion-fips1.5.0.1-r2
chainguardmlflow3.16.0-r0
chainguardmlflow-fips3.11.1-r0
chainguardopal0.9.5-r0
chainguardopen-webui0.9.2-r0
debian 11python-gitpas de correctif indiqué
debian 12python-gitpas de correctif indiqué
debian 13python-gitpas de correctif indiqué
debian 14python-git3.1.50-1
echopython-git3.1.47
echo pip::Echo OSVgitpython3.1.47, 3.1.47
minimosmageai0.9.80-r0
minimospy3-gitpython3.1.47-r0
pip::GitHub Security Advisory pipgitpython3.1.47
rapidfort debian 12python-git0:3.1.50-1
rapidfort debian 13python-git0:3.1.50-1
Red Hatpython-gitpythonpas de correctif indiqué
Red Hatpython3.12-gitpythonpas de correctif indiqué
Red Hatsatellite-capsule:el8::python-gitpythonpas de correctif indiqué
Red Hatsatellite/iop-vmaas-rhel9pas de correctif indiqué
Red Hatsatellite/iop-vulnerability-engine-rhel9pas de correctif indiqué
Red Hatsatellite:el8::python-gitpythonpas de correctif indiqué
seal pip::Seal Security Databasegitpython3.1.37+sp999
seal pip::Seal Security Databaseseal-gitpython3.1.37+sp999
ubuntu 20.04-ESMpython-git3.0.7-1ubuntu0.1~esm4
ubuntu 22.04python-gitpas de correctif indiqué
ubuntu 24.04python-gitpas de correctif indiqué
ubuntu 26.04python-gitpas de correctif indiqué
ubuntu 26.10python-gitpas de correctif indiqué
wolficheckov3.2.525-r0
wolfimlflow3.16.0-r0
wolfiopen-webui0.9.2-r0

Références

Les 10 références

Vulnerability data compiled from the Trivy vulnerability database (trivy-db, Aqua Security, Apache License 2.0), which aggregates third-party advisories. CVE records are published by The MITRE Corporation under the CVE Terms of Use; CVE is a trademark of MITRE. This product uses data from the NVD API but is not endorsed or certified by the NVD. Severity, titles and advisory data from the GitHub Advisory Database (CC BY 4.0), Red Hat security data (CC BY 4.0) and the other sources linked on each entry. Entries may be summarised or re-formatted; the linked original is the authoritative record.