CVE-2026-42284
GitPython: GitPython: Arbitrary code execution via improper validation of clone options
Einstufung nach Quelle
Trivys eigenes Label ist CRITICAL. Kritisch laut NVD. Niedriger laut GHSA (hoch), Red Hat (hoch), Ubuntu (mittel).
Beschreibung
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.
Betroffene Pakete und behobene Versionen
| Quelle | Paket | Behoben in |
|---|---|---|
| alpine 3.23 | py3-gitpython | 3.1.49-r0 |
| alpine 3.24 | py3-gitpython | 3.1.49-r0 |
| alpine edge | py3-gitpython | 3.1.49-r0 |
| chainguard | awx, checkov, datahub-ingestion-fips und 4 weitere | 24.6.1-r35 und 6 weitere |
| debian 11 | python-git | kein Fix angegeben |
| debian 12 | python-git | kein Fix angegeben |
| debian 13 | python-git | kein Fix angegeben |
| debian 14 | python-git | 3.1.50-1 |
| echo | python-git | 3.1.47 |
| echo pip::Echo OSV | gitpython | 3.1.47, 3.1.47 |
| minimos | mageai, py3-gitpython | 0.9.80-r0 und 1 weitere |
| pip::GitHub Security Advisory pip | gitpython | 3.1.47 |
Alle 37 Einträge aus 22 Quellen zeigen
| Quelle | Paket | Behoben in |
|---|---|---|
| alpine 3.23 | py3-gitpython | 3.1.49-r0 |
| alpine 3.24 | py3-gitpython | 3.1.49-r0 |
| alpine edge | py3-gitpython | 3.1.49-r0 |
| chainguard | awx | 24.6.1-r35 |
| chainguard | checkov | 3.2.525-r0 |
| chainguard | datahub-ingestion-fips | 1.5.0.1-r2 |
| chainguard | mlflow | 3.16.0-r0 |
| chainguard | mlflow-fips | 3.11.1-r0 |
| chainguard | opal | 0.9.5-r0 |
| chainguard | open-webui | 0.9.2-r0 |
| debian 11 | python-git | kein Fix angegeben |
| debian 12 | python-git | kein Fix angegeben |
| debian 13 | python-git | kein Fix angegeben |
| debian 14 | python-git | 3.1.50-1 |
| echo | python-git | 3.1.47 |
| echo pip::Echo OSV | gitpython | 3.1.47, 3.1.47 |
| minimos | mageai | 0.9.80-r0 |
| minimos | py3-gitpython | 3.1.47-r0 |
| pip::GitHub Security Advisory pip | gitpython | 3.1.47 |
| rapidfort debian 12 | python-git | 0:3.1.50-1 |
| rapidfort debian 13 | python-git | 0:3.1.50-1 |
| Red Hat | python-gitpython | kein Fix angegeben |
| Red Hat | python3.12-gitpython | kein Fix angegeben |
| Red Hat | satellite-capsule:el8::python-gitpython | kein Fix angegeben |
| Red Hat | satellite/iop-vmaas-rhel9 | kein Fix angegeben |
| Red Hat | satellite/iop-vulnerability-engine-rhel9 | kein Fix angegeben |
| Red Hat | satellite:el8::python-gitpython | kein Fix angegeben |
| seal pip::Seal Security Database | gitpython | 3.1.37+sp999 |
| seal pip::Seal Security Database | seal-gitpython | 3.1.37+sp999 |
| ubuntu 20.04-ESM | python-git | 3.0.7-1ubuntu0.1~esm4 |
| ubuntu 22.04 | python-git | kein Fix angegeben |
| ubuntu 24.04 | python-git | kein Fix angegeben |
| ubuntu 26.04 | python-git | kein Fix angegeben |
| ubuntu 26.10 | python-git | kein Fix angegeben |
| wolfi | checkov | 3.2.525-r0 |
| wolfi | mlflow | 3.16.0-r0 |
| wolfi | open-webui | 0.9.2-r0 |
Referenzen
- https://access.redhat.com/security/cve/CVE-2026-42284
- https://advisory.echohq.com/cve/CVE-2026-42284
- https://github.com/advisories/GHSA-x2qx-6953-8485
- https://github.com/gitpython-developers/GitPython
- https://github.com/gitpython-developers/GitPython/releases/tag/3.1.47
- https://github.com/gitpython-developers/GitPython/security/advisories/GHSA-x2qx-6953-8485
- https://nvd.nist.gov/vuln/detail/CVE-2026-42284
- https://ubuntu.com/security/notices/USN-8303-1