{"id":"CVE-2026-76221","published":"2026-08-19T14:02:04Z","modified":"2026-10-08T15:25:02Z","title":"GitPython before 3.1.58 Config Injection via option-name","vendor":"gitpython-developers","product":"GitPython","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.8,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00774,"percentile":0.52186,"provenance":"source"},"cwes":[{"id":"CWE-74","name":"Improper Neutralization of Special Elements in Output Used by a Downstream Component"}],"references":[{"url":"https://github.com/gitpython-developers/GitPython/security/advisories/GHSA-jm78-9fvv-mhgr","tags":["vendor-advisory"]},{"url":"https://www.vulncheck.com/advisories/gitpython-before-config-injection-via-option-name","tags":["third-party-advisory"]}],"priority":{"score":16.6,"factors":[{"name":"EPSS percentile","points":10.44},{"name":"CVSS severity","points":6.16}]},"vendorSlug":"gitpython-developers","affectedVersions":[{"vendor":"gitpython-developers","product":"GitPython","versions":["< 3.1.58"]}],"fixedVersions":[{"vendor":"gitpython-developers","product":"GitPython","versions":["3.1.58"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2026-08-20T03:56:33.973931Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"gitpython","vulnerableRanges":["<3.1.58"],"patched":["3.1.58"],"from":["PYSEC-2026-3783"],"provenance":"source"}],"summary":{"text":"The GitPython library before version 3.1.58 has a config-name injection flaw in its option-name validator, which fails to reject equals signs, hash symbols, and whitespace in option names. An attacker who can supply option names to GitPython (with low privileges and no user interaction over the network, per the vector) can forge arbitrary git-config directives, such as core.sshCommand or core.hooksPath, to run commands on the next git operation.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T20:36:13Z"},"euvd":{"id":"EUVD-2026-62462","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-gitpython-developers-gitpython-cve-2026-69097","parents":[{"from":"CVE-2026-69097","to":"CVE-2026-76221","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["git/config.py"],"commits":["https://github.com/gitpython-developers/GitPython/commit/1ed1b924f4e2d2ee7bab296df77b978af21853f1","https://github.com/gitpython-developers/GitPython/commit/a495ccd3b547ccd60b2187215823b72a9c0188bf"],"basis":"shared function","functions":["_value_to_string_safe"]},{"kind":"similar","provenance":"machine","score":0.36,"basis":"same product + CWE + description similarity"}]}],"packageHistory":[{"cve":"CVE-2026-73621","published":"2026-08-13","fixed":"3.1.56","kev":false},{"cve":"CVE-2026-73619","published":"2026-08-13","fixed":"3.1.57","kev":false},{"cve":"CVE-2026-73620","published":"2026-08-13","fixed":"3.1.57","kev":false,"link":{"from":"CVE-2026-73620","to":"CVE-2026-76221","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:gitpython","fromFixed":"3.1.57","toFixed":"3.1.58","daysApart":6}]}},{"cve":"CVE-2026-76221","published":"2026-08-19","fixed":"3.1.58","kev":false},{"cve":"CVE-2026-87817","published":"2026-09-09","fixed":"3.1.60","kev":false,"link":{"from":"CVE-2026-76221","to":"CVE-2026-87817","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:gitpython","fromFixed":"3.1.58","toFixed":"3.1.60","daysApart":21}]}}],"package":"PyPI:gitpython"}}