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.
References
| Link | Resource |
|---|---|
| https://github.com/gitpython-developers/GitPython/security/advisories/GHSA-mv93-w799-cj2w | Exploit Vendor Advisory |
| https://www.vulncheck.com/advisories/gitpython-before-newline-injection-via-config-writer-section | Third Party Advisory |
| https://github.com/gitpython-developers/GitPython/security/advisories/GHSA-mv93-w799-cj2w | Exploit Vendor Advisory |
Configurations
History
23 Oct 2026, 23:10
| Type | Values Removed | Values Added |
|---|---|---|
| Summary |
|
16 Sep 2026, 20:45
| Type | Values Removed | Values Added |
|---|---|---|
| References | () https://github.com/gitpython-developers/GitPython/security/advisories/GHSA-mv93-w799-cj2w - Exploit, Vendor Advisory | |
| References | () https://www.vulncheck.com/advisories/gitpython-before-newline-injection-via-config-writer-section - Third Party Advisory | |
| CPE | cpe:2.3:a:gitpython_project:gitpython:*:*:*:*:*:python:*:* | |
| First Time |
Gitpython Project gitpython
Gitpython Project |
Information
Published : 2026-08-01 13:17
Updated : 2026-10-23 23:10
NVD link : CVE-2026-67326
Mitre link : CVE-2026-67326
CVE.ORG link : CVE-2026-67326
JSON object : View
Products Affected
gitpython_project
- gitpython
CWE
CWE-20
Improper Input Validation
