CVE-2026-78676
Publication date 25 August 2026
Last updated 2 September 2026
Ubuntu priority
Cvss 3 Severity Score
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.
Severity score breakdown
CVSS version:
Base score
9.3 · Critical
Vector: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
Base score
9.8 · Critical
Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
References
Other references
- https://www.cve.org/CVERecord?id=CVE-2026-78676
- https://github.com/cveproject/cvelistv5/tree/main/cves/2026/78xxx/cve-2026-78676.json
- https://github.com/gitpython-developers/gitpython/security/advisories/ghsa-284h-m62q-gf8w
- https://www.vulncheck.com/advisories/gitpython-before-remote-code-execution-via-config-injection