CVE-2026-76221

published 19 Aug 2026 · updated 8 Oct 2026

GitPython before 3.1.58 Config Injection via option-name

8.8HighCVSS 8.8EPSS 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.58.

GitPython before 3.1.58 contains a config-name injection vulnerability in the option-name validator that allows attackers to forge arbitrary git-config directives by injecting equals signs, hash symbols, and whitespace into option names. Attackers can inject malicious option names like 'sshCommand = touch /tmp/RCE #' to execute arbitrary commands via core.sshCommand or core.hooksPath on the next git operation.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
gitpython-developers<3.1.583.1.58

Timeline

Every event on this vulnerability

Embed

A live severity badge for an advisory, README or ticket

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