Vulnerability · Published Aug 1, 2026 · Assigned by VulnCheck
CVE-2026-67323GitPython before 3.1.51 Command Injection via unguarded Git options
High 8.4
In plain English
A high-severity command injection in GitPython from gitpython-developers. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 1.3% (higher than 70% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
GitPython before 3.1.51 fails to guard against dangerous Git options passed as keyword arguments in Repo.archive() and git.ls_remote(), allowing command injection via options such as --exec/--upload-pack (leading to arbitrary command execution). Additionally, Repo.iter_commits() and Repo.blame() do not check for leading-dash revision arguments, so a revision like --output=<path> can cause Git to open and truncate an arbitrary file. Exploitation requires an application that passes attacker-controlled arguments to these methods.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | python-git | 3.1.30-1+deb12u3 | DEBIAN-CVE-2026-67323 |
| Debian:13 | python-git | 3.1.44-1+deb13u1 | DEBIAN-CVE-2026-67323 |
| Debian:14 | python-git | 3.1.61-1 | DEBIAN-CVE-2026-67323 |
| PyPI | gitpython | 3.1.51 | GHSA-956x-8gvw-wg5v |
| PyPI | gitpython | 3.1.51 | PYSEC-2026-3839 |
| Ubuntu:26.10 | python-git | no fix listed | UBUNTU-CVE-2026-67323 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| gitpython-developers | GitPython | 0 – before 3.1.51 |
Weakness: CWE-77 · Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
References
- GitHub Security Advisory (GHSA-956x-8gvw-wg5v) vendor-advisory
- VulnCheck Advisory: GitPython before 3.1.51 Command Injection via unguarded Git options third-party-advisory