{"schemaVersion":3,"id":"CVE-2026-78676","aliases":["GHSA-284h-m62q-gf8w","PYSEC-2026-3786","DEBIAN-CVE-2026-78676","CGA-5vmx-m8qc-h2c7"],"status":"published","duplicateOf":null,"title":null,"description":"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.","dates":{"published":"2026-08-25T01:30:33.754Z","modified":"2026-10-08T15:25:07.826Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":9.8,"severity":"critical","version":"3.1","versionLabel":"v3.1","source":"CVE.org","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","computed":false,"selection":"backend-summary"},"metrics":[{"version":"4.0","versionLabel":"v4.0","source":"CVE.org","score":9.3,"severity":"critical","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":9.8,"severity":"critical","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false},{"version":"4.0","versionLabel":"v4.0","source":"OSV · Pypi","score":9.3,"severity":"critical","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","exploitability":null,"impact":null,"computed":true},{"version":"4.0","versionLabel":"v4.0","source":"OSV · Debian","score":9.3,"severity":"critical","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","exploitability":null,"impact":null,"computed":true},{"version":"4.0","versionLabel":"v4.0","source":"NVD","score":9.3,"severity":"critical","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":9.8,"severity":"critical","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.00775,"percentile":0.55002,"severity":"low","asOf":"2026-10-19T00:00:00.000Z","change":{"pp":0.349,"baselineDate":"2026-09-19T00:00:00.000Z","baselineScore":0.00426},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.00426,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.00426,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.00426,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.00426,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.00426,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.00426,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00426,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00426,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00426,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00426,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00775,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00775,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00775,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00775,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00775,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00775,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00775,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00775,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00775,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00775,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00775,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00775,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00775,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00775,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00775,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00775,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00775,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00775,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00775,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00775,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00775,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00775,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00775,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00775,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00775,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00775,"percentile":0.55002}],"last30":[{"date":"2026-09-19T00:00:00.000Z","score":0.00426,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00426,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00426,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00426,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00426,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00775,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00775,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00775,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00775,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00775,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00775,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00775,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00775,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00775,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00775,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00775,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00775,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00775,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00775,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00775,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00775,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00775,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00775,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00775,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00775,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00775,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00775,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00775,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00775,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00775,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00775,"percentile":0.55002}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[{"id":"GITHUB_GITPYTHON-DEVELOPERS_GITPYTHON","name":"Gitpython","source":"github","url":"https://github.com/gitpython-developers/GitPython/security/advisories/GHSA-wfm5-v35h-vwf4","maturity":"poc","reliabilityScore":0.3,"verified":false,"type":null,"platforms":[],"requiresAuth":null,"exploitdb":null,"metasploit":null}],"exploitCount":1,"weaknesses":[{"id":"CWE-88","name":"Improper Neutralization of Argument Delimiters in a Command ('Argument Injection')","description":"The product constructs a string for a command to be executed by a separate component\nin another control sphere, but it does not properly delimit the\nintended arguments, options, or switches within that command string.","type":"weakness","status":"Draft","abstraction":"Base","likelihoodOfExploit":null,"url":"https://cwe.mitre.org/data/definitions/88.html"}],"affected":[{"vendor":"chainguard","product":"mlflow","name":"mlflow","label":"mlflow","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/mlflow","purlType":"apk","versions":[{"text":"< 3.16.0-r0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 3.16.0-r0","eol":null,"hubHref":null},{"vendor":"wolfi","product":"mlflow","name":"mlflow","label":"mlflow","ecosystem":"Wolfi","cpePart":null,"purl":"pkg:apk/wolfi/mlflow","purlType":"apk","versions":[{"text":"< 3.16.0-r0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 3.16.0-r0","eol":null,"hubHref":null},{"vendor":"debian","product":"python-git","name":"python-git","label":"python-git","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/python-git","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null},{"text":"< 3.1.61-1","noFixRecorded":false,"fixedIn":null}],"versionsText":"All versions (No fix recorded) | < 3.1.61-1","eol":null,"hubHref":null},{"vendor":"gitpython_project","product":"gitpython","name":"gitpython","label":"gitpython","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 3.1.59","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 3.1.59","eol":null,"hubHref":"/vendor/gitpython_project/gitpython"},{"vendor":"gitpython-developers","product":"gitpython","name":"GitPython","label":"gitpython","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 3.1.59","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 3.1.59","eol":null,"hubHref":"/vendor/gitpython-developers/gitpython"},{"vendor":"PyPI","product":"gitpython","name":"gitpython","label":"gitpython","ecosystem":"PyPI","cpePart":null,"purl":"pkg:pypi/gitpython","purlType":"pypi","versions":[{"text":"< 3.1.59","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 3.1.59","eol":null,"hubHref":null}],"affectedCount":6,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/gitpython-developers/GitPython/security/advisories/GHSA-284h-m62q-gf8w","label":"github.com/gitpython-developers/GitPython/security/advisories/GHSA-284h-m62q-gf8w","hostname":"github.com","tags":["Vendor Advisory","WEB","EVIDENCE","Exploit","Mitigation"]},{"url":"https://www.vulncheck.com/advisories/gitpython-before-remote-code-execution-via-config-injection","label":"www.vulncheck.com/advisories/gitpython-before-remote-code-execution-via-config-injection","hostname":"www.vulncheck.com","tags":["Third Party Advisory","WEB","Advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-78676","label":"nvd.nist.gov/vuln/detail/CVE-2026-78676","hostname":"nvd.nist.gov","tags":["Advisory"]},{"url":"https://github.com/gitpython-developers/GitPython","label":"github.com/gitpython-developers/GitPython","hostname":"github.com","tags":["PACKAGE"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/gitpython/PYSEC-2026-3786.yaml","label":"github.com/pypa/advisory-database/tree/main/vulns/gitpython/PYSEC-2026-3786.yaml","hostname":"github.com","tags":["WEB"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2026-78676","label":"security-tracker.debian.org/tracker/CVE-2026-78676","hostname":"security-tracker.debian.org","tags":["Advisory"]}],"lineage":{"upstream":[],"downstream":["OPENSUSE-SU-2026:11615-1","OPENSUSE-SU-2026:21874-1","SUSE-SU-2026:4072-1"],"duplicates":[],"related":["OPENSUSE-SU-2026:11615-1","OPENSUSE-SU-2026:21874-1","SUSE-SU-2026:4072-1"]},"timeline":[{"kind":"published","date":"2026-08-25T01:30:33.754Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2026-10-08T15:25:07.826Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":70,"level":"high","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-20T07:49:51.991Z","stale":false,"partial":false}}