CVE-2026-78676Gitpython Project Gitpython
Critical 9.3 No auth needed
Follow: this CVE · Gitpython Project · Gitpython Project Gitpython We alert you by email or Slack (account required).
- Priority
- 71
- CVSS 4.0
- 9.3
- EPSS
- —
- Auth required
- No
- Published
- Aug 25, 2026
- Updated
- Oct 12, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-88
- SSVC (CISA)
- Exploitation: none · Automatable: yes · Technical impact: total
- 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
What happens
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.
What to do
- Apply the vendor's security update for Gitpython.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| PyPI | gitpython |
< 3.1.59 |
3.1.59 |
pip install "gitpython>=3.1.59" |
| PyPI | gitpython |
< 3.1.59 |
3.1.59 |
pip install "gitpython>=3.1.59" |
Per OSV / GitHub Advisories (GHSA-284h-m62q-gf8w, PYSEC-2026-3786). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| gitpython_project | gitpython | < 3.1.59 |
Official advisories
- Security update for python-GitPython · SUSE · openSUSE-SU-2026:21874-1 · Sep 18, 2026 Critical
- Security update for python-GitPython · SUSE · SUSE-SU-2026:4072-1 · Sep 8, 2026 Critical
- python313-GitPython-3.1.59-3.1 on GA media · SUSE · openSUSE-SU-2026:11615-1 · Aug 26, 2026 Critical
Vendor, CERT and distribution advisories that name this CVE. Original titles.
Official sources
References
Links published by the sources. Open them with care.
- github.com Exploit Vendor Advisory Mitigation
- www.vulncheck.com Third Party Advisory