{"cve":"CVE-2026-76221","nvd":{"published":"2026-08-19T14:17:48.463","modified":"2026-10-24T13:10:00.147","status":"Analyzed","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_v4":{"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},"cvss_v3":{"version":"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},"cwes":["CWE-74"],"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"],"products":["gitpython_project:gitpython"],"source":"nvd","synced_at":"2026-10-24T16:53:35.584907681+00:00"},"epss":{"cve":"CVE-2026-76221","score":0.00774,"percentile":0.55473,"date":"2026-10-25"},"kev":null,"osv":[{"id":"GHSA-jm78-9fvv-mhgr","url":"https://osv.dev/vulnerability/GHSA-jm78-9fvv-mhgr","summary":"GitPython: git-config OPTION-name injection via =/#/whitespace bypasses name validator, enabling forged core.sshCommand/hooksPath (RCE)","modified":"2026-09-10T03:51:14.296736368Z","packages":[{"ecosystem":"PyPI","name":"gitpython","purl":"pkg:pypi/gitpython","ranges":["<3.1.58"],"fixed":["3.1.58"]}]},{"id":"PYSEC-2026-3783","url":"https://osv.dev/vulnerability/PYSEC-2026-3783","summary":"","modified":"2026-09-03T11:00:04.968236439Z","packages":[{"ecosystem":"PyPI","name":"gitpython","purl":"pkg:pypi/gitpython","ranges":["<3.1.58"],"fixed":["3.1.58"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}