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
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| gitpython-developers | <3.1.50 | 3.1.50 |
Timeline
Every event on this vulnerability
Embed
A live severity badge for an advisory, README or ticket