CVE-2026-78676
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.
Scoring
- Severity
- CRITICAL
- CVSS base score
- 9.8
- CVSS 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
- EPSS probability
- 0.43%
- CWE
- CWE-88
- Published
- 2026-08-25
- Last modified
- 2026-08-26
Affected products
- gitpython-developers GitPython
- gitpython-developers GitPython
Weakness type
Related vulnerabilities
- CVE-2026-0304 — Cortex XDR Broker VM: Privilege Escalation Vulnerability
- CVE-2026-8044 — CWE-88: Improper Neutralization of Argument Delimiters in a Command ('Argument Injection')...
- CVE-2026-87818 — GitPython 3.1.59 Local File Content Oracle via --no-index
- CVE-2026-87794 — bestzip 2.2.6 and 3.0.2 Argument Injection via the Native Zip Destination
- CVE-2026-78635 — Improper Input Validation in the Okta Privileged Access SSH Client URL Handler Argument
- CVE-2026-71377 — Command Argument Injection Vulnerability in Cosminexus Component Container
- CVE-2026-84256 — An argument parsing issue in OpenVPN 2.1_rc10 through 2.6.22 and 2.7_alpha1 through 2.7.6 on...
- CVE-2026-86060 — SSH session privilege manipulation via a crafted username in Mikrotik RouterOS