High severity · published Aug 1, 2026
CVE-2026-67326
GitPython before 3.1.50 Newline Injection via config_writer section
7.8
CVSS
0.3%
EPSS
No
On KEV
Description
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.
CVSS vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Attack vector
Local
Complexity
Low
Privileges
Low
User interaction
None
Confidentiality
High
Integrity
High
Availability
High
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)0.3% · higher than 17% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
GI
GitPython · gitpython-developers
before 3.1.50 · source: vendor, NVD
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2026-67326
CVE.org
https://www.cve.org/CVERecord?id=CVE-2026-67326
Exploit
https://github.com/gitpython-developers/GitPython/security/advisories/GHSA-mv93-w799-cj2w
Third Party Advisory
https://www.vulncheck.com/advisories/gitpython-before-newline-injection-via-config-writer-section
More from GitPython
9.8
CVE-2026-78676
GitPython before 3.1.59 Remote Code Execution via Config Injection
9.8
CVE-2026-67324
GitPython 3.1.50 Authentication Bypass via Joined Short Options
9.8
CVE-2026-42284
GitPython: Unsafe option check validates multi_options before shlex.split transforms it
8.8
CVE-2026-87817
GitPython before 3.1.60 Remote Code Execution via Git Directory Impersonation
8.8
CVE-2026-76221
GitPython before 3.1.58 Config Injection via option-name
