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.
Configurations

Configuration 1 (hide)

cpe:2.3:a:gitpython_project:gitpython:*:*:*:*:*:python:*:*

History

23 Oct 2026, 23:10

Type Values Removed Values Added
Summary
  • (es) GitPython anterior a la versión 3.1.51 no protege contra opciones peligrosas de Git pasadas como argumentos de palabra clave en Repo.archive() y git.ls_remote(), permitiendo la inyección de comandos a través de opciones como --exec/--upload-pack (lo que lleva a la ejecución arbitraria de comandos). Además, Repo.iter_commits() y Repo.blame() no verifican los argumentos de revisión que comienzan con un guion, por lo que una revisión como --output=[path] puede hacer que Git abra y trunque un archivo arbitrario. La explotación requiere una aplicación que pase argumentos controlados por el atacante a estos métodos.

03 Sep 2026, 16:11

Type Values Removed Values Added
First Time Gitpython Project gitpython
Gitpython Project
CPE cpe:2.3:a:gitpython_project:gitpython:*:*:*:*:*:python:*:*
References () https://github.com/gitpython-developers/GitPython/security/advisories/GHSA-956x-8gvw-wg5v - () https://github.com/gitpython-developers/GitPython/security/advisories/GHSA-956x-8gvw-wg5v - Exploit, Vendor Advisory
References () https://www.vulncheck.com/advisories/gitpython-before-command-injection-via-unguarded-git-options - () https://www.vulncheck.com/advisories/gitpython-before-command-injection-via-unguarded-git-options - Third Party Advisory, Exploit

03 Aug 2026, 20:17

Type Values Removed Values Added
References () https://github.com/gitpython-developers/GitPython/security/advisories/GHSA-956x-8gvw-wg5v - () https://github.com/gitpython-developers/GitPython/security/advisories/GHSA-956x-8gvw-wg5v -

01 Aug 2026, 13:17

Type Values Removed Values Added
New CVE

Information

Published : 2026-08-01 13:17

Updated : 2026-10-23 23:10


NVD link : CVE-2026-67323

Mitre link : CVE-2026-67323

CVE.ORG link : CVE-2026-67323


JSON object : View

Products Affected

gitpython_project

  • gitpython
CWE
CWE-77

Improper Neutralization of Special Elements used in a Command ('Command Injection')