High severity8.4OSV Advisory· Published Aug 1, 2026· Updated Sep 3, 2026
CVE-2026-67323
CVE-2026-67323
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= can cause Git to open and truncate an arbitrary file. Exploitation requires an application that passes attacker-controlled arguments to these methods.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected products
23.1.50, 3.1.49, 3.1.48, …+ 1 more
- (no CPE)range: 3.1.50, 3.1.49, 3.1.48, …
- (no CPE)range: <3.1.51
Patches
Vulnerability mechanics
References
7- github.com/gitpython-developers/GitPython/security/advisories/GHSA-956x-8gvw-wg5vnvdExploitVendor Advisory
- github.com/advisories/GHSA-956x-8gvw-wg5vghsaADVISORY
- www.vulncheck.com/advisories/gitpython-before-command-injection-via-unguarded-git-optionsnvdThird Party AdvisoryExploit
- github.com/gitpython-developers/GitPython/commit/701ce32fe5ba8cb622c0e0342a376a6beb47d738ghsa
- github.com/gitpython-developers/GitPython/pull/2163ghsa
- github.com/gitpython-developers/GitPython/releases/tag/3.1.51ghsa
- nvd.nist.gov/vuln/detail/CVE-2026-67323ghsa
News mentions
1- GitPython: Five Vulnerabilities Disclosed Together, Ranging From Command Injection to Env Var LeaksVypr Intelligence · Aug 2, 2026