CVE-2026-78676
GitPython before 3.1.59 Remote Code Execution via Config Injection
CRITICAL 9.3EPSS 0.8%
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.
- Affected
- gitpython-developers · GitPython
- CVSS v4.0 VULNCHECK
- 9.3 CRITICAL
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 - CVSS v4.0 GitHub
- 9.3 CRITICAL
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 - CVSS v3.1 VULNCHECK
- 9.8 CRITICAL
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - EPSS
- 0.78% chance of exploitation in the next 30 days, 55th percentile
- Published
- 2026-08-25
- Updated
- 2026-10-08
Proof-of-concept exploits (1)
Security advisories
- gitpython-developers/GitPython/security/advisories/GHSA-284h-m62q-gf8w
- https://www.vulncheck.com/advisories/gitpython-before-remote-code-execution-via-config-in…