{"id":"CVE-2026-76221","revision":"d13373dfb288469999bd8c9cf741a640","records":[{"revision":"d13373dfb288469999bd8c9cf741a640","observedAt":"2026-10-23T15:48:27.903+00:00","statement":{"source":"cve-program","id":"CVE-2026-76221","aliases":[],"title":"GitPython before 3.1.58 Config Injection via option-name","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.","state":0,"publishedAt":"2026-08-19T14:02:04.795+00:00","modifiedAt":"2026-10-08T15:25:02.346+00:00","affected":[{"ecosystem":"Vendor product","name":"GitPython","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"vendor\": \"gitpython-developers\",\n                    \"product\": \"GitPython\",\n                    \"defaultStatus\": \"unaffected\",\n                    \"packageURL\": \"pkg:pypi/gitpython\",\n                    \"versions\": [\n                        {\n                            \"version\": \"0\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"semver\",\n                            \"lessThan\": \"3.1.58\"\n                        },\n                        {\n                            \"version\": \"3.1.58\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"semver\"\n                        }\n                    ]\n                }"}],"metrics":[{"system":"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","score":8.7,"severity":"HIGH"},{"system":"CVSS 3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":8.8,"severity":"HIGH"}],"references":["https://github.com/gitpython-developers/GitPython/security/advisories/GHSA-jm78-9fvv-mhgr","https://www.vulncheck.com/advisories/gitpython-before-config-injection-via-option-name"],"sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2026-76221","license":"CVE Program Terms of Use","key":"cve-program:CVE-2026-76221","identifiers":["CVE-2026-76221"]},"retained":false,"historicalAffected":[]}],"coverage":[]}