RCE in Gitpython-Developers Gitpython
CVE-2026-67323
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.
Vulnerability class: Command Injection (OS Command Injection)
Published · last modified .
CVSS v3 metric
CVSS v3 base score 8.4 (High). Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H.
EPSS exploit prediction
EPSS 0.013, 69.9th percentile (scored ); unchanged over 30 days. About EPSS.
Affected products
- Gitpython-Developers Gitpython — versions 0, 3.1.51
- Gitpython Project
Weakness classification (CWE)
References
- GitHub Security Advisory (GHSA-956x-8gvw-wg5v) (vendor-advisory, Exploit, Vendor Advisory)
- VulnCheck Advisory: GitPython before 3.1.51 Command Injection via unguarded Git options (Exploit, Third Party Advisory, third-party-advisory)