CVE-2026-78676

published 25 Aug 2026 · updated 8 Oct 2026

GitPython before 3.1.59 Remote Code Execution via Config Injection

9.8CriticalCVSS 9.8EPSS 1%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 1%. Fixed in 3.1.59.

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.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
gitpython-developers<3.1.593.1.59

Timeline

Every event on this vulnerability

Embed

A live severity badge for an advisory, README or ticket

CVE-2026-78676 severity on Zeptric[![CVE-2026-78676](https://zeptric.io/badge/cve/CVE-2026-78676.svg)](https://zeptric.io/cve/CVE-2026-78676)