CVE-2026-67323: Improper Neutralization of Special Elements used in a Command ('Command Injection') in gitpython-developers GitPython
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.
AI Analysis
Technical Summary
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.
CVE-2026-67323: Improper Neutralization of Special Elements used in a Command ('Command Injection') in gitpython-developers 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
Affected software
gitpython-developers
GitPython
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
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.
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 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
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
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.