CVE-2026-67326
Published:August 01, 2026
Updated:August 04, 2026
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.
Affected Packages
gitpython (CONDA):
Affected version(s) >=1.0.1 <3.1.50Fix Suggestion:
Update to version 3.1.50https://github.com/gitpython-developers/GitPython.git (GITHUB):
Affected version(s) >=winerr_show <3.1.50Fix Suggestion:
Update to version 3.1.50gitpython (PYTHON):
Affected version(s) >=0.1.7 <3.1.50Fix Suggestion:
Update to version 3.1.50Related Resources (6)
Do you need more information?
Contact UsCVSS v4
Base Score:
7.3
Attack Vector
LOCAL
Attack Complexity
HIGH
Attack Requirements
PRESENT
Privileges Required
NONE
User Interaction
PASSIVE
Vulnerable System Confidentiality
HIGH
Vulnerable System Integrity
HIGH
Vulnerable System Availability
HIGH
Subsequent System Confidentiality
NONE
Subsequent System Integrity
NONE
Subsequent System Availability
NONE
CVSS v3
Base Score:
7
Attack Vector
LOCAL
Attack Complexity
HIGH
Privileges Required
NONE
User Interaction
REQUIRED
Scope
UNCHANGED
Confidentiality
HIGH
Integrity
HIGH
Availability
HIGH
Weakness Type (CWE)
Improper Input Validation
EPSS
Base Score:
0.19