CVE-2026-67323
GitPython before 3.1.51 fails to guard against dangerous Git …
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.
What to do now
- Check your exposureFind out whether the affected software runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Set the orderSystems that can be reached from the internet come first, then the rest.
References
- github.com/gitpython-developers/GitPython/security/advisories/GHSA-956x-8gvw-wg5v
- www.vulncheck.com/advisories/gitpython-before-command-injection-via-unguarded-git-options
- github.com/gitpython-developers/GitPython/pull/2163
- github.com/gitpython-developers/GitPython/commit/701ce32fe5ba8cb622c0e0342a376a6beb47d738
- github.com/gitpython-developers/GitPython/releases/tag/3.1.51
- nvd.nist.gov/vuln/detail/CVE-2026-67323
- github.com/advisories/GHSA-956x-8gvw-wg5v
- nvd.nist.gov/vuln/detail/CVE-2026-67323
- cve.org/CVERecord?id=CVE-2026-67323
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.