Remote code execution via config re-serialization
Published Aug 25, 2026 · Updated Aug 26, 2026
Config injection in GitPython before 3.1.59 allows remote attackers to execute arbitrary code through an attacker-crafted git-config file. GitConfigParser._read() decodes escaped newlines into in-memory values, while write_section() emits those values as bare indented lines that Git reparses as directives. Exploitation requires a read-write parser to load the crafted value, perform an unrelated config write, and later run a hook-triggering Git operation.
Summary
What happened
Config injection in GitPython before 3.1.59 allows remote attackers to execute arbitrary code through an attacker-crafted git-config file. GitConfigParser._read() decodes escaped newlines into in-memory values, while write_section() emits those values as bare indented lines that Git reparses as directives. Exploitation requires a read-write parser to load the crafted value, perform an unrelated config write, and later run a hook-triggering Git operation.
The record
- CVE
- CVE-2026-78676
- Published
- Aug 25, 2026
- Updated
- Aug 26, 2026
- Vendor
- GitPython Developers
- Product
- GitPython
- Classifications
- CWE-88, CWE-94, T1203
- Attack vector
- network
- Privileges
- unauthenticated
Timeline
How it unfolded
- Aug 25, 2026CVE publishedPublication date reported by the CVE source.
- Aug 26, 2026Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=0 <3.1.59
What conditions does exploitation require?
What is affected?
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Weakness, pattern, technique
Public exploit references
- GHSA-284h-m62q-gf8w end-to-end proof of conceptproof of concept · demonstrated
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo