Description
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.
Severity (CVSS)
| Base score | 8.7 |
|---|---|
| Severity | High |
| Version | CVSS 4.0 |
| Vector | CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N |
| Provided by | CNA |
Weaknesses
- CWE-74 — Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')
Affected products
| Vendor | Product | Versions |
|---|---|---|
| gitpython-developers | GitPython | 0 to <3.1.58; 3.1.58 |
References
Generated from the official CVE List on 20 Aug 2026 07:06 UTC.