Arbitrary Code Execution Vulnerability in GitPython by GitHub
CVE-2026-67326

7.3HIGH

Key Information:

Status
Vendor
CVE Published:
1 August 2026

What is CVE-2026-67326?

A security vulnerability in GitPython versions prior to 3.1.50 enables attackers to exploit newline character handling within the section parameter of the config_writer() function. This flaw allows unauthorized individuals to inject arbitrary section headers into the .git/config file, leading to the creation of a fake [core] section. If this forged section includes a hooksPath pointing to directories controlled by the attackers, it can result in remote code execution when git hooks are subsequently triggered.

Affected Version(s)

GitPython 0 < 3.1.50

GitPython 3.1.50

References

CVSS V4

Score:
7.3
Severity:
HIGH
Confidentiality:
High
Integrity:
High
Availability:
High
Attack Vector:
Local
Attack Complexity:
High
Attack Required:
Physical
Privileges Required:
Undefined
User Interaction:
Unknown

Timeline

  • Vulnerability published

  • Vulnerability Reserved

Credit

aslein1413-sys
.