Machine-written summary
Summary written by Claude Haiku from the source advisory. Not reviewed by a person.
GitPython versions before 3.1.59 are vulnerable. When a GitConfigParser rewrites a config file, multi-line values that were read from disk are re-serialized unsafely, so a value crafted as a line break followed by a core.hooksPath directive can become a live config key. An attacker who can supply a config file the host application opens read-write (for example through a shipped .git directory or an include) can achieve code execution after an ordinary unrelated config write and a later hook-triggering git operation. Upgrade to GitPython 3.1.59 or later. The source describes no workaround.
Not analysed yet
We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.
Severity and exploitation
| Score | Rating | CVSS | Vector | Source |
|---|---|---|---|---|
| 9.3 | Critical | 4.0 | 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 | CNA (VulnCheck) |
- CISA KEV Not listed.
- EPSS 0.0056, the 46th percentile, on 11 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.
Timeline
- 31 Oct 2026, 14:38 UTC First seen by agentprime
- 31 Oct 2026, 14:38 UTC Confirmed by OSV
Sources
- GitHub Advisory Database: GHSA-284h-m62q-gf8w
- OSV: GHSA-284h-m62q-gf8w
- github.com/gitpython-developers/GitPython/security/advisories/GHSA-284h-m62q-gf8w
- nvd.nist.gov/vuln/detail/CVE-2026-78676
- github.com/gitpython-developers/GitPython
- github.com/pypa/advisory-database/tree/main/vulns/gitpython/PYSEC-2026-3786.yaml
- www.vulncheck.com/advisories/gitpython-before-remote-code-execution-via-config-injection