CVE-2026-78676
GitPython before 3.1.59 Remote Code Execution via Config Injection
CVSS v3
9.8
CRITICAL
EPSS Score
0.8 %
exploit probability, as of 2026-10-17
CISA KEV
No
known exploited
Exploitation
—
SSVC status
Get an alert for each new CVE published for gitpython. Watch gitpython in CVE Watch Free account · no credit card
Affected and fixed versions
Packages from OSV.dev and products from the vendors' CSAF advisories.
version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.
Packages
- gitpythonPyPIall versions · fixed in 3.1.59
Vendor advisories
gitpython: GitPython before 3.1.59 Remote Code Execution via Config Injection
exploit-intelligence-tech-preview/vulnerability-analysis-rhel9 as a component of Exploit Intelligence · exploit-intelligence/vulnerability-analysis-rhel9 as a component of Exploit Intelligence · rhaiis/vllm-cpu-rhel9 as a component of Red Hat AI Inference Server
Red Hat Security Advisory: Red Hat Ansible Automation Platform 2.7 Container Release Update
Red Hat Security Advisory: Red Hat Ansible Automation Platform 2.5 Container Release Update
Red Hat Security Advisory: Red Hat Ansible Automation Platform 2.6 Container Release Update
Red Hat Security Advisory: Technical preview of the satellite/iop-vmaas-rhel9 container image
Red Hat Security Advisory: satellite/iop-vulnerability-engine-rhel9 container image available as a Technology Preview
2 more advisories
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.
Technical details
- CVSS v3 Vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- Published
- 2026-08-25
- Last Modified
- 2026-08-25
Frequently asked questions
What is CVE-2026-78676?
Is CVE-2026-78676 actively exploited?
What is the CVSS score for CVE-2026-78676?
Running gitpython? Hear about its next vulnerability
CVE Watch matches each new CVE to the vendors and products you list (vendor and product, not the version) and puts it in your alerts with its KEV and EPSS status.
Already have an account? Open CVE WatchNo credit card required · 50 free checks/month · Free API key
Go further
- Following what attackers exploit right now? The CISA KEV additions of the month, with their patch deadlines.
- Running this software? CVE Watch alerts you to new vulnerabilities in your products.
Related vulnerabilities
Same product first, then the same vendor advisory and the same publication week.
- CVE-2022-24439same product
- CVE-2026-67325same product
- CVE-2026-67323same product
- CVE-2023-41040same product
- CVE-2026-73625same product
- CVE-2026-76220same productGitPython before 3.1.58 Command Execution via split_single_char_options
- CVE-2026-73623same product
- CVE-2026-76218same productGitPython before 3.1.58 Remote Code Execution via Repo.init