CVE-2026-73623: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') in gitpython-developers GitPython
GitPython versions before 3.1.54 have an OS command injection vulnerability due to an incomplete denylist in the unsafe_git_clone_options. This flaw allows attackers to use the --template option to specify a directory with malicious post-checkout hooks, which execute during git clone operations. This can lead to arbitrary command execution on the affected system.
AI Analysis
Technical Summary
CVE-2026-73623 describes an OS command injection vulnerability in GitPython prior to version 3.1.54. The vulnerability arises because the denylist in unsafe_git_clone_options does not include the --template option. Attackers can exploit this by supplying a --template argument that points to a directory containing malicious post-checkout hooks. When GitPython clones the repository, these hooks execute, resulting in arbitrary command execution.
Potential Impact
Successful exploitation allows an attacker with the ability to influence clone operations to execute arbitrary commands on the host system with the privileges of the GitPython process. This can lead to system compromise or unauthorized actions.
Mitigation Recommendations
No official patch or remediation level has been confirmed yet. Users should monitor the vendor advisory for updates and apply the official fix once available. Until then, avoid using untrusted input for clone options, especially the --template parameter.
CVE-2026-73623: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') in gitpython-developers GitPython
Description
GitPython versions before 3.1.54 have an OS command injection vulnerability due to an incomplete denylist in the unsafe_git_clone_options. This flaw allows attackers to use the --template option to specify a directory with malicious post-checkout hooks, which execute during git clone operations. This can lead to arbitrary command execution on the affected system.
CVSS v4.0
Score 7.7high
Affected software
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-73623 describes an OS command injection vulnerability in GitPython prior to version 3.1.54. The vulnerability arises because the denylist in unsafe_git_clone_options does not include the --template option. Attackers can exploit this by supplying a --template argument that points to a directory containing malicious post-checkout hooks. When GitPython clones the repository, these hooks execute, resulting in arbitrary command execution.
Potential Impact
Successful exploitation allows an attacker with the ability to influence clone operations to execute arbitrary commands on the host system with the privileges of the GitPython process. This can lead to system compromise or unauthorized actions.
Mitigation Recommendations
No official patch or remediation level has been confirmed yet. Users should monitor the vendor advisory for updates and apply the official fix once available. Until then, avoid using untrusted input for clone options, especially the --template parameter.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- VulnCheck
- Date Reserved
- 2026-08-13T11:17:25.160Z
- Cvss Version
- 4.0
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a7dbdfbbf8831d5393225fe
Added to database: 08/13/2026, 12:52:11 UTC
Last enriched: 08/13/2026, 12:56:49 UTC
Last updated: 08/13/2026, 20:09:25 UTC
Views: 6
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.