gitpython
Affected
- introduced
0, fixed3.1.59(ecosystem)
Fixed versions
3.1.59
Fix
- Fixed version
3.1.59pip install --upgrade gitpython==3.1.59
Advisory
Also known as: CVE-2026-78676, GHSA-284h-m62q-gf8w
The record has no 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.
Not rated by the source.
0, fixed 3.1.59 (ecosystem)3.1.59
3.1.59pip install --upgrade gitpython==3.1.59Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: PyPA Advisory Database · CC BY 4.0