CVE-2026-78676 PUBLISHED

GitPython before 3.1.59 Remote Code Execution via Config Injection

Assigner: VulnCheck
Reserved: 25.08.2026 Published: 25.08.2026 Updated: 25.08.2026

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.

Metrics

CVSS 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
CVSS Score: 9.3

Product Status

Vendor gitpython-developers
Product GitPython
Versions Default: unaffected
  • affected from 0 to 3.1.59 (excl.)
  • Version 3.1.59 is unaffected

Credits

  • Pig-Tail reporter

References

Problem Types

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