CVE-2026-78676: Improper Neutralization of Argument Delimiters in a Command ('Argument Injection') in gitpython-developers GitPython
GitPython versions before 3.1.59 contain a critical vulnerability where multi-line git-config values are improperly re-serialized during write operations. This flaw can corrupt dormant quoted values into active git directives, such as core.hooksPath, allowing attackers to inject arbitrary commands. Exploitation can lead to arbitrary code execution via git hook invocation.
AI Analysis
Technical Summary
GitPython prior to version 3.1.59 fails to safely handle multi-line git-config values when writing configuration files. Specifically, it improperly neutralizes argument delimiters, causing dormant quoted values to be transformed into active git directives. Attackers can craft malicious config files embedding newlines that become live directives after any unrelated config write operation by GitPython. This enables arbitrary code execution through the invocation of git hooks, representing an argument injection vulnerability.
Potential Impact
Successful exploitation allows an unauthenticated attacker to execute arbitrary code on the system running GitPython by injecting malicious git directives through crafted configuration files. This can lead to full system compromise without requiring user interaction or privileges.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, avoid using untrusted git configuration files with GitPython and monitor for updates from the gitpython-developers project regarding patches or mitigations.
CVE-2026-78676: Improper Neutralization of Argument Delimiters in a Command ('Argument Injection') in gitpython-developers GitPython
Description
GitPython versions before 3.1.59 contain a critical vulnerability where multi-line git-config values are improperly re-serialized during write operations. This flaw can corrupt dormant quoted values into active git directives, such as core.hooksPath, allowing attackers to inject arbitrary commands. Exploitation can lead to arbitrary code execution via git hook invocation.
CVSS v4.0
Score 9.3critical
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
GitPython prior to version 3.1.59 fails to safely handle multi-line git-config values when writing configuration files. Specifically, it improperly neutralizes argument delimiters, causing dormant quoted values to be transformed into active git directives. Attackers can craft malicious config files embedding newlines that become live directives after any unrelated config write operation by GitPython. This enables arbitrary code execution through the invocation of git hooks, representing an argument injection vulnerability.
Potential Impact
Successful exploitation allows an unauthenticated attacker to execute arbitrary code on the system running GitPython by injecting malicious git directives through crafted configuration files. This can lead to full system compromise without requiring user interaction or privileges.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, avoid using untrusted git configuration files with GitPython and monitor for updates from the gitpython-developers project regarding patches or mitigations.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- VulnCheck
- Date Reserved
- 2026-08-25T01:17:12.262Z
- Cvss Version
- 4.0
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a8cf57dacd9273b498428dc
Added to database: 08/25/2026, 01:53:01 UTC
Last enriched: 08/25/2026, 02:07:24 UTC
Last updated: 08/25/2026, 02:12:04 UTC
Views: 4
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.