Vulnerability 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 Score
HIGH
Related Weaknesses (CWE)
References
- https://github.com/gitpython-developers/GitPython/security/advisories/GHSA-mv93-
- https://www.vulncheck.com/advisories/gitpython-before-newline-injection-via-conf
- https://github.com/gitpython-developers/GitPython/security/advisories/GHSA-mv93-
FAQ
What is CVE-2026-67326?
CVE-2026-67326 is a vulnerability with a CVSS score of 7.0 (HIGH). 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 ...
How severe is CVE-2026-67326?
CVE-2026-67326 has been rated HIGH with a CVSS base score of 7.0/10. Review the CVSS metrics above for detailed severity breakdown.
Is there a patch for CVE-2026-67326?
Check the references section above for vendor advisories and patch information. Review vendor security bulletins for remediation guidance.