CVE Catalog

CVE-2026-67323

HighCVSS 8.4
Published: Updated: Translated: NVD NIST

Exploitation Probability (EPSS)

Elevated risk
1.02%

60th percentile - higher than 60% of all known CVEs

Summary

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

Risk Assessment

An attacker can remotely execute arbitrary system commands or read/write arbitrary files, leading to full server compromise and data exfiltration.

Recommendation

Update GitPython to version 3.1.51 or later. Review your application to ensure it does not pass unsanitized user input to Repo.archive(), git.ls_remote(), Repo.iter_commits(), or Repo.blame().

Other vulnerabilities in GitPython

See all
Original NVD description (English source)

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 data from NVD (NIST) · CISA KEV · EPSS