CVE-2026-78676: Vulnerability in Gitpython Project Gitpython
Critical. 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.
PyPI, CWE-88, CWE-94
- Exploitation
- None confirmed
- Severity
- 9.8 of 10
- Attack likelihood
- 0.8 % in 30 days
- Fix
- Fixed version known
- Patch deadline
- No deadline set
Details
- Advisory ID
- GHSA-284h-m62q-gf8w
- EU ID
- EUVD-2026-65222
- Vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- Weakness
- CWE-88, CWE-94
- Published
- 25 Aug 2026
- Last change
- 12 Oct 2026
- Likelihood rank
- Higher than 52 % of all rated vulnerabilities
- Analysis status
- Analyzed
- Ecosystem
- PyPI
Affected products
Affected versions and the first fixed release
- Gitpython Project Gitpython Before 3.1.59. Fixed in 3.1.59
Affected packages
Vulnerable version ranges and fixed releases
- GitPython PyPI, Affected through 3.1.58. Fixed in 3.1.59
Advisories
Vendor and security advisories
- vulncheck.com/advisories/gitpython-before-remote-code-execution-via-config-injection
- github.com/pypa/advisory-database/tree/main/vulns/gitpython/PYSEC-2026-3786.yaml
Exploit code
Public exploits and proofs of concept, handle with care
Related
- Gitpython vulnerabilities Recent advisories, watch this product