Vulnerability 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.
CVSS Score
HIGH
Affected Products
| Vendor | Product | Versions |
|---|---|---|
| Gitpython Project | Gitpython | < 3.1.58 |
Related Weaknesses (CWE)
References
- https://github.com/gitpython-developers/GitPython/security/advisories/GHSA-jm78-ExploitVendor Advisory
- https://www.vulncheck.com/advisories/gitpython-before-config-injection-via-optioThird Party Advisory
FAQ
What is CVE-2026-76221?
CVE-2026-76221 is a vulnerability with a CVSS score of 8.8 (HIGH). 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 symbo...
How severe is CVE-2026-76221?
CVE-2026-76221 has been rated HIGH with a CVSS base score of 8.8/10. Review the CVSS metrics above for detailed severity breakdown.
Is there a patch for CVE-2026-76221?
Check the references section above for vendor advisories and patch information. Affected products include: Gitpython Project Gitpython.