Improper input validation in Gitpython-Developers Gitpython
CVE-2026-67326
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.
Vulnerability class: Drupalgeddon 2 (CVE-2018-7600)
Published · last modified .
CVSS v3 metric
CVSS v3 base score 7.0 (High). Vector: CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H.
EPSS exploit prediction
EPSS 0.003, 17.1th percentile (scored ); unchanged over 30 days. About EPSS.
Affected products
- Gitpython-Developers Gitpython — versions 0, 3.1.50
- Gitpython Project
Weakness classification (CWE)
References
- GitHub Security Advisory (GHSA-mv93-w799-cj2w) (vendor-advisory, Exploit, Vendor Advisory)
- VulnCheck Advisory: GitPython before 3.1.50 Newline Injection via config_writer section (Third Party Advisory, third-party-advisory)