Critical severity9.8NVD Advisory· Published Aug 25, 2026· Updated Sep 2, 2026
CVE-2026-78676
CVE-2026-78676
Description
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.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
GitPythonPyPI | < 3.1.59 | 3.1.59 |
Affected products
3- osv-coords2 versionspkg:rpm/opensuse/python-GitPython&distro=openSUSE%20Tumbleweedpkg:rpm/opensuse/python-GitPython&distro=openSUSE%20Leap%2016.0
< 3.1.59-3.1+ 1 more
- (no CPE)range: < 3.1.59-3.1
- (no CPE)range: < 3.1.44-160000.4.1
- Range: <3.1.59
Patches
Vulnerability mechanics
References
5- github.com/gitpython-developers/GitPython/security/advisories/GHSA-284h-m62q-gf8wnvdExploitVendor AdvisoryMitigationWEB
- github.com/advisories/GHSA-284h-m62q-gf8wghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2026-78676ghsaADVISORY
- www.vulncheck.com/advisories/gitpython-before-remote-code-execution-via-config-injectionnvdThird Party AdvisoryWEB
- github.com/pypa/advisory-database/tree/main/vulns/gitpython/PYSEC-2026-3786.yamlghsaWEB
News mentions
1- Gitpython: Five Vulnerabilities Including Critical Flaw Disclosed TogetherVypr Intelligence · Aug 25, 2026