CVE-2026-76219: Improper Neutralization of Argument Delimiters in a Command ('Argument Injection') in gitpython-developers GitPython
GitPython versions before 3.1.58 have a vulnerability in certain IndexFile methods that allows arbitrary file overwrite. This occurs because these methods append user-influenced treeish strings to git read-tree commands without proper validation or argument separation, enabling injection of the --index-output option. An attacker with limited privileges can overwrite files at writable paths with crafted git-index blobs, potentially destroying existing content.
AI Analysis
Technical Summary
CVE-2026-76219 describes an arbitrary file overwrite vulnerability in GitPython prior to version 3.1.58. The flaw exists in the IndexFile.from_tree, IndexFile.reset, and IndexFile.merge_tree methods, which append caller-controlled treeish strings directly to git read-tree commands without validating or separating arguments. This improper neutralization of argument delimiters allows an attacker to inject the --index-output option, causing git read-tree to overwrite arbitrary files with attacker-controlled git-index blobs. The vulnerability requires low attack complexity and no user interaction but does require some privileges (PR:L).
Potential Impact
Successful exploitation allows an attacker to overwrite arbitrary files on the filesystem at paths writable by the attacker, potentially destroying or altering critical files. This can lead to data loss or corruption. The vulnerability does not require user interaction and has a high impact on integrity and availability.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, avoid using vulnerable GitPython versions in untrusted environments or restrict input to the affected methods to trusted sources only.
CVE-2026-76219: Improper Neutralization of Argument Delimiters in a Command ('Argument Injection') in gitpython-developers GitPython
Description
GitPython versions before 3.1.58 have a vulnerability in certain IndexFile methods that allows arbitrary file overwrite. This occurs because these methods append user-influenced treeish strings to git read-tree commands without proper validation or argument separation, enabling injection of the --index-output option. An attacker with limited privileges can overwrite files at writable paths with crafted git-index blobs, potentially destroying existing content.
CVSS v4.0
Score 7.2high
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
CVE-2026-76219 describes an arbitrary file overwrite vulnerability in GitPython prior to version 3.1.58. The flaw exists in the IndexFile.from_tree, IndexFile.reset, and IndexFile.merge_tree methods, which append caller-controlled treeish strings directly to git read-tree commands without validating or separating arguments. This improper neutralization of argument delimiters allows an attacker to inject the --index-output option, causing git read-tree to overwrite arbitrary files with attacker-controlled git-index blobs. The vulnerability requires low attack complexity and no user interaction but does require some privileges (PR:L).
Potential Impact
Successful exploitation allows an attacker to overwrite arbitrary files on the filesystem at paths writable by the attacker, potentially destroying or altering critical files. This can lead to data loss or corruption. The vulnerability does not require user interaction and has a high impact on integrity and availability.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, avoid using vulnerable GitPython versions in untrusted environments or restrict input to the affected methods to trusted sources only.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- VulnCheck
- Date Reserved
- 2026-08-19T11:35:13.689Z
- Cvss Version
- 4.0
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a85bc7aacd9273b492f49ba
Added to database: 08/19/2026, 14:23:54 UTC
Last enriched: 08/19/2026, 14:53:36 UTC
Last updated: 08/19/2026, 17:55:42 UTC
Views: 3
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.