{"id":"CVE-2026-78676","published":"2026-08-25T01:30:33Z","modified":"2026-10-08T15:25:07Z","title":"GitPython before 3.1.59 Remote Code Execution via Config Injection","vendor":"gitpython-developers","product":"GitPython","tier":"tail","description":{"text":"GitPython before 3.1.59 fails to safely re-serialize multi-line git-config values during write operations, corrupting dormant quoted values into injected directives like core.hooksPath. Attackers can craft config files with embedded newlines that become live git directives after any unrelated GitPython config write, enabling arbitrary code execution via hook invocation.","provenance":"source","from":"CVE.org"},"cvss":{"score":9.8,"severity":"CRITICAL","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00556,"percentile":0.47274,"provenance":"source"},"cwes":[{"id":"CWE-88","name":"Improper Neutralization of Argument Delimiters in a Command"}],"references":[{"url":"https://github.com/gitpython-developers/GitPython/security/advisories/GHSA-284h-m62q-gf8w","tags":["vendor-advisory"]},{"url":"https://www.vulncheck.com/advisories/gitpython-before-remote-code-execution-via-config-injection","tags":["third-party-advisory"]}],"priority":{"score":16.3,"factors":[{"name":"EPSS percentile","points":9.45},{"name":"CVSS severity","points":6.86}]},"vendorSlug":"gitpython-developers","affectedVersions":[{"vendor":"gitpython-developers","product":"GitPython","versions":["< 3.1.59"]}],"fixedVersions":[{"vendor":"gitpython-developers","product":"GitPython","versions":["3.1.59"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"total","timestamp":"2026-08-26T16:08:05.771259Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"GitPython","vulnerableRanges":["<3.1.59"],"patched":["3.1.59"],"from":["GHSA-284h-m62q-gf8w","PYSEC-2026-3786"],"provenance":"source"}],"summary":{"text":"The vulnerability in GitPython before 3.1.59 is that it fails to safely re-serialize multi-line git-config values during write operations, so dormant quoted values get corrupted into injected directives such as core.hooksPath. An attacker who can craft a config file containing embedded newlines can achieve arbitrary code execution through hook invocation once any unrelated GitPython config write occurs, without authentication or user interaction.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T20:33:55Z"},"euvd":{"id":"EUVD-2026-65222","exploited":false,"provenance":"source"}}