Skip to main content
EPSS 1.0%top 38%

CVE-2026-67323: Improper Neutralization of Special Elements used in a Command ('Command Injection') in gitpython-developers GitPython

0
High
Published: 08/01/2026 (08/01/2026, 12:22:18 UTC)
Source: CVE Database V5
Vendor/Project: gitpython-developers
Product: GitPython

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

Score 8.6high

Attack Vector
Local
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vuln. Confidentiality
High
Vuln. Integrity
High
Vuln. Availability
High
Subsq. Confidentiality
None
Subsq. Integrity
None
Subsq. Availability
None
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

Affected software

gitpython-developers

GitPython

Affected versions
>=0 <3.1.51
gitpython
pkg:pypi/gitpython
Affected versions
<3.1.51

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 08/16/2026, 13:42:24 UTC

Technical Analysis

CVE-2026-67323 describes multiple command injection and arbitrary file manipulation vulnerabilities in GitPython prior to version 3.1.51. The vulnerabilities arise because Repo.archive() and git.ls_remote() methods fail to properly sanitize Git options passed as keyword arguments, allowing injection of commands via options like --exec or --upload-pack. Furthermore, Repo.iter_commits() and Repo.blame() do not validate leading-dash revision arguments, permitting a revision argument such as --output=<path> to cause Git to open and truncate arbitrary files. Successful exploitation requires that an application using GitPython passes attacker-controlled input to these vulnerable methods.

Potential Impact

An attacker who can control arguments passed to the affected GitPython methods may execute arbitrary commands on the host system or cause arbitrary file truncation. This can lead to unauthorized code execution and potential data loss or corruption. The vulnerability is rated high severity with a CVSS 4.0 score of 8.6, reflecting the significant impact of remote command injection and file manipulation without requiring user interaction or privileges.

Mitigation Recommendations

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). No official patch or temporary fix details are provided beyond upgrading to the fixed version.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
VulnCheck
Date Reserved
2026-07-29T13:07:21.183Z
Cvss Version
4.0
State
PUBLISHED

Threat ID: 6a6deb26bf32cb7a34c1fc0d

Added to database: 08/01/2026, 12:48:38 UTC

Last enriched: 08/16/2026, 13:42:24 UTC

Last updated: 09/16/2026, 13:04:02 UTC

Views: 51

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses