CVE-2026-67326

published 1 Aug 2026 · updated 14 Aug 2026

GitPython before 3.1.50 Newline Injection via config_writer section

7.0HighCVSS 7.0EPSS 0%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in 3.1.50.

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.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
gitpython-developers<3.1.503.1.50

Timeline

Every event on this vulnerability

Embed

A live severity badge for an advisory, README or ticket

CVE-2026-67326 severity on Zeptric[![CVE-2026-67326](https://zeptric.io/badge/cve/CVE-2026-67326.svg)](https://zeptric.io/cve/CVE-2026-67326)