CVE-2026-78676
Critical · 9.8CVSS
9.8
EPSS
0.6%
Published
Aug 25, 2026
CISA due date
—
Cloudanix analysis
A bug in a widely used Python tool for working with Git repositories lets attackers run their own programs on affected computers simply by getting the tool to rewrite certain settings files.
- Exploitation
- Remote Unauthenticated
- Attacker needs
- None
- Complexity
- Low
- Impact
- Remote Code Execution
- Component
- Library
- Class
- Command Injection
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
GitPython before 3.1.59 unsafely re-serializes multi-line git-config values on write, converting dormant quoted entries into active directives such as core.hooksPath that enable arbitrary command execution via subsequent hook invocation.
Why it matters to the business
Systems depending on the vulnerable library risk full host compromise through unauthenticated remote code execution; rising exploit availability and an 82% EPSS increase over 30 days elevate urgency for any organization using Git operations in automation or pipelines.
How an attack unfolds
An attacker supplies a crafted git config containing embedded newlines that encode malicious directives; any subsequent unrelated write through GitPython re-serializes the file, activating the injected settings such as core.hooksPath, after which Git executes attacker-controlled hook code.
How to fix it
Upgrade GitPython to version 3.1.59 or later. For Red Hat satellite/iop deployments apply vmaas-rhel9:1789611998 and for satellite/iop-vulnerability apply engine-rhel9:1789637082 via RHSA-2026:68776.
How to confirm the fix worked
Confirm GitPython >= 3.1.59 is installed, then exercise config-write code paths while verifying that multi-line values remain correctly quoted and no unexpected directives such as core.hooksPath appear.
Typical attack path
- Supply a git config file containing newline-embedded directives
- Trigger any GitPython operation that writes configuration
- GitPython re-serializes the config, activating injected directives
- Git invokes the resulting hook and executes attacker code
How to detect it
Review application and Git logs for unexpected writes to git config files, search for sudden appearance of core.hooksPath entries, and inspect process execution traces for hooks triggered immediately after GitPython config operations.
- core.hooksPath
- git config.*write.*newline
- hook.*execution.*after.*config.*write
What your security team should do
- Immediately upgrade GitPython and all dependent Red Hat packages to the listed fixed versions
- Scan source and container images for the vulnerable library version
- Add runtime monitoring for unexpected git hook execution or core.hooksPath modifications
- Prioritize remediation on internet-exposed or CI/CD systems given the exploit maturity and EPSS trend
The record
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.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|
Related vulnerabilities
- CVE-2026-97350 Securepoint SSL VPN Client v2 on Windows contains vulnerabilities in the handling of… CWE-88
- CVE-2026-91909 Dell OpenManage Enterprise, versions prior to 4.8.0, contains an Improper Neutralization… CWE-88
- CVE-2026-62968 Dream Displays provides in-game screens for streaming videos in Minecraft. CWE-88
- CVE-2026-116252 pgAdmin 4's materialized view refresh passed the target database's name to psql's… CWE-88
- CVE-2026-111504 Dell OpenManage Enterprise, versions prior to 4.8.0, contains an Improper Neutralization… CWE-88
- CVE-2026-119282 Nx is a monorepo solution for TypeScript and polyglot codebases. CWE-88
- CVE-2026-90868 An OS command injection vulnerability in Progress Software WS_FTP Server versions prior… CWE-88
- CVE-2026-90865 An OS command injection vulnerability in Progress Software WS_FTP Server versions prior… CWE-88