Quick answers
- Is This vulnerability exploited in the wild?
- No. Junglewise Threat Intelligence has no report of This vulnerability being exploited in the wild.
- How severe is This vulnerability?
- High severity, with a CVSS score of 8.4, published 1 August 2026.
- Which products and versions are affected?
- Gitpython Project Gitpython <= 3.1.50.
- Is there a fix for This vulnerability?
- A patch was published on 2026-07-12: Fix released in GitPython 3.1.51 Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
- How is This vulnerability attacked?
- It is attacked with local access, in a software library.
- Am I affected?
- Check whether you run Gitpython Project Gitpython at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.
Technical details
GitPython constructs Git command arguments dynamically from caller-supplied keyword arguments without properly sanitizing them. In Repo.archive() and git.ls_remote(), dangerous Git options like --exec and --upload-pack are transformed from kwargs and injected before the -- argument separator, enabling command injection vectors (e.g., --exec to specify an arbitrary binary, --remote to spawn upload-archive helper). In Repo.iter_commits() and Repo.blame(), revision arguments are passed before the -- separator without validation for leading dashes, allowing options like --output=<path> to cause Git to open and truncate arbitrary files before the revision is even validated. The vulnerability only affects applications that directly pass attacker-controlled dictionaries or user input as method arguments. The fix is available in GitPython 3.1.51 and later.
Affected products
- GitPython GitPython <= 3.1.50
Timeline
- 2026-07-12: disclosed: Original advisory GHSA-956x-8gvw-wg5v published
- 2026-08-01: disclosed: Duplicate advisory GHSA-4vpg-pfj8-m33q published; CVE-2026-67323 assigned
- 2026-07-12: patched: Fix released in GitPython 3.1.51
- 2026-09-08: other: GHSA-4vpg-pfj8-m33q withdrawn as duplicate of GHSA-956x-8gvw-wg5v