9.8Kritisch
CVE-2026-78676GitPython before 3.1.59 Remote Code Execution via Config Injection
Beschreibung
GitPython before 3.1.59 fails to safely re-serialize multi-line git-config values during write operations, corrupting dormant quoted values into injected directives like core.hooksPath. Attackers can craft config files with embedded newlines that become live git directives after any unrelated GitPython config write, enabling arbitrary code execution via hook invocation.
Schwachstellentyp (CWE):
CWE-88
Daten: CVE.org, NVD, CISA KEV, FIRST EPSS, Ubuntu. Wiedergegeben wie in der Quelle, auf Englisch.
Betroffene Produkte und Versionen
| Hersteller | Produkt | Versionen | |
|---|---|---|---|
| gitpython project | gitpython | < 3.1.59 | |
| gitpython-developers | GitPython | < 3.1.59, fixed 3.1.59 |
Referenzen und Patches
- GitHub Security Advisory (GHSA-284h-m62q-gf8w) vendor-advisoryExploitVendor AdvisoryMitigation
- VulnCheck Advisory: GitPython before 3.1.59 Remote Code Execution via Config Injection third-party-advisoryThird Party Advisory
CPE-Treffer (NVD) (1)
cpe:2.3:a:gitpython_project:gitpython:*:*:*:*:*:python:*:*< 3.1.59