Vulnerability Explorer›CVE-2026-78676
VULNERABILITY
CVE-2026-78676
Common Vulnerabilities and Exposures record
CRITICAL
Summary
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.
Risk
- CVSS
- 9.3
- Severity
- 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Timeline
- Published
- Aug 25, 2026 02:16
- Modified
- Oct 12, 2026 15:10
- Last observed
- Oct 13, 2026 17:03
CWE
Affected product identifiers
cpe:2.3:a:gitpython_project:gitpython:*:*:*:*:*:python:*:*