CVE-2026-67326

HIGH CVSS 4.0: 7.3 EPSS 0.19%
Updated Aug 05, 2026
Gitpython-Developers
Parameter Value
CVSS 7.3 (HIGH)
Affected Versions before 3.1.50
Type CWE-20 (Improper Input Validation)
Vendor Gitpython-Developers
Public PoC No

GitPython before 3.1.50 fails to validate newline characters in the section parameter of config_writer(), allowing attackers to inject arbitrary section headers into .git/config. Attackers can inject newlines to create a forged [core] section with hooksPath pointing to attacker-controlled directories, achieving remote code execution when git hooks are triggered.

Attack Parameters

Attack Vector
Local
Requires local access
Attack Complexity
High
Difficult to exploit
Attack Requirements
Present
Additional conditions required
Privileges Required
None
No privileges needed
User Interaction
Passive
Minimal interaction

Impact Assessment

Confidentiality
High
Complete data leak
Integrity
High
Complete data modification
Availability
High
Complete denial of service

CVSS Vector v4.0

Vulnerable Products

gitpython-developers:gitpython