Skip to main content
VulnerabilityPublished Updated

CVE-2026-67323: GitPython · Command Injection

Affects GitPythonSource CVE Database V5

0
Compare

Not known to be exploited · CVSS 8.6 High : upgrade to 3.1.51 soon.

Data as of 31 Oct 2026, 08:20 UTC

CVSS 4.0 base score
8.6High
How severe the flaw is on the 0–10 CVSS scale.
EPSS
1.2% chance of exploitation in 30 days – higher than 69% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
Patch
Available – fixed in 3.1.51
CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 1 Aug 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 30 Oct 2026.

What to do

Upgrade GitPython and gitpython to 3.1.51.

Affected software

ProductAffectedFixed in
gitpython-developersGitPythonAffected
  • <3.1.51
Fixed in
  • 3.1.51
PyPIgitpythonpkg:pypi/gitpythonOther threatsAffected
  • <3.1.51
Fixed in
  • 3.1.51

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

A fix is available in GitPython version 3.1.51. Users and developers should upgrade to version 3.1.51 or later to remediate these vulnerabilities. Until upgraded, applications should avoid passing untrusted or attacker-controlled arguments to the vulnerable methods (Repo.archive(), git.ls_remote(), Repo.iter_commits(), and Repo.blame).

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.

References

Community reviews

Loading reviews…