CVE-2026-67326 HIGH

CVE-2026-67326: GitPython before 3.1.50 Newline Injection via config_writer section

Vendor Gitpython-Developers
Product GitPython
Weakness CWE-20 · Input validation
Published August 1, 2026
Last update August 1, 2026

CVSS base score

7.3/10
Attack vector Local
Attack complexity High
Privileges required None
User interaction
Confidentiality
Integrity

CVSS vector

CVSS:4.0/AV:L/AC:H/AT:P/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

What the vulnerability does

01Description

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.

Key dates

02Disclosure timeline

August 1, 2026 CVE published

Related vulnerabilities

04Related CVE