CVE-2026-67323
HIGH 8.6CVSS 4.0GitPython: command injection via unguarded Git options in `Repo.archive()`, `git.ls_remote()`, and arbitrary file overwrite via `Repo.iter_commits()` / `Repo.blame()`
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.
- Published
- 1 Aug 2026
- Last modified
- 23 Oct 2026
- Assigned by
- disclosure@vulncheck.com
- NVD status
- Analyzed
- Weakness
- CWE-77CWE-88
- Also known as
- GHSA-956x-8gvw-wg5vPYSEC-2026-3839
- Sources
- NVDJSONOSV GHSA-956x-8gvw-wg5vJSONOSV PYSEC-2026-3839JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | disclosure@vulncheck.com (Secondary) | CVSS 4.0 | HIGH 8.6 | CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X |
| NVD | disclosure@vulncheck.com (Secondary) | CVSS 3.1 | HIGH 8.4 | CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | HIGH 8.4 | CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| OSV | PyPA | CVSS 3.1 | HIGH 8.4 | CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | gitpython_project | gitpythoncpe:2.3:a:gitpython_project:gitpython:*:*:*:*:*:python:*:* |
< 3.1.51 | 3.1.51 |
| OSV | PyPI | gitpython | < 3.1.51 | 3.1.51 |
References
- https://github.com/gitpython-developers/GitPython/security/advisories/GHSA-956x-8gvw-wg5v · Exploit, Vendor Advisory, WEB
- https://www.vulncheck.com/advisories/gitpython-before-command-injection-via-unguarded-git-options · Third Party Advisory, Exploit, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2026-67323 · ADVISORY
- https://github.com/gitpython-developers/GitPython/pull/2163 · WEB
- https://github.com/gitpython-developers/GitPython/commit/701ce32fe5ba8cb622c0e0342a376a6beb47d738 · WEB
- https://github.com/gitpython-developers/GitPython · PACKAGE
- https://github.com/gitpython-developers/GitPython/releases/tag/3.1.51 · WEB
- https://pypi.org/project/gitpython · PACKAGE
- https://github.com/advisories/GHSA-956x-8gvw-wg5v · ADVISORY
History
- 25 Nov 2026 21:04 UTC · NVD: first stored (published 1 Aug 2026)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 10 Sep 2026)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 21 Jul 2026)