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.
Configurations

Configuration 1 (hide)

cpe:2.3:a:gitpython_project:gitpython:*:*:*:*:*:python:*:*

History

No history.

Information

Published : 2026-08-25 02:16

Updated : 2026-09-02 19:13


NVD link : CVE-2026-78676

Mitre link : CVE-2026-78676

CVE.ORG link : CVE-2026-78676


JSON object : View

Products Affected

gitpython_project

  • gitpython
CWE
CWE-88

Improper Neutralization of Argument Delimiters in a Command ('Argument Injection')