CVE-2026-67323
Vulnerability Summary
Timeline
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.
CVSS Metrics
- v4.0•HIGH•Score: 8.6CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
- v4.0•HIGH•Score: 8.6CVSS: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
- v3.1•HIGH•Score: 8.4CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS Trends
Current EPSS score: 1.04%• Percentile: 62%
Techniques & Countermeasures
- CWE-77•Improper Neutralization of Special Elements used in a Command ('Command Injection')
The product constructs all or part of a command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended command when it is sent to a downstream component.
Affected Systems
- chainguard•checkov
< 3.3.8-r1
- chainguard•mlflow
< 3.14.0-r2 | < 3.16.0-r0
- wolfi•checkov
< 3.3.8-r1
- wolfi•mlflow
< 3.14.0-r2 | < 3.16.0-r0
- debian•python-git
all | all | all | all | < 3.1.61-1
- ubuntu•python-git
all
- gitpython_project•gitpython
< 3.1.51
- gitpython-developers•gitpython
< 3.1.51
- PyPI•gitpython
< 3.1.51
References (13)
- https://github.com/gitpython-developers/GitPython/security/advisories/GHSA-956x-8gvw-wg5v
- https://www.vulncheck.com/advisories/gitpython-before-command-injection-via-unguarded-git-options
- https://github.com/gitpython-developers/GitPython/pull/2163
- https://github.com/gitpython-developers/GitPython/commit/701ce32fe5ba8cb622c0e0342a376a6beb47d738
- https://github.com/gitpython-developers/GitPython
- https://github.com/gitpython-developers/GitPython/releases/tag/3.1.51
- https://ubuntu.com/security/CVE-2026-67323
- https://www.cve.org/CVERecord?id=CVE-2026-67323
- https://security-tracker.debian.org/tracker/CVE-2026-67323
- https://nvd.nist.gov/vuln/detail/CVE-2026-67323
- https://pypi.org/project/gitpython
- https://github.com/advisories/GHSA-956x-8gvw-wg5v
- https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/67xxx/CVE-2026-67323.json