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.
References
| Link | Resource |
|---|---|
| https://github.com/gitpython-developers/GitPython/security/advisories/GHSA-284h-m62q-gf8w | Exploit Vendor Advisory Mitigation |
| https://www.vulncheck.com/advisories/gitpython-before-remote-code-execution-via-config-injection | Third Party Advisory |
Configurations
History
No history.
Information
Published : 2026-08-25 02:16
Updated : 2026-09-02 19:13
NVD link : CVE-2026-78676
Mitre link : CVE-2026-78676
CVE.ORG link : CVE-2026-78676
JSON object : View
Products Affected
gitpython_project
- gitpython
CWE
CWE-88
Improper Neutralization of Argument Delimiters in a Command ('Argument Injection')
